From 5eb40b90619060ee62ab43288646d4b4bb243c52 Mon Sep 17 00:00:00 2001 From: rdb Date: Sat, 28 Dec 2019 21:27:58 +0100 Subject: [PATCH] makewheel: remove maya2egg#_bin.exe from entry_points.txt These are not intended to be invoked by the user directly, so .exe wrappers do not need to be generated. maya2egg will find the _bin equivalent by looking for it next to the executable itself. --- makepanda/makewheel.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/makepanda/makewheel.py b/makepanda/makewheel.py index f8d9b56ef9..1ba176116c 100644 --- a/makepanda/makewheel.py +++ b/makepanda/makewheel.py @@ -688,10 +688,15 @@ __version__ = '{0}' # Put the .exe files inside the panda3d-tools directory. whl.write_file('panda3d_tools/' + file, source_path) + if basename.endswith('_bin'): + # These tools won't be invoked by the user directly. + continue + # Tell pip to create a wrapper script. funcname = basename.replace('-', '_') entry_points += '{0} = panda3d_tools:{1}\n'.format(basename, funcname) tools_init += '{0} = lambda: _exec_tool({1!r})\n'.format(funcname, file) + entry_points += '[distutils.commands]\n' entry_points += 'build_apps = direct.dist.commands:build_apps\n' entry_points += 'bdist_apps = direct.dist.commands:bdist_apps\n'