Skip to content

Commit 12df3da

Browse files
committed
pin pettingzoo version and fix strange setuptools bug
1 parent 7bef94e commit 12df3da

File tree

5 files changed

+14
-7
lines changed

5 files changed

+14
-7
lines changed

ChangeLog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# ChangeLog
22

3+
### v2.1.9
4+
5+
Fix bug where setuptools was causing runtime errors
36
### v2.1.8
47

58
fix bug on mac where non python kits assumed a windows platform

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pip install --upgrade luxai_s2
2828
pip install juxai-s2 # installs the GPU version, requires a compatible GPU
2929
```
3030

31-
If you have `gym` installation issues, we recommend running `pip install setuptools==56.2.0`. If you use conda, we highly recommend creating an environment based on the [environment.yml file in this repo](https://github.com/Lux-AI-Challenge/Lux-Design-S2/blob/main/environment.yml).
31+
If you have `gym` installation issues, we recommend running `pip install setuptools==59.8.0`. If you have issues installing `vec-noise`, make sure to read the error output, it's usually because you are missing some C/C++ build tools. If you use conda, we highly recommend creating an environment based on the [environment.yml file in this repo](https://github.com/Lux-AI-Challenge/Lux-Design-S2/blob/main/environment.yml). If you don't know how conda works, I highly recommend setting it up, see the [install instructions](https://conda.io/projects/conda/en/latest/user-guide/install/index.html#regular-installation).
3232

3333

3434
To verify your installation, you can run the CLI tool by replacing `path/to/bot/main.py` with a path to a bot (e.g. the starter kit in `kits/python/main.py`) and run

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dependencies:
1313
- gym=0.21
1414

1515
- pip:
16-
- pettingzoo
16+
- pettingzoo==1.12.0
1717
- termcolor
1818
- pygame
1919
- vec_noise

luxai_s2/luxai_s2/version.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
import pkg_resources
2-
3-
__version__ = pkg_resources.require("luxai-s2")[0].version
1+
__version__ = "2.1.9"

luxai_s2/setup.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@
66
def read(fname):
77
return open(os.path.join(os.path.dirname(__file__), fname)).read()
88

9-
9+
def get_version(rel_path):
10+
for line in read(rel_path).splitlines():
11+
if line.startswith('__version__'):
12+
delim = '"' if '"' in line else "'"
13+
return line.split(delim)[1]
14+
else:
15+
raise RuntimeError("Unable to find version string.")
1016
setup(
1117
name="luxai-s2",
1218
author="Lux AI Challenge",
@@ -17,7 +23,7 @@ def read(fname):
1723
long_description="Code for the Lux AI Challenge Season 2",
1824
packages=find_packages(exclude="kits"),
1925
entry_points={"console_scripts": ["luxai-s2 = luxai_runner.cli:main"]},
20-
version="2.1.8",
26+
version=get_version("luxai_s2/version.py"),
2127
python_requires=">=3.7",
2228
install_requires=[
2329
"numpy",

0 commit comments

Comments
 (0)