-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
35 lines (28 loc) · 880 Bytes
/
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
#!/usr/bin/env python
from setuptools import setup
# read version info from project code
exec(open('src/spectroscope/version.py').read())
setup_cmdclass = {}
# 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('spectroscope=spectroscope.__main__:main',
console=True, icon_file='spectroscope.ico'),
Executable('soapy_power=soapypower.__main__:main',
console=True),
],
}
except ImportError:
pass
setup(
version = __version__,
# cmdclass = setup_cmdclass,
)