-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
install --target should offer option to supplement existing packages #4116
Comments
Consider this simple case:
Requests is installed in system site-packages, then installed again in ./tmp, even though the version in system site packages is sufficient for the purposes of this invocation. |
The requested behavior would be particularly useful in cases where the dependencies are already satisfied and thus would require no work to satisfy the install operation. |
@jaraco, do you still need this post-PEP 517? Maybe something different? |
I just ran into this and was about to submit a new issue. Based on #4389, it seems the intent of Maybe all this could be solved by adding some documentation for how those three options differ, and what are the intended use cases? |
I could still use this functionality.
I seem to think I tried that, but it doesn't behave like Additionally, I notice that when a package is upgraded, either due to What I really want is something like |
I should say, though, the importance of this case is substantially diminished now that |
Given the lack of activity here, I'm gonna go ahead and close this off for now. While this would be nice-to-have; there's not enough interest in actually doing this (based on the lack of responses here and that there's alternatives) but if folks feel like that this is still relevant, please do say so. :) |
Actually, is #10110 basically the same thing? |
Yup. |
This issue is still needed and still a blocker to remove the suboptimal hack in pip-run that attempts to do the same thing (jaraco/pip-run#51). Is there a reason the duplicate is left open while this report is closed? It makes it more difficult to track if the issue is a moving target. |
@jaraco please don't comment on locked issues in this issue tracker, which you're able to do due to being an admin on the pypa organisation. |
I'd like to replace the Setuptools
setup_requires
andtests_requires
dependency resolution with something that relies on pip. To this end, I've created rwt, which relies heavily onpip install --target
to install the requisite packages.One major difference between Setuptools setup_requires behavior and
pip install --target
is thatpip install --target
installs all requirements unconditionally while easy_install will only install those packages not already satisfied by the current environment (working set).For the purposes of rwt and probably other use cases, if pip had a similar option for
--target
that would only install those packages not already satisfied by the current environment, that would be preferable, especially in cases where one is seeking to augment or override a small number of packages from an otherwise large set already mostly available.The text was updated successfully, but these errors were encountered: