-
Notifications
You must be signed in to change notification settings - Fork 23
Add PIP_BUILD_CONSTRAINT support for pip 26.2+ compatibility #292
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
Conversation
Co-authored-by: ryanking13 <[email protected]>
Co-authored-by: ryanking13 <[email protected]>
|
@copilot Do not change the binary xbuildenv file |
…binary Co-authored-by: ryanking13 <[email protected]>
|
Update |
…te_constraints_file Co-authored-by: ryanking13 <[email protected]>
Co-authored-by: ryanking13 <[email protected]>
Updated |
|
@copilot update test and changelog |
Co-authored-by: ryanking13 <[email protected]>
Co-authored-by: ryanking13 <[email protected]>
pip 26.2+ will enforce that
PIP_CONSTRAINTno longer affects build constraints. The deprecation warning recommends usingPIP_BUILD_CONSTRAINTfor build-time constraints.Changes
_create_constraints_file()to readPIP_BUILD_CONSTRAINTenvironment variable first, falling back toPIP_CONSTRAINTfor backward compatibilitypip_build_constrainttoBUILD_KEY_TO_VARmapping to recognize the environment variablepip_build_constraintthat defaults to$(PIP_CONSTRAINT)for environments where it's not explicitly setPIP_CONSTRAINTandPIP_BUILD_CONSTRAINTto the constraints file path when building packagesPIP_BUILD_CONSTRAINTfunctionality:PIP_BUILD_CONSTRAINTis used when explicitly setPIP_BUILD_CONSTRAINTtakes precedence overPIP_CONSTRAINTwhen both are setBehavior
PIP_BUILD_CONSTRAINTis set in the environment, it will be used for build constraintsPIP_CONSTRAINTvalue for backward compatibilityTesting
PIP_BUILD_CONSTRAINTfunctionality pass (3 tests)This ensures compatibility with pip 26.2+ which will enforce the separation of build constraints from install constraints while maintaining full backward compatibility.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.