Skip to content
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

Use --break-system-packages on Alpine #6167

Merged
merged 2 commits into from
Dec 12, 2023
Merged

Conversation

kripken
Copy link
Member

@kripken kripken commented Dec 12, 2023

The error mentions that might fix things... but I have no idea what it does.

cc @aheejin

@kripken kripken requested a review from sbc100 December 12, 2023 00:02
@kripken
Copy link
Member Author

kripken commented Dec 12, 2023

Background: The error began just now on multiple PRs, #6166 and #6165

@kripken
Copy link
Member Author

kripken commented Dec 12, 2023

Doesn't seem to work...

./alpine.sh pip3 install -r --break-system-packages requirements-dev.txt
[..]
error: externally-managed-environment
[..]
note: If you believe this is a mistake, please contact your Python installation or
OS distribution provider. You can override this, at the risk of breaking your Python
installation or OS, by passing --break-system-packages.

🤔

Side note, I wonder if this flag is a shorthand for --move-fast-and-break-system-packages

@sbc100 I think you might know about this stuff perhaps?

@sbc100
Copy link
Member

sbc100 commented Dec 12, 2023

Doesn't seem to work...

./alpine.sh pip3 install -r --break-system-packages requirements-dev.txt
[..]
error: externally-managed-environment
[..]
note: If you believe this is a mistake, please contact your Python installation or
OS distribution provider. You can override this, at the risk of breaking your Python
installation or OS, by passing --break-system-packages.

🤔

Side note, I wonder if this flag is a shorthand for --move-fast-and-break-system-packages

@sbc100 I think you might know about this stuff perhaps?

The -r flag needs to come before requirements-dev.txt I think .. so maybe put --break-system-packages before -r

@kripken
Copy link
Member Author

kripken commented Dec 12, 2023

Thanks @sbc100 , that worked.

Landing now to unbreak other PRs. If there is a better solution we can replace it later.

@kripken kripken merged commit cfb2a6e into WebAssembly:main Dec 12, 2023
14 checks passed
@kripken kripken deleted the break.apline branch December 12, 2023 01:26
@tlively
Copy link
Member

tlively commented Dec 12, 2023

This is the same thing we all had to do on our development machines recently, so lgtm.

@huskyslover
Copy link

how do I get rid of land school?

radekdoulik pushed a commit to dotnet/binaryen that referenced this pull request Jul 12, 2024
Something changed in how CI sets up Python and now this is needed to avoid an error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants