-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
61 lines (52 loc) · 2.31 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
import os
import distutils
from distutils.core import setup, Extension
import glob
bin_files = glob.glob('bin/*')
#inc_files = glob.glob("include/*.h")
#doc_files = glob.glob("doc/*.*") + glob.glob("doc/*/*")
libbiascorrect = Extension(
'biascorrect',
sources = ['src/libbiascorrect.c'],
include_dirs = ['include', '%s/include' % os.environ['IMSUPPORT_DIR'], '%s/include' % os.environ['DESPYFITS_DIR']],
extra_compile_args = ['-O3','-g','-Wall','-shared','-fPIC'])
libbpm = Extension(
'bpm',
sources = ['src/libbpm.c'],
include_dirs = ['include', '%s/include' % os.environ['IMSUPPORT_DIR'], '%s/include' % os.environ['DESPYFITS_DIR']],
extra_compile_args = ['-O3','-g','-Wall','-shared','-fPIC'])
libfixcol = Extension(
'fixcol',
sources = ['src/libfixcol.c'],
include_dirs = ['include', '%s/include' % os.environ['IMSUPPORT_DIR'], '%s/include' % os.environ['DESPYFITS_DIR']],
extra_compile_args = ['-O3','-g','-Wall','-shared','-fPIC'])
libflatcorrect = Extension(
'flatcorrect',
sources = ['src/libflatcorrect.c'],
include_dirs = ['include', '%s/include' % os.environ['IMSUPPORT_DIR'], '%s/include' % os.environ['DESPYFITS_DIR']],
extra_compile_args = ['-O3','-g','-Wall','-shared','-fPIC'])
libmasksatr = Extension(
'masksatr',
sources = ['src/libmasksatr.c'],
include_dirs = ['include', '%s/include' % os.environ['IMSUPPORT_DIR'], '%s/include' % os.environ['DESPYFITS_DIR']],
extra_compile_args = ['-O3','-g','-Wall','-shared','-fPIC'])
libfpnumber = Extension(
'fpnumber',
sources = ['src/libfpnumber.c'],
include_dirs = ['include', '%s/include' % os.environ['IMSUPPORT_DIR'], '%s/include' % os.environ['DESPYFITS_DIR']],
extra_compile_args = ['-O3','-g','-Wall','-shared','-fPIC'])
# The main call
setup(name='pixcorrect',
version ='3.1.7',
description = "Pixel-level image correction",
author = "Eric Neilsen, Felipe Menanteau",
author_email = "[email protected]",
ext_modules = [libbiascorrect, libbpm, libfixcol, libflatcorrect, libmasksatr, libfpnumber],
packages = ['pixcorrect'],
package_dir = {'': 'python'},
scripts = bin_files,
data_files=[ ('ups',['ups/pixcorrect.table']),
#('doc', doc_files),
#('include', inc_files),
]
)