forked from manaakiwhenua/pycrown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
39 lines (34 loc) · 1.18 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# ==============================================================================
# PyCrown - Fast raster-based individual tree segmentation for LiDAR data
# ------------------------------------------------------------------------------
# Copyright: 2018, Jan Zörner
# Licence: GNU GPLv3
# ==============================================================================
import os
import setuptools
from distutils.core import setup
from distutils.extension import Extension
from Cython.Build import cythonize
import numpy as np
with open('requirements.txt') as requirements_file:
requirements = requirements_file.read().splitlines()
extensions = [
Extension(
'pycrown._crown_dalponte_cython',
sources=['pycrown/_crown_dalponte_cython.pyx'],
include_dirs=[np.get_include()],
optional=True
)
]
setup(
name='PyCrown',
ext_modules=cythonize(extensions),
version='0.2',
test_suite='tests',
packages=['pycrown'],
install_requires=requirements,
license='MIT',
author='Dr. Jan Zörner',
author_email='[email protected]',
description="Fast Raster-based Tree Crown Segmentation"
)