-
Notifications
You must be signed in to change notification settings - Fork 29
How to pass arguments to pip install? #7
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
Comments
You're correct that there is no such functionality in Makefile.venv and your changes look like they'd work. But I'm not sure we should add this feature to our tool. Is there some reason you don't want to provide There is nothing inherently wrong with the approach you suggested, but I think it would encourage people to create flakier workflows that require others to relearn how familiar things are done for no good reason. |
I cannot add the URL to the
How could it become flakier and unfamiliar? It is following the same pattern as |
By flakiness I meant that it would be another intermediate step that would do nothing but could potentially break something, however unlikely. As for the familiarity, I do not consider my tool as essential to Python developers as pip. Therefore I estimate there are a lot more people familiar with pip than there are those familiar with Makefile.venv. It would be impolite to burden the majority of potential users with learning documentation for a feature that does nothing but obfuscates Could you test if If it works I think there is no need to modify Makefile.venv. We should probably add a hint to README to compensate for pip documentation (hopefully temporary) deficiency. |
I see, thanks for clarifying. |
Just tried the environment variable, it works fine. Thank you 👍 (While in my use case it is fine as I only need one extra-index URL, it seems the environment variable does not support specifying multiple URLs (according to this article, haven't tried it myself)). |
Thank you for confirming that it works! I'll add a note about I think multiple values could be supplied via one environment variable, space separated: |
Uh oh!
There was an error while loading. Please reload this page.
Hi there, thanks for this cool tool :)
Is there any way to pass additional arguments to the
pip install
that installs the requirements files? Specifically, my workflow involves dependencies that are in a private repository so I need to pass--extra-index-url
.Looking at the source it seems it is not possible at moment. Perhaps something like this could do the job?
If the above is sensible I can throw a PR :)
The text was updated successfully, but these errors were encountered: