You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
# Verify that we can import these dev dependencies and early exit if they
46
+
# are missing
47
+
try:
48
+
importpsutil# noqa: F401
49
+
importwebsockify# type: ignore # noqa: F401
50
+
exceptModuleNotFoundErrorase:
51
+
raiseException('Unable to import python dev dependencies (psutil/websockify). Run "./bootstrap" (or "python3 -m pip -r requirements-dev.txt --target out/python_deps") to install') frome
raiseException('Unable to import module websockify. Run "python3 -m pip install websockify" or set environment variable EMTEST_SKIP_PYTHON_DEV_PACKAGES=1 to skip this test.') fromNone
93
-
94
78
# start the websocket proxy
95
79
print('running websockify on %d, forward to tcp %d'% (self.listen_port, self.target_port), file=sys.stderr)
96
80
# source_is_ipv6=True here signals to websockify that it should prefer ipv6 address when
0 commit comments