question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pip defining wrong entry point versions on python 2.7

See original GitHub issue

Environment

  • pip version: 9.0.3, 10.0.1
  • Python version: 2.7.15
  • OS: Linux, RHEL Workstation 6.9 (system python == 2.6.6, no python3)

Description On installation on Python 2.7 pip creates console scripts pip, pip2, pip2.7. However pip defines console_scripts pip, pip3, pip3.6 in entry_points.txt

Expected behavior pip should define console_scripts entry points pip, pip2, pip2.7

How to Reproduce

  1. Download Python2.7.15.tgz
  2. Run configure with --with-ensurepip=install, make, make install
  3. In installation directory run
./python -c "import pkg_resources; print(', '.join(
    pkg_resources.get_distribution('pip').get_entry_map()['console_scripts']))"
  1. Output is: pip, pip3.6, pip3
  2. File lib/python2.7/site-packages/pip-9.0.3.dist-info/entry_points.txt contains:
[console_scripts]
pip = pip:main
pip3 = pip:main
pip3.6 = pip:main
  1. ./python -m pip install --upgrade pip
  2. Rerun command to list entry points. Output still is pip, pip3.6, pip3
  3. File lib/python2.7/site-packages/pip-10.0.1.dist-info/entry_points.txt contains:
[console_scripts]
pip = pip._internal:main
pip3 = pip._internal:main
pip3.6 = pip._internal:main

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
Anthchirpcommented, Jan 8, 2021

Yep, I don’t have a stake in this any more.

0reactions
hugovkcommented, Jan 8, 2021

Can this be closed now Python 2.7 support is being dropped (https://github.com/pypa/pip/issues/6148)?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dealing with multiple Python versions and PIP? - Stack Overflow
This is incorrect. I'm running pip 1.2.1 with Python2.7 on Ubuntu, and there are no alternative pip versions. – Cerin.
Read more >
Entry points specification - Python Packaging User Guide
Entry points are a mechanism for an installed distribution to advertise components it provides to be discovered and used by other code. For...
Read more >
Building .pex files — pex 2.1.119 documentation
bdist_pex is to build an executable using the console script of the same name as the package. For example, pip has three entry...
Read more >
Using Python's pip to Manage Your Projects' Dependencies
The latest version of pip that ensurepip can install is the version that's bundled in your environment's Python installation. For example, ...
Read more >
Using pip to install Python 2 modules
This usually means you're using a Python version older than 2.7.9. To fix this, install these three Python packages to update older libraries....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found