Skip to content

pip freeze does not correctly display editable packages when they are installed from a non-version controlled location #4286

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

Closed
cjw296 opened this issue Feb 14, 2017 · 3 comments
Labels
auto-locked Outdated issues that have been locked by automation C: editable Editable installations C: freeze 'pip freeze' related resolution: duplicate Duplicate of an existing issue/PR

Comments

@cjw296
Copy link

cjw296 commented Feb 14, 2017

  • Pip version: 9.0.1
  • Python version: 2.7.x
  • Operating system: Mac OS and Linux

Description:

When doing a pip freeze in a virtualenv that has a package installed using -e from a folder that is not under version control, that package is reported as a normal non-editable package.

What I've run:

tweedledee:~ chris$ virtualenv virtualenvs/test
New python executable in /Users/chris/virtualenvs/test/bin/python
copying /Users/chris/anaconda/bin/python => /Users/chris/virtualenvs/test/bin/python
copying /Users/chris/anaconda/bin/../lib/libpython2.7.dylib => /Users/chris/virtualenvs/test/lib/libpython2.7.dylib
Installing setuptools, pip, wheel...done.
tweedledee:~ chris$ source activate virtualenvs/test
(virtualenvs/test) tweedledee:~ chris$ pip --version
pip 9.0.1 from /Users/chris/virtualenvs/test/lib/python2.7/site-packages (python 2.7)
(virtualenvs/test) tweedledee:~ chris$ python --version
Python 2.7.10 :: Continuum Analytics, Inc.
(virtualenvs/test) tweedledee:~ chris$ mkdir /tmp/test_package
(virtualenvs/test) tweedledee:~ chris$ echo "from setuptools import setup; setup(name='test_package', version='1.2.3')" > /tmp/test_package/setup.py
(virtualenvs/test) tweedledee:~ chris$ pip install -e /tmp/test_package
Obtaining file:///tmp/test_package
Installing collected packages: test-package
  Running setup.py develop for test-package
Successfully installed test-package
(virtualenvs/test) tweedledee:~ chris$ pip freeze | grep test-pack
test-package==1.2.3
@pradyunsg pradyunsg added the S: needs triage Issues/PRs that need to be triaged label May 11, 2018
@cjerdonek cjerdonek added the C: editable Editable installations label Aug 18, 2018
@cjerdonek cjerdonek added the C: freeze 'pip freeze' related label Sep 24, 2018
@cjerdonek
Copy link
Member

Issue #5031 is a duplicate of this one. There is more discussion there, even though this was filed first.

@cjerdonek
Copy link
Member

Closing in favor of #5031.

@cjerdonek cjerdonek added resolution: duplicate Duplicate of an existing issue/PR and removed S: needs triage Issues/PRs that need to be triaged labels Sep 25, 2018
@lock
Copy link

lock bot commented Jun 1, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 1, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation C: editable Editable installations C: freeze 'pip freeze' related resolution: duplicate Duplicate of an existing issue/PR
Projects
None yet
Development

No branches or pull requests

3 participants