Skip to content

Configure pip during build to avoid dependencies #2748

Closed

Description

Currently we patch setuptools to know when conda-build is running and disable pulling in dependencies. This is a good thing and avoids a fair number of issues. However am unaware of us doing anything on this front with pip, which could be problematic if users start pulling in dependencies that way by accident. As this has become a recommendation for Python packages in conda-forge ( conda-forge/conda-forge.github.io#518 ), this deserves more consideration.

One option would be to address this in conda-build, this could amount to setting a pip.conf or pip.in for pip to use based on one internally included and maintained in conda-build. Another option would be to set a number of environment variables for the active build environment to get the same effect. In either case this should allow us to block downloads, avoid build isolation, disable caching, and any other behavior that might be confusing or problematic for end users building conda packages with pip.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    locked[bot] locked due to inactivity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions