Skip to content

Commit 8a86ca9

Browse files
committed
makewheel: don't include libpythonX.Y.a in wheel
Fixes panda3d#839
1 parent 0b87673 commit 8a86ca9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

makepanda/makewheel.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,10 @@ def makewheel(version, output_dir, platform=None):
732732
pylib_path = os.path.join(libdir, pylib_arch, pylib_name)
733733
else:
734734
pylib_path = os.path.join(libdir, pylib_name)
735-
whl.write_file('deploy_libs/' + pylib_name, pylib_path)
735+
736+
# If Python was linked statically, we don't need to include this.
737+
if not pylib_name.endswith('.a'):
738+
whl.write_file('deploy_libs/' + pylib_name, pylib_path)
736739

737740
whl.close()
738741

0 commit comments

Comments
 (0)