-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
Question: why is --no-deps --no-build-isolation set? #582
Comments
I've also added this to almost every Scikit-HEP package feedstock, and others, given
|
FYI, I tested PIP_NO_DEPENDENCIES and it does work. |
but their docs show using |
Let's get rid of it! :) PRs always welcome |
Thanks @wolfv. This is useful to know that I'm not missing anything. I'll PR things next week! |
So seems that we should revert |
I think the only thing that's confusing me right now is that the comment says that the
Although I am also quite sure that I copied this from conda-build and that it has been working fine :) |
Too bad they didn't go with more clear |
These are automatically generated from the command line flags. Every command line flag in pip has an environment variable version, but that’s why they’re not customized. |
We chose to be explicit in grayskull b/c conda-build has dropped those in the past in buggy releases and, those flags are not set in when using multiple outputs. I prefer to keep them explicit as they also inform users/recipe creators of what is happening under the hood. |
This is fine, but just to give some context (copying from conda-forge/staged-recipes#28268 (comment) for findability by other people) I always assumed that the fact that So I took away the opposite of the intended message. |
Personally, I think I'd assume that I could remove these flags and then depend on build isolation working - which is very much not the case. I'm not fond of do-nothing flags that can be removed without any affect. And the flags are somewhat arbitrary; personally if I were to put one in it would be If it doesn't work in multiple outputs, that's a bit of an issue - is this all flags, or just some? |
Conda-build sets
PIP_NO_BUILD_ISOLATION
andPIP_NO_DEPENDENCIES
(See https://github.com/conda/conda-build/blob/0ad4bb6829b440caae9ae8a4db14ab1ff3788ab7/conda_build/build.py#L3020). Why is it also being set in every recipe ingrayskull/grayskull/strategy/pypi.py
Line 67 in 5b29307
I think both1 of these should be removed to allow conda-build to specify everything needed for pip to work and keep the recipes as simple as possible. Or all the other flags should be added too.
Notice in conda-forge/packaging-feedstock#32 where
--no-build-isolation
was being added to a recipe based on greyskull.Footnotes
Not completely sure PIP_NO_DEPENDENCIES is the same as
--no-deps
, as it seems to be it should bePIP_NO_DEPS
. The translation is automatic, and there isn't a--no-dependencies
flag. But I am sure thatPIP_NO_BUILD_ISOLATION
is correct. So at least that one could be trimmed here. Edit: tested and PIP_NO_DEPENDENCIES does work ↩The text was updated successfully, but these errors were encountered: