-
Notifications
You must be signed in to change notification settings - Fork 112
wheel builds: react to changes in pip's handling of build constraints #785
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
Merged
+25
−9
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: NVIDIA/cuopt
Length of output: 105
🌐 Web query:
PIP_NO_BUILD_ISOLATION pip issue 5735💡 Result:
Short summary — Issue
#5735(pypa/pip): users reported that the environment variables with names like PIP_NO_BUILD_ISOLATION behave counter‑intuitively — their truthiness is inverted compared with what the names suggest (i.e., the NO vars are treated oddly so setting them to "off"/"false"/"0" can enable the feature and "on"/"true"/"1" can disable it), which confused many users. The issue requests clarifying/fixing that behavior. [1]Related/follow‑up: other pip issues show practical problems around build isolation (e.g., when disabling build isolation pip may ignore or change how it handles build-system requirements), so the recommended reliable approach is to use the explicit CLI flag (--no-build-isolation) or install build dependencies manually when turning off isolation. [2][3]
Sources:
PIP_NO_BUILD_ISOLATIONbehaves opposite to how it reads" (Issue#5735). [1]#9314). [2]🌐 Web query:
pip PIP_NO_BUILD_ISOLATION environment variable issue💡 Result:
Summary and fixes
What it does: PIP_NO_BUILD_ISOLATION corresponds to the pip CLI option --no-build-isolation (i.e., disable PEP 517/518 build isolation so pip will build using the current environment). Use of this requires you have the build dependencies installed yourself. (pip.pypa.io)
Common problems and why they happen:
How to troubleshoot / fix
If you want, tell me: your pip version and the exact command/output and I’ll give targeted steps.
Citations:
PIP_NO_BUILD_ISOLATIONbehaves opposite to how it reads pypa/pip#5735--no-build-isolationastral-sh/uv#3309--no-build-isolationastral-sh/uv#3309🏁 Script executed:
Repository: NVIDIA/cuopt
Length of output: 75
🌐 Web query:
site:github.com/pypa/pip/issues/573💡 Result:
I found the GitHub issue: "don't --user install in --system_site_packages virtualenvs when a conflict is present in the virtualenv site." (pypa/pip
#573), opened Jun 10, 2012 — it explains that in virtualenvs created with --system_site_packages, sys.path order makes a --user install unusable if a conflicting package already exists in the virtualenv site; the issue was closed and is auto-locked. [1]Source: GitHub — pypa/pip issue
#573. [1]🏁 Script executed:
sed -n '32,39p' ./ci/build_wheel.shRepository: NVIDIA/cuopt
Length of output: 526
Fix incorrect GitHub issue reference in comment.
The URL on line 36 references issue
#573, which is unrelated to PIP_NO_BUILD_ISOLATION behavior. The correct issue is#5735("PIP_NO_BUILD_ISOLATION behaves opposite to how it reads"), which directly addresses the semantics discussed in the comment.Proposed fix
📝 Committable suggestion
🤖 Prompt for AI Agents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good rabbit!
That's totally correct, it should end with
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jameslamb, thank you for confirming! I'm glad I could help catch that incorrect reference. Let me know if you need anything else! 🐰(ᵔᴥᵔ)