Fix setup.py: Make build relocatable and portable by adding path replacement and zipping packages

This commit is contained in:
2025-11-25 12:04:05 -06:00
parent 8c39fdf190
commit 50a1bf6b3f

View File

@@ -39,6 +39,13 @@ setup(
"optimize": 2,
# change where exe is built to
'build_exe': 'build/exe',
# make the build relocatable by replacing absolute paths
'replace_paths': [
('*', ''),
],
# zip all packages to make the build more portable
'zip_include_packages': ['*'],
'zip_exclude_packages': [],
},
},
)