-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
45 lines (38 loc) · 1.02 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
#!/usr/bin/env python3
from setuptools import setup, Distribution, Extension
dist = Distribution()
dist.parse_config_files()
dist.parse_command_line()
release = dist.get_option_dict('bdist_rpm')['release'][1]
version = dist.get_option_dict('command')['version'][1]
define_macros=[
('PYIQE_VERSION', f'"{version}-{release}"'),
('NPY_NO_DEPRECATED_API', 'NPY_1_7_API_VERSION'),
]
extra_compile_args=[
'-Wno-unused-but-set-variable',
'-Wno-unused-variable',
]
setup(name='python3-iqe',
version=version,
description='Image Quality Estimator',
long_description="Plugin to ESO's skycat pick-object.",
author='Matthieu Bec',
author_email='[email protected]',
url='https://github.com/mdcb/python-iqe',
license='GNU General Public License',
ext_modules=[
Extension(
name='iqe',
sources = [
'iqefunc.c',
'mpfit.c',
'python-iqe.c',
],
include_dirs=['.'],
define_macros=define_macros,
libraries = ['m'],
extra_compile_args = extra_compile_args,
)
]
)