From 4ce5efb0449b36c77c6d015d89378cc4dcefbcd4 Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 4 Jan 2022 15:29:47 +0100 Subject: [PATCH] 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 --- makepanda/makewheel.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/makepanda/makewheel.py b/makepanda/makewheel.py index f0cb5cda5d..2e1b18ec45 100644 --- a/makepanda/makewheel.py +++ b/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'):