-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·26 lines (22 loc) · 910 Bytes
/
setup.py
File metadata and controls
executable file
·26 lines (22 loc) · 910 Bytes
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
#!/usr/bin/env python
from setuptools import Extension, setup
from Cython.Build import cythonize
import numpy
from pathlib import Path
this_directory = Path(__file__).parent
long_description = ( this_directory / 'README.md' ).read_text()
sourcefiles = [ 'SuchTree/*.pyx' ]
extensions = [ Extension( 'SuchTree.MuchTree', sourcefiles, include_dirs=[numpy.get_include()]) ]
extensions = cythonize( extensions, compiler_directives={ 'language_level' : '3' } )
setup(
packages = [ 'SuchTree' ],
package_data = { 'SuchTree' : [ '*.so', '*.pyd'], },
include_package_data=True,
ext_modules = extensions,
py_modules = [ 'SuchTree' ],
long_description=long_description,
long_description_content_type='text/markdown',
use_scm_version = { 'write_to' : 'SuchTree/__version__.py',
'local_scheme' : 'no-local-version' },
setup_requires = [ 'setuptools_scm' ]
)