Fix setup.py: Make build relocatable and portable by adding path replacement and zipping packages
This commit is contained in:
7
setup.py
7
setup.py
@@ -39,6 +39,13 @@ setup(
|
|||||||
"optimize": 2,
|
"optimize": 2,
|
||||||
# change where exe is built to
|
# change where exe is built to
|
||||||
'build_exe': 'build/exe',
|
'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': [],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user