Skip to content

Commit 4feaeb1

Browse files
committed
Some more dependency cleanup for WASM environment
1 parent b8843aa commit 4feaeb1

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ classifiers = [
2121
]
2222
dependencies = [
2323
"pyglet==3.0.dev1",
24-
"pillow~=12.0.0",
24+
"pillow>=11.3.0",
2525
"pytiled-parser~=2.2.9",
2626
]
2727
dynamic = ["version"]

webplayground/example.tpl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
% title = name.split(".")[-1]
66
<title>{{title}}</title>
7-
<script src="https://cdn.jsdelivr.net/pyodide/v0.28.1/full/pyodide.js"></script>
7+
<script src="https://cdn.jsdelivr.net/pyodide/v0.29.0/full/pyodide.js"></script>
88
</head>
99

1010
<body>
@@ -13,9 +13,8 @@
1313
let pyodide = await loadPyodide();
1414
await pyodide.loadPackage("micropip");
1515
const micropip = pyodide.pyimport("micropip");
16-
await pyodide.loadPackage("pillow"); // Arcade needs Pillow
17-
await micropip.install("pyglet==3.0.dev1", pre=true)
18-
await micropip.install("http://localhost:8000/static/{{arcade_wheel}}");
16+
await pyodide.loadPackage("pillow");
17+
await micropip.install("http://localhost:8000/static/{{arcade_wheel}}", pre=true);
1918
2019
// We are importing like this because some example files have numbers in the name, and you can't use those in normal import statements
2120
pyodide.runPython(`

webplayground/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def main():
6161

6262
# Go to arcade and build a wheel
6363
os.chdir(path_arcade)
64-
subprocess.run(["python", "-m", "build", "--wheel", "--outdir", "dist"])
64+
subprocess.run(["uv", "build"])
6565
os.chdir(here)
6666
shutil.copy(path_arcade_wheel, f"./{arcade_wheel_filename}")
6767

0 commit comments

Comments
 (0)