-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathsetup.py
68 lines (58 loc) · 2.32 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
from setuptools import setup, Extension #find_packages
__version__ = '0.1.1'
def describe(filename):
f = open(filename, "r")
lines = f.readlines()
return "".join(lines)
ext0 = Extension('MersenneTwister',
sources=['./c_src/MersenneTwister.c'],
extra_link_args=["-lm"],
extra_compile_args=["-Wno-strict-prototypes"]
)
ext1 = Extension('libSigPyProc8',
sources=[
'./c_src/libSigPyProc8.c',
'./c_src/MersenneTwister.c',
],
extra_link_args=["-lgomp", "-lm"],
extra_compile_args=["-fopenmp", "-Wno-unused-variable", "-Wno-strict-prototypes"],
)
ext2 = Extension('libSigPyProc32',
sources=[
'./c_src/libSigPyProc32.c',
],
extra_link_args=["-lgomp", "-lm"],
extra_compile_args=["-fopenmp", "-Wno-unused-variable", "-Wno-strict-prototypes"],
)
ext3 = Extension('libSigPyProcSpec',
sources=[
'./c_src/libSigPyProcSpec.c',
],
extra_link_args=["-lgomp", "-lm", "-lfftw3", "-lfftw3f"],
extra_compile_args=["-fopenmp", "-Wno-unused-variable", "-Wno-strict-prototypes"],
)
ext4 = Extension('libSigPyProcTim',
sources=[
'./c_src/libSigPyProcTim.c',
],
extra_link_args=["-lgomp", "-lm", "-lfftw3", "-lfftw3f"],
extra_compile_args=["-fopenmp", "-Wno-unused-variable", "-Wno-strict-prototypes"],
)
ext5 = Extension('libSigPyProc',
sources=[
'./c_src/libSigPyProc.c',
],
extra_link_args=["-lgomp"],
extra_compile_args=["-fopenmp", "-Wno-unused-variable", "-Wno-strict-prototypes"],
)
setup(name='sigpyproc',
version=__version__,
description='Python pulsar data toolbox',
install_requires = ['numpy'],
author='Ewan Barr',
author_email='[email protected]',
long_description=describe('README.md'),
ext_modules=[ext0, ext1, ext2, ext3, ext4, ext5],
packages=['sigpyproc'],
zip_safe=False
)