2015-03-03 07:50:46 +08:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
2017-03-24 01:11:05 +08:00
|
|
|
import setuptools
|
2017-03-28 06:32:11 +08:00
|
|
|
from setuptools import setup
|
2017-03-24 01:11:05 +08:00
|
|
|
|
2015-03-03 07:50:46 +08:00
|
|
|
from qspectrumanalyzer.version import __version__
|
|
|
|
|
2017-03-24 01:11:05 +08:00
|
|
|
setup_cmdclass = {}
|
2017-03-28 06:32:11 +08:00
|
|
|
setup_entry_points = {
|
|
|
|
"gui_scripts": [
|
|
|
|
"qspectrumanalyzer=qspectrumanalyzer.__main__:main",
|
|
|
|
],
|
|
|
|
}
|
2017-03-24 01:11:05 +08:00
|
|
|
|
|
|
|
# Allow compilation of Qt .qrc, .ui and .ts files (build_qt command)
|
|
|
|
try:
|
|
|
|
from setup_qt import build_qt
|
|
|
|
setup_cmdclass['build_qt'] = build_qt
|
|
|
|
except ImportError:
|
|
|
|
pass
|
|
|
|
|
2017-03-28 06:32:11 +08:00
|
|
|
# Allow building frozen executables with PyInstaller / subzero (build_exe command)
|
2017-03-24 01:11:05 +08:00
|
|
|
try:
|
2017-03-28 06:32:11 +08:00
|
|
|
from subzero import setup, Executable
|
|
|
|
setup_entry_points = {
|
|
|
|
"console_scripts": [
|
2017-03-31 22:43:49 +08:00
|
|
|
Executable('qspectrumanalyzer=qspectrumanalyzer.__main__:main',
|
2017-03-30 20:27:33 +08:00
|
|
|
console=True, icon_file='qspectrumanalyzer.ico'),
|
2017-03-28 06:32:11 +08:00
|
|
|
Executable('soapy_power=soapypower.__main__:main',
|
|
|
|
console=True),
|
|
|
|
],
|
|
|
|
}
|
2017-03-24 01:11:05 +08:00
|
|
|
except ImportError:
|
2017-03-28 06:32:11 +08:00
|
|
|
pass
|
2017-03-24 01:11:05 +08:00
|
|
|
|
|
|
|
|
2015-04-27 04:16:21 +08:00
|
|
|
setup(
|
|
|
|
name="QSpectrumAnalyzer",
|
|
|
|
version=__version__,
|
2017-03-30 20:27:33 +08:00
|
|
|
description=("Spectrum analyzer for multiple SDR platforms "
|
2017-03-30 20:49:07 +08:00
|
|
|
"(PyQtGraph based GUI for soapy_power, hackrf_sweep, rtl_power, rx_power and other backends)"),
|
2017-03-11 00:39:04 +08:00
|
|
|
long_description=open('README.rst').read(),
|
2015-04-27 04:16:21 +08:00
|
|
|
author="Michal Krenek (Mikos)",
|
|
|
|
author_email="m.krenek@gmail.com",
|
|
|
|
url="https://github.com/xmikos/qspectrumanalyzer",
|
|
|
|
license="GNU GPLv3",
|
2017-02-19 07:52:05 +08:00
|
|
|
packages=["qspectrumanalyzer", "qspectrumanalyzer.backends"],
|
2015-04-27 04:16:21 +08:00
|
|
|
package_data={
|
|
|
|
"qspectrumanalyzer": [
|
2017-03-30 20:27:33 +08:00
|
|
|
"qspectrumanalyzer.svg",
|
2015-04-27 04:16:21 +08:00
|
|
|
"*.ui",
|
|
|
|
"languages/*.qm",
|
2017-03-30 20:27:33 +08:00
|
|
|
"languages/*.ts",
|
|
|
|
],
|
2015-04-27 04:16:21 +08:00
|
|
|
},
|
|
|
|
data_files=[
|
|
|
|
("share/applications", ["qspectrumanalyzer.desktop"]),
|
2017-03-30 20:27:33 +08:00
|
|
|
("share/pixmaps", ["qspectrumanalyzer.png"]),
|
2015-04-27 04:16:21 +08:00
|
|
|
],
|
|
|
|
install_requires=[
|
2017-03-30 20:27:33 +08:00
|
|
|
"soapy_power>=1.6.0",
|
2017-03-17 22:03:07 +08:00
|
|
|
"pyqtgraph>=0.10.0",
|
2017-03-30 20:27:33 +08:00
|
|
|
"Qt.py",
|
2015-04-27 04:16:21 +08:00
|
|
|
],
|
2017-03-24 01:11:05 +08:00
|
|
|
options={
|
|
|
|
'build_qt': {
|
|
|
|
'packages': ['qspectrumanalyzer'],
|
|
|
|
'languages': ['cs'],
|
2017-03-30 20:27:33 +08:00
|
|
|
'replacement_bindings': 'Qt',
|
|
|
|
},
|
|
|
|
'build_exe': {
|
|
|
|
'datas': [
|
|
|
|
('qspectrumanalyzer/qspectrumanalyzer.svg', 'qspectrumanalyzer'),
|
|
|
|
('qspectrumanalyzer/*.ui', 'qspectrumanalyzer'),
|
|
|
|
('qspectrumanalyzer/languages/*.ts', 'qspectrumanalyzer/languages'),
|
|
|
|
('qspectrumanalyzer/languages/*.qm', 'qspectrumanalyzer/languages'),
|
|
|
|
('README.rst', '.'),
|
|
|
|
('LICENSE', '.'),
|
|
|
|
],
|
2017-03-24 01:11:05 +08:00
|
|
|
},
|
2017-03-28 06:32:11 +08:00
|
|
|
'bdist_msi': {
|
2017-03-31 22:43:49 +08:00
|
|
|
'upgrade_code': '30740ef4-84e7-4e67-8e4a-12b53492c387',
|
2017-03-28 06:32:11 +08:00
|
|
|
'shortcuts': [
|
2017-03-31 22:43:49 +08:00
|
|
|
'QSpectrumAnalyzer=qspectrumanalyzer',
|
2017-03-28 06:32:11 +08:00
|
|
|
],
|
|
|
|
},
|
2017-03-24 01:11:05 +08:00
|
|
|
},
|
2017-03-30 20:55:15 +08:00
|
|
|
classifiers=[
|
|
|
|
"Development Status :: 4 - Beta",
|
|
|
|
"Environment :: MacOS X",
|
|
|
|
"Environment :: Win32 (MS Windows)",
|
|
|
|
"Environment :: X11 Applications :: Qt",
|
|
|
|
"Intended Audience :: End Users/Desktop",
|
|
|
|
"Intended Audience :: Science/Research",
|
|
|
|
"Intended Audience :: Telecommunications Industry",
|
|
|
|
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
|
|
|
|
"Natural Language :: English",
|
|
|
|
"Operating System :: OS Independent",
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
"Topic :: Communications :: Ham Radio",
|
|
|
|
"Topic :: Scientific/Engineering :: Visualization",
|
|
|
|
],
|
2017-03-28 06:32:11 +08:00
|
|
|
entry_points=setup_entry_points,
|
2017-03-24 01:11:05 +08:00
|
|
|
cmdclass=setup_cmdclass,
|
2015-04-27 04:16:21 +08:00
|
|
|
)
|