Comments (5)
Hi @rsaftoiu! Thanks for the feedback and sorry I broke backwards compatibility for your use case.
During the pip 6.x upgrade pip-accel switched to using pip install --download
which as you pointed out (unintentionally) broke backwards compatibility with previous versions of pip-accel. The reason for this is that when pip is given the --download
option it internally enables --ignore-installed
.
There is no documented way to avoid this behavior, however I just released pip-accel 0.26.3 which uses an undocumented way (via monkey patching) to restore backwards compatibility with the behavior of older versions of pip-accel. I'm not yet sure if I will regret this later on, but I take backwards compatibility fairly serious, which is why I decided to resort to using monkey patching to restore this behavior.
Please try out pip-accel 0.26.3 and let me know whether it resolves the issue you reported.
from pip-accel.
Hi @xolox, thanks for the quick turnaround! Ignoring installed seems to be working now, however it looks like if I try to install an older version of something already installed, that doesn't work, not sure if it's related to your latest change:
(master)[fedora@devel shopventoryapp]$ pip freeze | grep requests
You are using pip version 6.0.8, however version 6.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
requests==2.6.0
(master)[fedora@devel shopventoryapp]$ pip-accel install requests==2.2.1
2015-04-08 19:33:28 devel pip_accel[26545] INFO Unpacking distribution(s) ..
2015-04-08 19:33:28 devel pip_accel[26545] INFO Executing command: pip install --download=/home/fedora/.pip-accel/sources --find-links=file:///home/fedora/.pip-accel/sources --no-index --no-clean --build-directory=/tmp/pip-accel-build-dir-YH2BRy requests==2.2.1
2015-04-08 19:33:28 devel pip.commands.install[26545] INFO Ignoring indexes: https://pypi.python.org/simple
2015-04-08 19:33:28 devel pip.req.req_set[26545] INFO Collecting requests==2.2.1
2015-04-08 19:33:28 devel pip.download[26545] INFO File was already downloaded /home/fedora/.pip-accel/sources/requests-2.2.1-py2.py3-none-any.whl
2015-04-08 19:33:28 devel pip.commands.install[26545] INFO Successfully downloaded requests
2015-04-08 19:33:28 devel pip_accel[26545] INFO Finished unpacking 1 distribution in 0.07 seconds.
2015-04-08 19:33:28 devel pip_accel[26545] INFO Installing from wheel distributions ..
2015-04-08 19:33:28 devel pip_accel[26545] INFO Requirement already satisfied: requests==2.2.1.
2015-04-08 19:33:28 devel pip_accel[26545] INFO Finished installing 0 requirements in 0.02 seconds (1 already installed).
(master)[fedora@devel shopventoryapp]$ pip freeze | grep requests
You are using pip version 6.0.8, however version 6.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
requests==2.6.0
from pip-accel.
Hi again @rsaftoiu and thanks for the clear bug report. I believe both of the issues you reported are now fixed. I updated the test suite to include a package downgrade so I can't accidentally break support for this later on without noticing. I'm not yet sure how to effectively test the first issue you reported (it's a bit more complex to replicate in a standalone test environment) but I'll see if I can come up with a useful test for that as well.
Can you try out the latest version (pip-accel 0.28.2) and let me know whether the second problem you reported is fixed?
from pip-accel.
I'm confident that both of the problems you reported here are now resolved so I'm going to close this issue. If you believe either of the problems you reported is not fixed in pip-accel 0.28.2 and newer versions feel free to reopen this issue or open a new one. Thanks for the feedback!
from pip-accel.
@xolox Apologies for my delay on this - we actually moved away from pip-accel as we're using docker now and caching the requirements in our base image. Much appreciated, it was great to use pip-accel!
from pip-accel.
Related Issues (20)
- pip-accel not updating package HOT 3
- 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
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.