Skip to content

Commit 61e5ac5

Browse files
committed
Try to fix makelock.mjs
1 parent 2913980 commit 61e5ac5

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.nojekyll

Whitespace-only changes.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Mozilla Public License, version 2.0
22

3-
Copyright (c) 2024, Juniper Tyree
3+
Copyright (c) 2023-2025, Juniper Tyree
44

55
1. Definitions
66

tools/makelock.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const [_node_path, _script_path, requirements_path, new_lockfile_path] = argv;
88
const requirements = readFileSync(requirements_path, { encoding: 'utf8' });
99

1010
const py = await loadPyodide({ fullStdLib: true, packages: [
11-
"micropip", "openssl", "test",
11+
"micropip", "test",
1212
] });
1313

1414
await py.runPythonAsync(`
@@ -87,7 +87,9 @@ lock = json.loads(
8787
8888
for package in lock["packages"].values():
8989
package["depends"] = sorted(package["depends"])
90-
package["imports"] = sorted(get_imports_for_package(package["name"]))
90+
91+
if package["name"] != "openssl":
92+
package["imports"] = sorted(get_imports_for_package(package["name"]))
9193
9294
with open("/pyodide-lock.json", "w") as f:
9395
json.dump(lock, f, sort_keys=True)

0 commit comments

Comments
 (0)