-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.py
executable file
·81 lines (75 loc) · 2.25 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
69
70
71
72
73
74
75
76
77
78
79
80
81
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
from setuptools import setup, Extension
version = "0.19.0-dev"
setup(
name="pycsdr",
version=version,
packages=["pycsdr"],
package_data={
"pycsdr": ["**.pyi", "**.py"],
},
headers=[
"src/pycsdr.hpp",
"src/reader.hpp",
"src/writer.hpp",
"src/source.hpp",
"src/sink.hpp",
"src/module.hpp",
"src/buffer.hpp",
"src/bufferreader.hpp",
],
ext_modules=[
Extension(
name="pycsdr.modules",
sources=[
"src/pycsdr.cpp",
"src/writer.cpp",
"src/reader.cpp",
"src/sink.cpp",
"src/source.cpp",
"src/buffer.cpp",
"src/bufferreader.cpp",
"src/tcpsource.cpp",
"src/types.cpp",
"src/module.cpp",
"src/fft.cpp",
"src/logpower.cpp",
"src/logaveragepower.cpp",
"src/fftswap.cpp",
"src/fftadpcm.cpp",
"src/firdecimate.cpp",
"src/bandpass.cpp",
"src/shift.cpp",
"src/convert.cpp",
"src/squelch.cpp",
"src/fractionaldecimator.cpp",
"src/fmdemod.cpp",
"src/limit.cpp",
"src/nfmdeemphasis.cpp",
"src/wfmdeemphasis.cpp",
"src/agc.cpp",
"src/amdemod.cpp",
"src/dcblock.cpp",
"src/realpart.cpp",
"src/audioresampler.cpp",
"src/adpcmencoder.cpp",
"src/downmix.cpp",
"src/gain.cpp",
"src/timingrecovery.cpp",
"src/dbpskdecoder.cpp",
"src/varicodedecoder.cpp",
"src/phasedemod.cpp",
"src/rtty.cpp",
"src/baudot.cpp",
"src/lowpass.cpp",
"src/exec.cpp",
"src/throttle.cpp",
],
language="c++",
include_dirs=["src"],
libraries=['csdr', 'fftw3f'],
define_macros=[("VERSION", '"{}"'.format(version))],
)
],
)