Skip to content

Question: why is --no-deps --no-build-isolation set? #582

@henryiii

Description

@henryiii

Conda-build sets PIP_NO_BUILD_ISOLATION and PIP_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 in

"<{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation"
? There are other flags set by conda-build, so this seem like an arbitrary set to re-specify on the command line.

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

  1. Not completely sure PIP_NO_DEPENDENCIES is the same as --no-deps, as it seems to be it should be PIP_NO_DEPS. The translation is automatic, and there isn't a --no-dependencies flag. But I am sure that PIP_NO_BUILD_ISOLATION is correct. So at least that one could be trimmed here. Edit: tested and PIP_NO_DEPENDENCIES does work

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions