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.

`--no-clean` doesn't work when installing from local paths or dists

See original GitHub issue

--no-clean doesn’t work when installing from local projects or local dists

e.g. the following don’t work

pip install  --no-clean someprojectdir/
pip install  --no-clean someproject-1.3.tar.gz

for an example, see https://github.com/pypa/pip/pull/2689#issuecomment-93604421 (this is a tox example, where tox installs from a local zip file)

Issue Analytics

  • State:open
  • Created 8 years ago
  • Reactions:5
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
djpeacocommented, Feb 17, 2016

I’m having problems using --no-clean at all, not just when installing from local paths. For example

$ pip install --no-cache-dir --no-clean -v netifaces

The final output is:

  ...
  Downloading from URL https://pypi.python.org/packages/source/n/netifaces/netifaces-0.10.4.tar.gz#md5=36da76e2cfadd24cc7510c2c0012eb1e (from https://pypi.python.org/simple/netifaces/)
  Running setup.py (path:/tmp/pip-build-_yORAp/netifaces/setup.py) egg_info for package netifaces
    Running command python setup.py egg_info
  Source in /tmp/pip-build-_yORAp/netifaces has version 0.10.4, which satisfies requirement netifaces from https://pypi.python.org/packages/source/n/netifaces/netifaces-0.10.4.tar.gz#md5=36da76e2cfadd24cc7510c2c0012eb1e
Installing collected packages: netifaces
  Running setup.py install for netifaces ...     Running command /home/djpeaco/.enthought/Canopy_64bit/User/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-_yORAp/netifaces/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-FEEBuO-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/djpeaco/.enthought/Canopy_64bit/User/include/site/python2.7/netifaces
done
  Removing source in /tmp/pip-build-_yORAp/netifaces
Successfully installed netifaces-0.10.4

And nothing is left in /tmp/pip-build-_yORAp/. The same happens if I use --build to specifiy another directory to download into. This is with:

  • pip 8.0.2
  • python 2.7.6
  • centos 7.2
1reaction
abalkincommented, Sep 25, 2017

Are there any plans to fix this? The only related activity so far is closing another issue (#4679) as a duplicate of this one. I see the same problem with pip 9.0.1, python 3.6.

Read more comments on GitHub >

github_iconTop Results From Across the Web

wheel pollutes project folder with build & project.egg-info
I use the pip install c:\path\to\project command to install my local package ... There is a pip install flag --no-clean Don't clean up...
Read more >
pip install all wheels in directory - You.com | The AI Search ...
pip install --no-index --find-links /path/to/wheel/dir/ pkg2. Open side panel. Install all whl files from a directory. Asked May 1, 2019 • 4 votes...
Read more >
Troubleshooting Omnibus GitLab installation issues
To our knowledge there is no clean way to install Debian or RPM packages as a non-privileged user. You cannot install Omnibus GitLab...
Read more >
pip Documentation
Install from local copies of pip and setuptools: ... For instance, say that the “helloworld” package doesn't work in your environment, ...
Read more >
Changelog - pip documentation v22.3.1
Add --dry-run option to pip install , to let it print what it would install but not ... Ignore .dist-info directories if the...
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