Browse Source

makewheel: Remove _tkinter.so from Panda3D wheels

It is nowadays supplied in a separate wheel, see also #780

Keep it in the Windows wheel for now since that's the only platform where deploying without a separate tkinter wheel is currently supported, but will remove it on master branch
rdb 4 years ago
parent
commit
4ce5efb044
1 changed files with 4 additions and 0 deletions
  1. 4 0
      makepanda/makewheel.py

+ 4 - 0
makepanda/makewheel.py

@@ -673,6 +673,10 @@ __version__ = '{0}'
 
     for file in os.listdir(ext_mod_dir):
         if file.endswith(ext_suffix):
+            if file.startswith('_tkinter.') and sys.platform not in ('win32', 'cygwin'):
+                # Tkinter is supplied in a separate wheel.
+                continue
+
             source_path = os.path.join(ext_mod_dir, file)
 
             if file.endswith('.pyd') and platform.startswith('cygwin'):