forked from birgander2/PyRAT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·32 lines (28 loc) · 1.24 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
#!/usr/bin/env python
from distutils.core import setup
from Cython.Build import cythonize
import numpy
import os
os.environ['CFLAGS'] = '-Wno-maybe-uninitialized -Wno-cpp'
import pyrat.lib.nlsar.nlsetup as nlsetup
# extract internal version number (hehe, what a hack!)
pyrat_version = 'unknown'
with open('pyrat/__init__.py') as f:
for line in f:
if line.startswith('__version__'):
_, _, pyrat_version = line.replace("'", '').split()
break
# the actual setup process
setup(name='PyRAT',
version=pyrat_version,
description='PyRAT - Radar Tools',
ext_modules=cythonize(["pyrat/lib/ste/*.pyx", "pyrat/filter/*.pyx", "pyrat/viewer/*.pyx"]) + [nlsetup.nlsar],
include_dirs=[numpy.get_include()],
packages=['pyrat', 'pyrat.save', 'pyrat.filter', 'pyrat.load', 'pyrat.filter', 'pyrat.viewer',
'pyrat.layer', 'pyrat.insar', 'pyrat.transform', 'pyrat.polar', 'pyrat.plugins',
'pyrat.lib', 'pyrat.lib.ste', 'pyrat.lib.templates'],
package_data={'pyrat.lib': ['templates/*.tpl']},
scripts=['pyrat.run'],
data_files=[('.', ['README.md', 'requirements.txt', 'requirements_win.txt', 'MANIFEST.in', 'LICENSE',
'ANNOTATIONS.txt'])]
)