[Distutils] wheel without console_scripts in 0.20.0

Daniel Holth dholth at gmail.com
Sat Jul 20 01:14:20 CEST 2013

Hi Paul.


Wheel 0.20.0 won't put entry_points console_scripts and gui_scripts in
the wheel itself.

The new "python -m wheel install-scripts wheel pip" command for
example would install those scripts for wheel and pip into the default
scripts directory. It requires setuptools, not just pkg_resources.

Here's what I did to accomplish that using easy_install:

dist = 'pip'

pkg_resources_dist = pkg_resources.get_distribution(dist)
install = wheel.paths.get_install_command(dist)
command = easy_install.easy_install(install.distribution)
command.args = ['wheel'] # dummy argument

It would be fun to experiment with alternative implementations like
the "just import and run it" wrapper, and it might be nice to update
the RECORD of installed files as part of the operation. It should also
be possible to use less easy_install.

More information about the Distutils-SIG mailing list