-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
121 lines (105 loc) · 4.06 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
from distutils.core import setup, Extension
import sys
# You must define the version here. A title string including
# the version will be written to __init__.py and read by quisk.py.
Version = '3.6.22'
fp = open("__init__.py", "w") # write title string
fp.write("#QUISK version %s\n" % Version)
fp.close()
module1 = Extension ('quisk._quisk',
#include_dirs = ['.'],
#library_dirs = ['.'],
libraries = ['asound', 'portaudio', 'pulse-simple', 'fftw3', 'm'],
sources = ['quisk.c', 'sound.c', 'sound_alsa.c', 'sound_portaudio.c', 'sound_pulseaudio.c',
'is_key_down.c', 'microphone.c', 'utility.c',
'filter.c', 'extdemod.c'],
)
module2 = Extension ('quisk.sdriqpkg.sdriq',
#libraries = [':_quisk.so', 'm'],
libraries = ['m'],
sources = ['import_quisk_api.c', 'sdriqpkg/sdriq.c'],
include_dirs = ['.', '..'],
#runtime_library_dirs = ['.'],
)
module3 = Extension ('quisk.rtlsdrpkg.rtl_sdr',
libraries = ['m', 'rtlsdr'],
sources = ['import_quisk_api.c', 'rtlsdrpkg/rtl_sdr.c'],
include_dirs = ['.', '..'],
)
modulew1 = Extension ('quisk._quisk',
include_dirs = ['../fftw3', 'C:/Program Files (x86)/Microsoft DirectX SDK (February 2010)/Include',
'C:/Program Files/Microsoft DirectX SDK (February 2010)/Include',],
#'C:/Program Files/Microsoft Visual Studio 8/VC/include'],
library_dirs = ['../fftw3'],
libraries = ['fftw3-3', 'WS2_32', 'Dxguid', 'Dsound'],
sources = ['quisk.c', 'sound.c', 'sound_directx.c',
'is_key_down.c', 'microphone.c', 'utility.c',
'filter.c', 'extdemod.c'],
)
modulew2 = Extension ('quisk.sdriqpkg.sdriq',
#libraries = [':_quisk.pyd', ':ftd2xx.lib'],
libraries = [':ftd2xx.lib'],
library_dirs = ['../ftdi/i386'],
sources = ['import_quisk_api.c', 'sdriqpkg/sdriq.c'],
include_dirs = ['.', '../ftdi'],
#extra_link_args = ['--enable-auto-import'],
)
# Changes for MacOS support thanks to Mario, DL3LSM.
modulem1 = Extension ('quisk._quisk',
#include_dirs = ['.'],
#library_dirs = ['.'],
libraries = ['portaudio', 'fftw3', 'm'],
sources = ['quisk.c', 'sound.c', 'sound_portaudio.c',
'is_key_down.c', 'microphone.c', 'utility.c',
'filter.c', 'extdemod.c'],
)
modulem2 = Extension ('quisk.sdriqpkg.sdriq',
#libraries = [':_quisk.so', 'm'],
libraries = ['m', 'ftd2xx'],
sources = ['import_quisk_api.c', 'sdriqpkg/sdriq.c'],
include_dirs = ['.', '..'],
#runtime_library_dirs = ['.'],
)
if sys.platform == "win32":
Modules = [modulew1, modulew2]
elif sys.platform == "darwin":
Modules = [modulem1, modulem2]
else:
Modules = [module1, module2, module3]
setup (name = 'quisk',
version = Version,
scripts = ['quisk'],
description = 'QUISK, which rhymes with "brisk", is a Software Defined Radio (SDR).',
long_description = """QUISK is a Software Defined Radio (SDR).
You supply a complex (I/Q) mixer to convert radio spectrum to an
intermediate frequency (IF) and send that IF to the left and right
inputs of the sound card in your computer. The QUISK software will
read the sound card data, tune it, filter it, demodulate it, and send
the audio to the same sound card for output to external headphones or
speakers.
Quisk can also control and demodulate data from the SDR-IQ from RfSpace.
Quisk works with the quisk_lppan_k3 package by Leigh, WA5ZNU, to
control the N8LP LP-PAN panadapter and the Elecraft K3.
""",
author = 'James C. Ahlstrom',
author_email = '[email protected]',
url = 'http://james.ahlstrom.name/quisk/',
download_url = 'http://james.ahlstrom.name/quisk/',
packages = ['quisk', 'quisk.rtlsdrpkg', 'quisk.sdriqpkg', 'quisk.n2adr', 'quisk.softrock', 'quisk.usb'],
package_dir = {'quisk' : '.'},
package_data = {'quisk' : ['*.txt', '*.html']},
ext_modules = Modules,
classifiers = [
'Development Status :: 6 - Mature',
'Environment :: X11 Applications',
'Environment :: Win32 (MS Windows)',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Operating System :: Microsoft :: Windows',
'Programming Language :: Python',
'Programming Language :: C',
'Topic :: Communications :: Ham Radio',
],
)