forked from AIM-Harvard/pyradiomics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
30 lines (22 loc) · 797 Bytes
/
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
#!/usr/bin/env python
from distutils import sysconfig
import platform
import numpy
from setuptools import Extension, setup
import versioneer
if platform.architecture()[0].startswith('32'):
raise Exception('PyRadiomics requires 64 bits python')
commands = versioneer.get_cmdclass()
incDirs = [sysconfig.get_python_inc(), numpy.get_include()]
ext = [Extension("radiomics._cmatrices", ["radiomics/src/_cmatrices.c", "radiomics/src/cmatrices.c"],
include_dirs=incDirs),
Extension("radiomics._cshape", ["radiomics/src/_cshape.c", "radiomics/src/cshape.c"],
include_dirs=incDirs)]
setup(
name='pyradiomics',
version=versioneer.get_version(),
cmdclass=commands,
packages=['radiomics', 'radiomics.scripts'],
ext_modules=ext,
zip_safe=False
)