Skip to content Skip to sidebar Skip to footer

Running Entry Point Console_script In Python Development Environment

What is the process for running console scripts that use entry points as a python package developer? I have a python project that has a setup.py with. In it, I have a entry_point

Solution 1:

As suggested by @Iguananaut, I ran pip install -e . instead.

It now works.

So I then did a pip uninstall mypackage and did a python setup.py develop again to reproduce. It didn't reproduce.

I now understand that load_entry_point literally reads the entry_points.txt from the mypackage.egg-info. My only guess is that somehow that file was bad... and not getting fixed by running python setup.py develop.

So -- the answer to my query is:

For running console scripts in a dev environment, use pip install -e . and run the scripts out of the virtualenv/bin/. It's designed to work that way, and if it doesn't -- something else is wrong.

Post a Comment for "Running Entry Point Console_script In Python Development Environment"