Skip to content

Commit 282fe9b

Browse files
authored
Merge pull request #413 from Kaggle/consolidate_installs
Consolidate python installs
2 parents 4df5f4a + dc5dcfe commit 282fe9b

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

docker/cpu.Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ ADD ./README.md ./README.md
3030
ADD ./MANIFEST.in ./MANIFEST.in
3131
ADD ./kaggle_environments ./kaggle_environments
3232

33-
34-
# install kaggle-environments. vec-noise cannot be installed with uv's more stringent checks.
35-
RUN pip install vec-noise && uv pip install accelerate jax gymnax==0.0.8 litellm && uv pip install . && pytest
33+
RUN uv pip install . && pytest
3634

3735
# SET UP KAGGLE-ENVIRONMENTS CHESS
3836
# minimal package to reduce memory footprint

docker/gpu.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ ADD ./pyproject.toml ./pyproject.toml
2929
ADD ./README.md ./README.md
3030
ADD ./MANIFEST.in ./MANIFEST.in
3131
ADD ./kaggle_environments ./kaggle_environments
32-
# vec-noise cannot be installed with uv's more stringent checks.
33-
RUN pip install vec-noise && uv pip install Flask bitsandbytes accelerate jax gymnax==0.0.8 && uv pip install . && pytest
32+
33+
RUN uv pip install . && pytest
3434

3535
CMD kaggle-environments

docker/open_spiel.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ ADD ./MANIFEST.in ./MANIFEST.in
3535
ADD ./kaggle_environments ./kaggle_environments
3636

3737
# install kaggle-environments
38-
RUN pip install Flask bitsandbytes accelerate vec-noise jax gymnax==0.0.8 && pip install . && pytest
38+
RUN uv pip install . && pytest
3939

4040
# begin OpenSpiel integration
4141

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,15 @@ authors = [
66
{name = "Kaggle", email = "[email protected]"},
77
]
88
dependencies = [
9+
"accelerate",
10+
"bitsandbytes",
911
"Chessnut >= 0.4.1",
1012
"Flask >= 1.1.2",
1113
"gymnasium == 1.2.0",
14+
"gymnax==0.0.8",
15+
"jax",
1216
"jsonschema >= 3.0.1",
17+
"litellm",
1318
"numpy >= 2.2.6",
1419
"open_spiel >= 1.6.0",
1520
"pettingzoo == 1.24.0",

0 commit comments

Comments
 (0)