Skip to content
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

Is it possible to add a variable for the default for all the pip flags? #129

Open
hmaarrfk opened this issue Oct 8, 2018 · 1 comment
Open

Comments

@hmaarrfk
Copy link
Contributor

hmaarrfk commented Oct 8, 2018

It would seem appropriate to me to have an environment variable PIP_INSTALL_FLAGS that contains all the default flags we would like maintainers to include in their builds

It would look something like this

PIP_INSTALL_FLAGS=--no-deps --ignore-installed --no-cache-dir -vvv

(and maybe and an other flag as discussed here conda-forge/pip-feedstock#21 )
and allow the recipe to look like

{{ PYTHON }} -m pip install . {{ PIP_INSTALL_FLAGS }}

and taking it one step further

{{ PIP }} install . {{ PIP_INSTALL_FLAGS }}

with PIP=python -m pip

I'm not sure if hiding --no-deps parameter is useful for the general audiance as it is quite important.

@mariusvniekerk
Copy link
Member

Seems like a good idea to me. My main reservations against it is that it does make conda recipes less reusable outside of a conda-forge context.

maresb pushed a commit to maresb/conda-forge-pinning-feedstock that referenced this issue Nov 1, 2022
Pin root_base tighter due to ABI break in 6.22.6
maresb pushed a commit to maresb/conda-forge-pinning-feedstock that referenced this issue Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants