-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
62 lines (55 loc) · 1.78 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
from setuptools import setup, find_packages
from distutils.extension import Extension
from Cython.Distutils import build_ext
from Cython.Build import cythonize
import numpy
import os
_REQUIREMENTS = [
'anytree',
'geopandas',
'pygeoprocessing',
'natcap.invest',
'rtree',
'scipy',
'fiona',
'netCDF4',
'statsmodels',
'sklearn',
]
with open("README.md", "r") as fh:
long_description = fh.read()
packages=find_packages()
include_package_data=True
setup(
name = 'hazelbean',
packages = packages,
version = '1.0.8',
description = 'Geospatial research tools',
long_description=long_description,
author = 'Justin Andrew Johnson',
url = 'https://github.com/jandrewjohnson/hazelbean',
download_url = 'https://github.com/jandrewjohnson/hazelbean',
keywords = ['geospatial', 'raster', 'shapefile', 'sustainability science'],
classifiers = ["Programming Language :: Python :: 3"],
install_requires=_REQUIREMENTS,
#cmdclass={'build_ext': build_ext},
#ext_modules=[Extension("cython_functions", ["hazelbean/calculation_core/cython_functions.c"]),
# Extension("aspect_ratio_array_functions", ["hazelbean/calculation_core/aspect_ratio_array_functions.c"]),
# ]
ext_modules=cythonize(
[Extension(
"hazelbean.calculation_core.cython_functions",
sources=["hazelbean/calculation_core/cython_functions.pyx"],
include_dirs=[
numpy.get_include(),
'hazelbean/calculation_core/cython_functions'],
language="c++",
),
Extension(
"hazelbean.calculation_core.aspect_ratio_array_functions",
sources=[
"hazelbean/calculation_core/aspect_ratio_array_functions.pyx"],
include_dirs=[numpy.get_include()],
language="c++")],
)
)