Comments (4)
Just to be clear: You're talking about installing packages system wide, right? My intended use case for pip-accel is to bootstrap virtual environments, which is why I didn't notice this previously. Of course I'm not opposed to people using pip-accel to install system wide packages, so we can try to accommodate both use cases.
How I would like to see this fixed (if you want to create a pull request) is to detect which directories are available in the prefix that pip-accel is unpacking to and then rewrite filenames to use this directory scheme.
PS. For future reference, as pointed out by @fdv, the bug was introduced in cc06f65.
from pip-accel.
BTW, thank you for the awesome project, with a nightly generated (and packaged) cache, it reduced my deployment time from 25 to 7 minutes, AMI generation included.
from pip-accel.
Glad to hear that pip-accel is saving you time :-). I merged your pull request but changed the implementation, please refer to the pull request.
A heads up, given that 1) you seem to be using pip-accel for serious work and 2) I recently broke pip-accel for you (in cc06f65): I just pushed b766ba2 which changes the system wide installation prefix from /usr
to /usr/local
on Debian (derived) systems. This could be considered a big change, but I think of it as a bug fix for an oversight on my part. Here is the comment I added to explain this change (if you're interested):
On Debian derived systems only apt (dpkg) should be allowed to touch files in
/usr/lib/pythonX.Y/dist-packages/
andpython setup.py install
knows this (see theposix_local
installation scheme in/usr/lib/python2.7/sysconfig.py
on Debian systems). Because pip-accel replacespython setup.py install
we have to replicate this logic. Magically inferring this from thesysconfig
module would be nice but Python versions before 3.2 don't even have that module (it appears to be a Debian addition in versions before 3.2).
from pip-accel.
Thanks for the feedback and pull request! I believe this problem has been resolved for a while so will close this issue. If you encounter the problem again feel free to reopen this issue or report a new one.
from pip-accel.
Related Issues (20)
- Doesn't work with pip 7+ HOT 2
- Add option for terse logging. HOT 5
- Windows / Appveyor - same version of cached file - invalidated and built again HOT 5
- is_wheel fails when source_directory is None HOT 6
- Not able to use pip-accel both globally and inside a virtual environment HOT 4
- Support custom pip command HOT 7
- Upgrade to pip 8 HOT 4
- Disabling S3CacheBackend because it failed HOT 2
- pip-accel does not support running as a module HOT 6
- Is there any way to use pip-accel without installing to virtualenv?
- pip-accel is not compatible with `-e` editable installs of packages that use `setuptools_scm` HOT 2
- Why does `pip-accel` make an sdist (?) archive when I `pip-accel install -e .`? HOT 3
- pip-accel doesn't support the newest pip? HOT 4
- Not compatible with alternative install locations, e.g. `--user`? HOT 2
- [need advice] Do not cache development versions
- Failed to install some packages
- pip-accel should honor settings in pip.conf
- Is this project still alive? HOT 2
- Trying to install pip-accel, it insists on downgrading pip to 2.7. How can I get it to respect the current version, 21.1.2
- Not able to use pip-accel
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pip-accel.