From 8a86ca97ebfcf186362b13ccfa2e9c027398fbe4 Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 2 Mar 2020 11:00:00 +0100 Subject: [PATCH] makewheel: don't include libpythonX.Y.a in wheel Fixes #839 --- makepanda/makewheel.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/makepanda/makewheel.py b/makepanda/makewheel.py index 51948386b1..e69f8a3db8 100644 --- a/makepanda/makewheel.py +++ b/makepanda/makewheel.py @@ -732,7 +732,10 @@ __version__ = '{0}' pylib_path = os.path.join(libdir, pylib_arch, pylib_name) else: pylib_path = os.path.join(libdir, pylib_name) - whl.write_file('deploy_libs/' + pylib_name, pylib_path) + + # If Python was linked statically, we don't need to include this. + if not pylib_name.endswith('.a'): + whl.write_file('deploy_libs/' + pylib_name, pylib_path) whl.close()