From 50a1bf6b3f0b75c5182e8ec74538791f2a3db004 Mon Sep 17 00:00:00 2001 From: Ivan Date: Tue, 25 Nov 2025 12:04:05 -0600 Subject: [PATCH] Fix setup.py: Make build relocatable and portable by adding path replacement and zipping packages --- setup.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/setup.py b/setup.py index 1e7baba..514a78d 100644 --- a/setup.py +++ b/setup.py @@ -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': [], }, }, )