Selaa lähdekoodia

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.
rdb 6 vuotta sitten
vanhempi
sitoutus
5eb40b9061
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 5 0
      makepanda/makewheel.py

+ 5 - 0
makepanda/makewheel.py

@@ -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'