-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsetup.py
67 lines (59 loc) · 1.49 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
"""
This is a setup.py script generated by py2applet
Usage:
python setup.py py2app
"""
from setuptools import setup
from util import *
import app
import site
qt_plugin_root = site.getsitepackages()[1] + "\\PyQt6\\Qt\\plugins"
APP = 'pytouch3.py'
data_files = [
('', ['pytouch3.png']),
]
setup_requires = []
requires = ['PyQt6', 'django-qrcode', 'pyserial', 'packbits', 'pypng', 'appdirs']
kwargs = {}
if is_mac:
setup_requires = ['py2app']
elif is_win:
kwargs = {
"windows": [{
"script": APP[0],
"icon_resources": [(0, "pytouch3.ico")],
"dest_base": "pytouch3"
}],
}
setup_requires = ['py2exe~=0.10.2.1']
requires += ['wmi']
data_files += [
("platforms", [ qt_plugin_root + "\\platforms\\qwindows.dll"]),
("iconengines", [qt_plugin_root + "\\iconengines\\qsvgicon.dll"]),
("platformthemes", [qt_plugin_root + "\\platformthemes\\qxdgdesktopportal.dll"]),
("styles", [qt_plugin_root + "\\styles\\qwindowsvistastyle.dll"])
]
else:
pass
setup(
name=app.APP_NAME,
version=app.APP_VERSION,
author=app.APP_AUTHOR,
app=[APP],
data_files=data_files,
options={
'py2app': {
'iconfile': 'pytouch3.icns'
},
'py2exe': {
'includes': [
'PyQt6.sip',
'PyQt6.QtCore',
'PyQt6.QtGui'
]
}
},
setup_requires=setup_requires,
install_requires=requires,
**kwargs
)