Pip, wheel and console_scripts

I am having a problem with python whl packages:

I have a package with a single entry point defined in my setup.py. When I run pip install . , it correctly installs the package and shell entry point. When I run python setup.py bdist_wheel followed by pip install thing.whl , it installs only the package, but not the entry point.

How to set the entry point from the created package of wheels?

PS: When I unzip the wheel package, I find "entrypoints.txt" with the expected entry. It just does not install in the bin environment.

+7
python pip python-wheel
source share
1 answer

The wheels used to include the pre-created console shell scripts in the package, but this was not optimal, and the files were deleted. The installer should generate these shell scripts, but pip has not yet been updated to follow suit, see issue 1067 .

Until the pull request 1251 is part of the release, you will have to use a separate command to install console scripts:

 python -m wheel install-scripts thing.whl 

See Handling Setuptools scripts in the wheel documentation.

The transfer request was merged earlier this month (November 2014) and will be part of the upcoming version 6.0 . You can also use pip to update the development version itself from GitHub with:

 pip install git+https://github.com/pypa/pip.git 
+6
source share

All Articles