Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip show shows wrong package location when project is installed as editable #11638

Closed
1 task done
doronz88 opened this issue Dec 6, 2022 · 1 comment
Closed
1 task done
Labels
C: editable Editable installations C: list/show 'pip list' or 'pip show' type: enhancement Improvements to functionality

Comments

@doronz88
Copy link
Contributor

doronz88 commented Dec 6, 2022

Description

When installing a python package in editable mode (-e), the expected location to show in pip show is the editable location. Instead, it shows the site-packages path.

Expected behavior

The location should be:

/path/to/package

Instead I'm getting:

/usr/local/lib/python3.11/site-packages/package

pip version

23.0

Python version

3.11

OS

macOS Ventura 13.1 Beta (22C5044e)

How to Reproduce

Install a python package as folllows:

python3 -m pip install -e /path/to/package

Now, try to show the package's location as follows:

python3 -m pip show package

Output

No response

Code of Conduct

@doronz88 doronz88 added S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior labels Dec 6, 2022
sbidoul added a commit that referenced this issue Dec 19, 2022
show: show editable location instead if package is editable (#11638)
@sbidoul sbidoul added type: enhancement Improvements to functionality C: list/show 'pip list' or 'pip show' C: editable Editable installations and removed type: bug A confirmed bug or unintended behavior S: needs triage Issues/PRs that need to be triaged labels Dec 28, 2022
@sbidoul
Copy link
Member

sbidoul commented Dec 28, 2022

This was implemented in #11639

@sbidoul sbidoul closed this as completed Dec 28, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
C: editable Editable installations C: list/show 'pip list' or 'pip show' type: enhancement Improvements to functionality
Projects
None yet
Development

No branches or pull requests

2 participants