Skip to content

Commit 483e084

Browse files
authored
Merge pull request #345 from KTibow/patch-4
move around download_raylib and download_box2d calls
2 parents f07e8db + ea3d6dc commit 483e084

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

setup.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ def download_raylib(platform, ext):
4747

4848
if not NO_OCEAN:
4949
download_raylib('raylib-5.5_webassembly', '.zip')
50+
download_raylib(RAYLIB_NAME, '.tar.gz')
5051

5152
BOX2D_URL = 'https://github.com/capnspacehook/box2d/releases/latest/download/'
5253
BOX2D_NAME = 'box2d-macos-arm64' if platform.system() == "Darwin" else 'box2d-linux-amd64'
@@ -64,6 +65,7 @@ def download_box2d(platform):
6465

6566
if not NO_OCEAN:
6667
download_box2d('box2d-web')
68+
download_box2d(BOX2D_NAME)
6769

6870
# Shared compile args for all platforms
6971
extra_compile_args = [
@@ -122,8 +124,6 @@ def download_box2d(platform):
122124
extra_link_args += [
123125
'-Bsymbolic-functions',
124126
]
125-
if not NO_OCEAN:
126-
download_raylib('raylib-5.5_linux_amd64', '.tar.gz')
127127
elif system == 'Darwin':
128128
extra_compile_args += [
129129
'-Wno-error=int-conversion',
@@ -135,14 +135,9 @@ def download_box2d(platform):
135135
'-framework', 'OpenGL',
136136
'-framework', 'IOKit',
137137
]
138-
if not NO_OCEAN:
139-
download_raylib('raylib-5.5_macos', '.tar.gz')
140138
else:
141139
raise ValueError(f'Unsupported system: {system}')
142140

143-
if not NO_OCEAN:
144-
download_box2d(BOX2D_NAME)
145-
146141
# Default Gym/Gymnasium/PettingZoo versions
147142
# Gym:
148143
# - 0.26 still has deprecation warnings and is the last version of the package

0 commit comments

Comments
 (0)