-
Notifications
You must be signed in to change notification settings - Fork 428
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
Configure pip
during build to avoid dependencies
#2748
Comments
Conda-build is already setting env vars for when you're in a build. We'd need to patch pip to find and act on those env vars, but I really don't think this is a conda-build issue. Instead, it is one for pip-feedstock. |
We could patch the |
Alternatively we could have a post-link script that writes to the |
Why does it have to be a pip.conf file? I mean, we can certainly do that, if it's the easiest way. If that's what we do, then doing it in conda-build is going to be much nicer than doing it in a post-link or activate script. If we have to hack pip at all to make it work, why not patch it like setuptools? |
We could also teach |
Solved in PR ( #2972 ), which is included in |
Noticed there were a couple things missing. Added PR ( #3053 ) to set them as well. |
Hi there, thank you for your contribution! This issue has been automatically locked because it has not had recent activity after being closed. Please open a new issue if needed. Thanks! |
Currently we patch
setuptools
to know whenconda-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 withpip
, 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 apip.conf
orpip.in
forpip
to use based on one internally included and maintained inconda-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 buildingconda
packages withpip
.The text was updated successfully, but these errors were encountered: