-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathbuildExec.py
More file actions
25 lines (21 loc) · 741 Bytes
/
buildExec.py
File metadata and controls
25 lines (21 loc) · 741 Bytes
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
import os
import shutil
import PyInstaller.__main__
# NOTE: To package this correctly with PyInstaller, a source code file belonging to the package 'alive_progress' has to be modified:
#
# UPDATE: This workround should no longer be required with alive-progress 3.2
#
# File: alive-progress/alive_progress/core/configuration.py
# In the function '__func_lookup', the condition 'os.path.splitext(x.__code__.co_filename)[0] == func_file' must be removed
#
# This is easily done in a VENV
PyInstaller.__main__.run([
'--name=%s' % "AstroTuxLauncher",
'--onefile',
'--noupx',
'--collect-all', 'grapheme',
'--collect-all', 'about-time',
'AstroTuxLauncher.py'
])
shutil.rmtree("build")
os.remove("AstroTuxLauncher.spec")