-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Introduce installation order or a "priority install" feature. #5761
Comments
Alternative 3: the |
@benoit-pierre I will forward it to them, thanks a lot! |
Agreed. This problem has been addressed by PEP 518 (which has only recently been added to pip, so it's fine that |
@Demetrio92 No problem - it's fairly new functionality, so no surprise if people aren't familiar with it yet. |
Their work-around should be updated to: Distribution().fetch_build_eggs(['Cython>=0.15.1', 'numpy>=1.10']) |
@benoit-pierre |
you just saved my life! |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Problem
I have a
requirements.txt
which just won't install automatically becausepackage X
depends oncython
. Both of them are in therequirements.txt
, but there is no way to tell pip to installcython
first (even thoughcython
is placed above thepackage X
). So the line withcython
in the file is simply useless. Everyone trying to set up the dev enviroment will figure out they need it.Proposition 1
Install packages in the order of
requirements.txt
.Example:
would install without a fail, but
would fail because
cartopy
depends oncython
.Gain: automatic installation saving millions of developers over the world the hassle of reading the traceback only to remember that pip still does not have this feature.
Alternative Solutions
Alternative 1 (workaround on the user side): use multiple
requirements.txt
. E.g.requirements_INSTALL_ME_FIRST.txt
withcython
in it, and thenrequirements.txt
with the rest.At least those who read won't be caught by a surprise
pip install -r requirements.txt
fails.Alternative 2 (implement the workaround on the pip side): add a property "priority", e.g.
or
would mean pip puts it into a separate temporary
requirements-priority.txt
and installs it first.Additional context
#3480
#3481
#2362
https://stackoverflow.com/questions/5394356/how-to-specify-install-order-for-python-pip
The text was updated successfully, but these errors were encountered: