-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
37 lines (34 loc) · 1.34 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
from setuptools import setup
from setuptools import Extension
import os
from Cython.Build import cythonize
import shrubbery
print('######## shrubbery.__file__: ' + shrubbery.__file__)
print('######## os.path.dirname(shrubbery.__file__): ' + os.path.dirname(shrubbery.__file__))
shrubbery_include = os.path.dirname(shrubbery.__file__)
print('######## os.path.dirname(os.path.dirname(shrubbery.__file__)): ' + os.path.dirname(os.path.dirname(shrubbery.__file__)))
print('######## shrubbery_include: ' + shrubbery_include)
# sh = shrubbery.shrubbing.standard_shrubbery()
# print('width: %d length: %d' %( sh.width, sh.length))
setup(
name = 'landscaping',
version='1.0.0',
author='Cython Demo',
url='http://example.com',
packages = ['landscaping', ],
ext_modules = cythonize(
Extension(
"landscaping.*",
["landscaping/landscaping.pyx"],
# Note that include_dirs is not needed once the dependent packe files are no longer zipped
#include_dirs=[shrubbery_include],
)
),
setup_requires=[
# Note bug noted here: https://github.com/cython/cython/issues/1953 might require cython < 0.26
"cython >= 0.22.1",
],
include_package_data=True,
# Note that zip_safe needs to be false in order for the pxd files to be available to cython cimport
zip_safe=False,
)