97 lines
2.9 KiB
Python
Executable File
97 lines
2.9 KiB
Python
Executable File
#!/usr/bin/env python
|
|
|
|
import sys
|
|
|
|
import setuptools
|
|
from setuptools import setup
|
|
|
|
from qspectrumanalyzer.version import __version__
|
|
|
|
setup_cmdclass = {}
|
|
setup_entry_points = {
|
|
"gui_scripts": [
|
|
"qspectrumanalyzer=qspectrumanalyzer.__main__:main",
|
|
],
|
|
}
|
|
|
|
# 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
|
|
|
|
# Allow building frozen executables with PyInstaller / subzero (build_exe command)
|
|
try:
|
|
from subzero import setup, Executable
|
|
setup_entry_points = {
|
|
"console_scripts": [
|
|
Executable('QSpectrumAnalyzer=qspectrumanalyzer.__main__:main',
|
|
console=False, icon_file='qspectrumanalyzer.ico'),
|
|
Executable('soapy_power=soapypower.__main__:main',
|
|
console=True),
|
|
],
|
|
}
|
|
except ImportError:
|
|
pass
|
|
|
|
|
|
setup(
|
|
name="QSpectrumAnalyzer",
|
|
version=__version__,
|
|
description="Spectrum analyzer for multiple SDR platforms (PyQtGraph based GUI for soapy_power, rx_power, rtl_power, hackrf_sweep and other backends)",
|
|
long_description=open('README.rst').read(),
|
|
author="Michal Krenek (Mikos)",
|
|
author_email="m.krenek@gmail.com",
|
|
url="https://github.com/xmikos/qspectrumanalyzer",
|
|
license="GNU GPLv3",
|
|
packages=["qspectrumanalyzer", "qspectrumanalyzer.backends"],
|
|
package_data={
|
|
"qspectrumanalyzer": [
|
|
"*.ui",
|
|
"languages/*.qm",
|
|
"languages/*.ts"
|
|
]
|
|
},
|
|
data_files=[
|
|
("share/applications", ["qspectrumanalyzer.desktop"]),
|
|
("share/pixmaps", ["qspectrumanalyzer.png"])
|
|
],
|
|
install_requires=[
|
|
"soapy_power>=1.5.0",
|
|
"pyqtgraph>=0.10.0",
|
|
"Qt.py"
|
|
],
|
|
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"
|
|
],
|
|
options={
|
|
'build_qt': {
|
|
'packages': ['qspectrumanalyzer'],
|
|
'languages': ['cs'],
|
|
'replacement_bindings': 'Qt'
|
|
},
|
|
'build_exe': {},
|
|
'bdist_msi': {
|
|
'upgrade_code': '30740ef4-84e7-4e67-8e4a-12b53492c387',
|
|
'shortcuts': [
|
|
'ProgramMenuFolder\\QSpectrumAnalyzer=QSpectrumAnalyzer',
|
|
],
|
|
},
|
|
},
|
|
entry_points=setup_entry_points,
|
|
cmdclass=setup_cmdclass,
|
|
)
|