-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·60 lines (52 loc) · 1.66 KB
/
setup.py
File metadata and controls
executable file
·60 lines (52 loc) · 1.66 KB
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
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
from setuptools import setup, Extension
from distutils.sysconfig import get_python_inc
from sys import version_info
from os import path
version = "0.7.0-dev"
# some distributions seem to have messed with the install locations of header files, so we need to improvise here...
additional_includes = [
x for x in [
get_python_inc(plat_specific=True),
get_python_inc(prefix="/usr/local"),
"/usr/local/include/python{major}.{minor}".format(major=version_info.major, minor=version_info.minor),
] if path.isdir(x)
]
setup(
name="digiham",
version=version,
packages=["digiham"],
package_data={
"digiham": ["**.pyi", "**.py"],
},
headers=[
],
ext_modules=[
Extension(
name="digiham.modules",
sources=[
"src/modules.cpp",
"src/types.cpp",
"src/decoder.cpp",
"src/dstardecoder.cpp",
"src/fskdemodulator.cpp",
"src/digitalvoicefilter.cpp",
"src/narrowrrcfilter.cpp",
"src/widerrcfilter.cpp",
"src/mbesynthesizer.cpp",
"src/nxdndecoder.cpp",
"src/gfskdemodulator.cpp",
"src/dmrdecoder.cpp",
"src/ysfdecoder.cpp",
"src/pocsagdecoder.cpp",
"src/pickleserializer.cpp",
],
language="c++",
include_dirs=["src"] + additional_includes,
libraries=["digiham"],
define_macros=[("VERSION", '"{}"'.format(version))],
)
],
install_requires=["pycsdr"],
)