Skip to content

Commit fde42d6

Browse files
committed
fix naming
1 parent 416d273 commit fde42d6

File tree

2 files changed

+37
-13
lines changed

2 files changed

+37
-13
lines changed

MODULE.bazel

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,30 @@ git_override(
3737
# downstream build.
3838
bazel_dep(name = "boringssl", version = "0.20250818.0", repo_name = "ssl")
3939

40+
pyodide = use_extension("//build/deps:dep_pyodide.bzl", "dep_pyodide")
41+
use_repo(
42+
pyodide,
43+
"all_pyodide_wheels_20240829.4",
44+
"all_pyodide_wheels_20250808",
45+
"beautifulsoup4_src_0.26.0a2",
46+
"beautifulsoup4_src_0.28.2",
47+
"beautifulsoup4_src_development",
48+
"fastapi_src_0.26.0a2",
49+
"fastapi_src_0.28.2",
50+
"fastapi_src_development",
51+
"pyodide-0.26.0a2",
52+
"pyodide-0.28.2",
53+
"pyodide-lock_20240829.4.json",
54+
"pyodide-lock_20250808.json",
55+
"pyodide-snapshot-baseline-32a2de5f7.bin",
56+
"pyodide-snapshot-baseline-d13ce2f4a.bin",
57+
"pyodide-snapshot-ew-py-package-snapshot_fastapi-v2.bin",
58+
"pyodide-snapshot-ew-py-package-snapshot_numpy-v2.bin",
59+
"pyodide-snapshot-package_snapshot_fastapi-a6ccb56fe.bin",
60+
"pyodide-snapshot-package_snapshot_numpy-60c9cb28e.bin",
61+
)
62+
4063
include("//build/deps:deps.MODULE.bazel")
4164
include("//build/deps:nodejs.MODULE.bazel")
4265
include("//build/deps:python.MODULE.bazel")
43-
include("//build/deps:pyodide.MODULE.bazel")
4466
include("//build/deps:v8.MODULE.bazel")
Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
load("//:build/python_metadata.bzl", "BUNDLE_VERSION_INFO", "PYODIDE_VERSIONS", "PYTHON_LOCKFILES")
2-
http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
3-
http_file = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")
2+
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file")
43

54
def _pyodide_core(*, version, sha256, **_kwds):
65
# Use @workerd prefix on build_file so we can use this from edgeworker too
@@ -74,16 +73,19 @@ def _snapshot_http_files(
7473
_snapshot_http_file(name, "test-snapshot/", numpy_snapshot, numpy_snapshot_integrity, None)
7574
_snapshot_http_file(name, "test-snapshot/", fastapi_snapshot, fastapi_snapshot_integrity, None)
7675

76+
def _impl(mctx):
77+
for info in PYODIDE_VERSIONS:
78+
_pyodide_core(**info)
7779

78-
for info in PYODIDE_VERSIONS:
79-
_pyodide_core(**info)
80+
for info in BUNDLE_VERSION_INFO.values():
81+
for pkg in info["vendored_packages_for_tests"].values():
82+
_py_vendor_test_deps(version = info["name"], **pkg)
8083

81-
for info in BUNDLE_VERSION_INFO.values():
82-
for pkg in info["vendored_packages_for_tests"].values():
83-
_py_vendor_test_deps(version = info["name"], **pkg)
84+
for info in PYTHON_LOCKFILES:
85+
_pyodide_packages(**info)
86+
for ver in BUNDLE_VERSION_INFO.values():
87+
if ver["name"] == "development":
88+
continue # development is a copy of earlier bundle snapshots
89+
_snapshot_http_files(**ver)
8490

85-
for info in PYTHON_LOCKFILES:
86-
_pyodide_packages(**info)
87-
88-
for ver in BUNDLE_VERSION_INFO.values():
89-
_snapshot_http_files(**ver)
91+
dep_pyodide = module_extension(implementation = _impl)

0 commit comments

Comments
 (0)