Comments (4)
Original comment by @lbrack
I wonder if adding --pre as a default action to the underlying pip command is a sane default behaviour.
We were wondering the same thing (and the guy on my team even used the term "sane" which I thought was strong at the time).
I think it should be based on the index type used. If volatile, I think this is the expected behavior. If non volatile (i.e. stable), the --pre should not be used IMHO.
from devpi.
Original comment by @sober7
Just for clarification - my comments were related to the deployment of a devpi-server. I don't see why using pip's --pre option here is necessary. Using pip's --pre option to install a package from an index via devpi install is totally fine.
However, that doesn't affect my initial comment:
If devpi or more precisely the devpi-client and/or devpi-server rely on a feature, which is only available in pip-1.4, installation of devpi package should fail if the required version of pip hasn't been detected.
from devpi.
Original comment by @hpk42
fix issue43: add pip>=1.4 to dependencies.
also bump version info to prepare for 1.0.1
→ <<cset 7e30e1769180>>
from devpi.
Original comment by @hpk42
fix issue43 differently. To summarize the situation and reasons:
-
devpi-server --gendeploy
will instruct pip (without --pre) to
install exactly the version of the invoking devpi-server. -
devpi install ...
will now set an environment variable PIP_PRE
which is only recognized on pip >= 1.4. This way "devpi install"
will always install all versions, independently of the pip version used.
Note that we cannot and should not depend on pip>=1.4 because
devpi install --venv=TARGETENV will use the TARGETENV's pip anyway
and i don't want devpi to require pip 1.4 in such situations.
The basic reason to go with allowing development versions with devpi
is that devpi manages releases and candidates through indices.
Adding pip's very recent ability (not supported by easy_install anyway)
would introduce a second way to manage release files. And it's clear
that "devpi test" neccessarily needs to install development versions
because otherwise it would be harder to test release candidates etc.
Note that if we didn't default to "--pre", you would get different
results if you used pip <1.4 and >= 1.4, and pip<1.4 is still widely
used (and required when using python2.5).
In any case, please note that "devpi install" is otherwise a very
thin wrapper - you can easily use your own configured pip/easy_install
command from wrapper scripts and ignore "devpi install" policies
if really needed.
→ <>
from devpi.
Related Issues (20)
- [client] upload `OSError: [Errno 18] Invalid cross-device link '/tmp/devpi-…/dist/….whl' -> 'dist/….whl'` HOT 2
- Cannot load packages when use base auth in gitlab registry mirror HOT 4
- Need help upgrading from 4.4.0 to current HOT 3
- Incorrect version given to doczip with devpi-client version 7.0.0 HOT 7
- All >400 HTTP responses from login provoke a SystemExit, not using fatal, and are not always fatal errors for login HOT 1
- Errors when sharing package files HOT 8
- Option to have the latest available documentation displayed, when a package has no docs HOT 2
- Support PEP 658 / PEP 714 HOT 8
- HTTP error 502 while retrieving a wheel file HOT 6
- Return HTTP 406 instead of HTTP 404 when `Accept` cannot be fulfilled HOT 4
- Support range requests when downloading files HOT 3
- Connection failures when downloading wheels HOT 6
- Devpi test fails with something related to build(i assume) HOT 6
- Server fatal exception: KeyError: 'projects' HOT 15
- Wheel file including +(Plus sign) doesn't mirrored from origin.
- Support Large Object Files (.whl, egg) greater than 1Gib with postgres HOT 1
- pytz package can't be installed from an index other that root/pypi HOT 1
- Password-less authentication HOT 2
- Add an option to prevent upload packages with Private classifier
- Invalid nginx configuration generated when `--mirror-cache-expiry` is specified
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 devpi.