File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed
src/workerd/server/tests/python Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -69,4 +69,6 @@ use_repo(
6969 "pyodide-snapshot-package_snapshot_fastapi-a6ccb56fe.bin",
7070 "pyodide-snapshot-package_snapshot_numpy-60c9cb28e.bin",
7171 "pyodide-snapshot-snapshot_a6b652a95810783f5078b9a5dbd4a07c30718acb4ff724e82c25db7353dd7f2d.bin",
72+ "pyodide_0.26.0a2_2024-03-01_75.capnp.bin",
73+ "pyodide_0.28.2_2025-01-16_6.capnp.bin",
7274)
Original file line number Diff line number Diff line change 1+ # workerd uses bzlmod for pyodide (and everything else)
2+ is_pyodide_bzlmod = True
Original file line number Diff line number Diff line change 1+ load ("@//:build/is_pyodide_bzlmod.bzl" , "is_pyodide_bzlmod" )
12load ("@bazel_skylib//rules:copy_file.bzl" , "copy_file" )
23load ("@bazel_skylib//rules:expand_template.bzl" , "expand_template" )
34load ("//:build/python_metadata.bzl" , "BUNDLE_VERSION_INFO" )
@@ -32,7 +33,15 @@ def _py_wd_test_helper(
3233
3334 pkg_tag = BUNDLE_VERSION_INFO [python_flag ]["packages" ]
3435 data = data + ["@all_pyodide_wheels_%s//:whls" % pkg_tag ]
35- args = args + ["--pyodide-package-disk-cache-dir" , "../all_pyodide_wheels_%s" % pkg_tag ]
36+ args = args + ["--pyodide-package-disk-cache-dir" ]
37+
38+ # TODO(cleanup): We support both mangled and non-mangled wheels paths for now, clean up once
39+ # downstream repo fully uses bzlmod
40+ if is_pyodide_bzlmod :
41+ # +pyodide+ is a bzlmod canonical repository name
42+ args .append ("../+pyodide+all_pyodide_wheels_%s" % pkg_tag )
43+ else :
44+ args .append ("../all_pyodide_wheels_%s" % pkg_tag )
3645
3746 load_snapshot = None
3847 pyodide_version = BUNDLE_VERSION_INFO [python_flag ]["real_pyodide_version" ]
You can’t perform that action at this time.
0 commit comments