-
Notifications
You must be signed in to change notification settings - Fork 14
/
setup.py
51 lines (45 loc) · 1.47 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
import sys
from setuptools import setup, Extension
# FIXME: for the time being bootstrapping is not possible.
# Look into it again when CFFI 1.0 is released.
try:
import cffi
except ImportError:
sys.stderr.write('Error: CFFI (required for setup) is not available.\n')
sys.stderr.write('Please use "pip install cffi", or equivalent.\n')
sys.exit(1)
import unwrap.unwrap2D as unwrap2D
import unwrap.unwrap3D as unwrap3D
DOCUMENTATION = open('README.rst').read()
setup(
name='unwrap',
version="0.1.1",
author='Gregor Thalhammer',
author_email='[email protected]',
url='http://github.com/geggo/phase-unwrap',
description='2D and 3D phase unwrapping',
long_description=DOCUMENTATION,
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering',
'Operating System :: OS Independent'
],
install_requires=[
"numpy>=1.6",
"cffi>=0.7",
],
package_data={'unwrap': ['*.c']},
packages=['unwrap'],
provides=['unwrap'],
ext_package="unwrap",
ext_modules=[
unwrap2D._ffi.verifier.get_extension(),
unwrap3D._ffi.verifier.get_extension()
],
zip_safe=False, # cffi requirement for setuptools
)