Skip to content

cov-core: uninstall leaves pth file behind #53

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
asottile opened this issue May 14, 2015 · 3 comments
Closed

cov-core: uninstall leaves pth file behind #53

asottile opened this issue May 14, 2015 · 3 comments
Labels

Comments

@asottile
Copy link
Member

$ virtualenv venv
$ . venv/bin/activate
$ pip install cov-core
$ pip uninstall cov-core
Uninstalling cov-core:
  /tmp/venv/lib/python2.7/site-packages/cov_core-1.15.0-py2.7.egg-info
  /tmp/venv/lib/python2.7/site-packages/cov_core.py
  /tmp/venv/lib/python2.7/site-packages/cov_core.pyc
  /tmp/venv/lib/python2.7/site-packages/cov_core_init.py
  /tmp/venv/lib/python2.7/site-packages/cov_core_init.pyc
Proceed (y/n)? y
  Successfully uninstalled cov-core
$ ls venv/lib/python2.7/site-packages/init_cov_core.pth
venv/lib/python2.7/site-packages/init_cov_core.pth
@schlamar
Copy link
Contributor

Yes, this is a known issue. See uninstall instructions: https://github.com/schlamar/pytest-cov/blob/2.0/pytest-cov/README.rst#uninstallation

This shouldn't be such an issue when ee119a0 gets released.

However, AFAIS @bukzor has already mentioned a solution to this issue, but I can't find it anymore :(

@asottile
Copy link
Member Author

This is the approach buck and I have used with success: https://github.com/ionelmc/python-hunter/blob/c0ea3e0f02b481bafb49bbcaf36b0aa5e2a93e8d/setup.py

@schlamar
Copy link
Contributor

schlamar commented Jul 6, 2015

Will be fixed in 2.0 (PR #58)

@schlamar schlamar added the bug label Jul 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants