Browse Source

makewheel: don't include libpythonX.Y.a in wheel

Fixes #839
rdb 5 years ago
parent
commit
8a86ca97eb
1 changed files with 4 additions and 1 deletions
  1. 4 1
      makepanda/makewheel.py

+ 4 - 1
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()