-
Notifications
You must be signed in to change notification settings - Fork 16
/
setup.py
70 lines (62 loc) · 2.15 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
63
64
65
66
67
68
69
70
import os
from setuptools import Extension, find_packages, setup
from setuptools.command.build_ext import build_ext
import subprocess
PKG_NAME = 'lsml'
VERSION_MAJOR = 0
VERSION_MINOR = 0
VERSION_MICRO = 1
VERSION = f"{VERSION_MAJOR}.{VERSION_MINOR}.{VERSION_MICRO}"
def write_version():
with open(os.path.join(PKG_NAME, '_version.py'), 'w') as f:
f.write(f'version = "{VERSION}"')
if __name__ == '__main__':
write_version()
setup(
author='Matt Hancock',
author_email='not.matt.hancock@gmail.com',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: C',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Image Recognition',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Scientific/Engineering :: Visualization',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS',
],
description='Level set machine learning for image segmentation',
ext_modules=[
Extension(
name=f'{PKG_NAME}.util.masked_gradient',
sources=[
os.path.join(
PKG_NAME, 'util', '_cutil', 'masked_gradient.c'
)
],
extra_compile_args=['-std=c99', '-DMI_CHECK_INDEX=0']
),
],
install_requires=[
'h5py',
'matplotlib',
'numpy',
'scikit_fmm',
'scikit_image',
'scikit_learn',
'scipy',
],
license='MIT',
name=PKG_NAME,
packages=find_packages(),
python_requires='>=3.6',
url='https://github.com/notmatthancock/level-set-machine-learning/',
version=VERSION,
)