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.
This commit is contained in:
rdb 2019-12-28 21:27:58 +01:00
parent c2a5b08de5
commit 5eb40b9061

View File

@ -688,10 +688,15 @@ __version__ = '{0}'
# Put the .exe files inside the panda3d-tools directory. # Put the .exe files inside the panda3d-tools directory.
whl.write_file('panda3d_tools/' + file, source_path) 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. # Tell pip to create a wrapper script.
funcname = basename.replace('-', '_') funcname = basename.replace('-', '_')
entry_points += '{0} = panda3d_tools:{1}\n'.format(basename, funcname) entry_points += '{0} = panda3d_tools:{1}\n'.format(basename, funcname)
tools_init += '{0} = lambda: _exec_tool({1!r})\n'.format(funcname, file) tools_init += '{0} = lambda: _exec_tool({1!r})\n'.format(funcname, file)
entry_points += '[distutils.commands]\n' entry_points += '[distutils.commands]\n'
entry_points += 'build_apps = direct.dist.commands:build_apps\n' entry_points += 'build_apps = direct.dist.commands:build_apps\n'
entry_points += 'bdist_apps = direct.dist.commands:bdist_apps\n' entry_points += 'bdist_apps = direct.dist.commands:bdist_apps\n'