Skip to content

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Sep 26, 2025

Also, install pip packages in local out/python_deps directory instead
of installing system wide.

This means we can consistently expect dev dependencies to be available
in test code without needing to include an opt out mechanism.

We were already doing this for psutil, but for websockify we made
it optional.

This means that only python scripts that explicitly add
out/python_deps to their python path will be able use
the packages, and in particular it means that the emscripten compiler
itself won't end up implicitly/accidentally depending on them.

@sbc100 sbc100 force-pushed the python_bootstrap_deps branch 2 times, most recently from 0d220da to 958ae17 Compare September 26, 2025 21:37
Also, install pip packages in local `out/python_deps` directory instead
of installing system wide.

This means we can consistently expect dev dependencies to be available
in test code without needing to include an opt out mechanism.

We were already doing this for `psutil`, but for `websockify` we made
it optional.

This means that only python scripts that explicitly add
`out/python_deps` to their python path will be able use
the packages, and in particular it means that the emscripten compiler
itself won't end up implicitly/accidentally depending on them.
@sbc100 sbc100 force-pushed the python_bootstrap_deps branch from 958ae17 to 0bc31ad Compare September 26, 2025 22:09
@sbc100 sbc100 marked this pull request as draft September 26, 2025 22:16
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.

1 participant