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.
# Now explictly import some dev dependencies so we can error early if they
42
+
# Are missing
43
+
try:
44
+
importpsutil# noqa: F401
45
+
importwebsockify# type: ignore # noqa: F401
46
+
exceptModuleNotFoundErrorase:
47
+
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
92
-
93
77
# start the websocket proxy
94
78
print('running websockify on %d, forward to tcp %d'% (self.listen_port, self.target_port), file=sys.stderr)
95
79
# source_is_ipv6=True here signals to websockify that it should prefer ipv6 address when
0 commit comments