Skip to content

Commit 0279f57

Browse files
committed
Fixes for webplayground. Temporarily removes hard dep on pymunk
1 parent 79d22ff commit 0279f57

File tree

3 files changed

+1
-13
lines changed

3 files changed

+1
-13
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ dependencies = [
2323
"pyglet",
2424
"pillow",
2525
"pyglet==3.0.dev1",
26-
"pymunk>=7.2.0",
2726
"pytiled-parser~=2.2.9",
2827
]
2928
dynamic = ["version"]

webplayground/example.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
await pyodide.loadPackage("micropip");
1515
const micropip = pyodide.pyimport("micropip");
1616
await pyodide.loadPackage("pillow"); // Arcade needs Pillow
17-
await micropip.install("http://localhost:8000/static/{{pyglet_wheel}}");
17+
await micropip.install("pyglet==3.0.dev1", pre=true)
1818
await micropip.install("http://localhost:8000/static/{{arcade_wheel}}");
1919

2020
// We are importing like this because some example files have numbers in the name, and you can't use those in normal import statements

webplayground/server.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414

1515
here = Path(__file__).parent.resolve()
1616

17-
path_pyglet = Path("../../pyglet")
18-
pyglet_wheel_filename = "pyglet-3.0.0a1-py3-none-any.whl"
19-
path_pyglet_wheel = path_pyglet / "dist" / pyglet_wheel_filename
20-
2117
path_arcade = Path("../")
2218
arcade_wheel_filename = "arcade-4.0.0.dev1-py3-none-any.whl"
2319
path_arcade_wheel = path_arcade / "dist" / arcade_wheel_filename
@@ -56,20 +52,13 @@ def example(name="platform_tutorial.01_open_window"):
5652
"example.tpl",
5753
name=name,
5854
arcade_wheel=arcade_wheel_filename,
59-
pyglet_wheel=pyglet_wheel_filename,
6055
)
6156

6257

6358
def main():
6459
# Get us in this file's parent directory
6560
os.chdir(here)
6661

67-
# Go to pyglet and build a wheel
68-
os.chdir(path_pyglet)
69-
subprocess.run(["python", "make.py", "dist"])
70-
os.chdir(here)
71-
shutil.copy(path_pyglet_wheel, f"./{pyglet_wheel_filename}")
72-
7362
# Go to arcade and build a wheel
7463
os.chdir(path_arcade)
7564
subprocess.run(["python", "-m", "build", "--wheel", "--outdir", "dist"])

0 commit comments

Comments
 (0)