-
Notifications
You must be signed in to change notification settings - Fork 8
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
Apply PIP_CONSTRAINT correctly #49
base: main
Are you sure you want to change the base?
Conversation
We could also do a 0.29.1 release with this change so that we don't need to use your fork in pyodide/pyodide#5162, please let me know if you'd like that! |
We don't need to release just to merge then I can use the pyodide/pyodide-build commit on main. |
Sure, just re-triggered the CI failure because I'm unsure if it was flaky or not. Please feel free to merge if it passes |
Looks like a genuine failure. |
Looks like a real failure to me. |
I'm unable to reproduce this locally on macOS, the test passes for me. It's unrelated to |
But pyodide/pyodide#5132 worked without this change. Why is this change needed? |
I'm not entirely sure why the other fix worked, but notice that we do not pass |
|
When I ran it locally I found |
Hmm, that's weird... 🤔 |
Can you try it out and see if you log |
Oh, you are right. It is slightly more complicated than I thought though. So what happens is:
So the current change looks okay. The reason why pyodide/pyodide#5132 worked is probably because we try again with build env replace when installing requirement fails. |
@@ -153,6 +153,7 @@ def _build_in_isolated_env( | |||
|
|||
# first install the build dependencies | |||
symlink_unisolated_packages(env) | |||
os.environ["PIP_CONSTRAINT"] = build_env["PIP_CONSTRAINT"] |
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.
Let's add a comment that this is only for in-tree build for future readers.
For OOT build, a user needs to set PIP_CONSTRAINT if needed.
No description provided.