-
Notifications
You must be signed in to change notification settings - Fork 22
/
setup.py
executable file
·51 lines (45 loc) · 1.45 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
#!/usr/bin/env python3
"""
setup.py file for Fir1
"""
from setuptools import setup
from setuptools import Extension
import os
import numpy
from sys import platform
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
if platform == "linux" or platform == "linux2" or platform == "darwin":
fir1_module = Extension('_fir1',
sources=['fir1.i','Fir1.cpp'],
extra_compile_args=['-std=c++11','-O3'],
swig_opts=['-c++','-py3'],
include_dirs=[numpy.get_include()],
)
elif platform == "win32":
fir1_module = Extension('_fir1',
sources=['fir1.i','Fir1.cpp'],
extra_compile_args=['/DWIN32_LEAN_AND_MEAN'],
swig_opts=['-c++','-py3'],
include_dirs=[numpy.get_include()],
)
setup (name = 'fir1',
version = '1.8.0.0',
author = "Bernd Porr",
author_email = "[email protected]",
url = "https://github.com/berndporr/fir1",
description = 'Efficient FIR realtime filter',
long_description=read('README_py.rst'),
ext_modules = [fir1_module],
py_modules = ["fir1"],
license='MIT',
install_requires=[
'numpy',
],
classifiers=[
'Intended Audience :: Developers',
'Operating System :: POSIX',
'Operating System :: Microsoft :: Windows',
'Programming Language :: Python :: 3',
]
)