Skip to content

Commit

Permalink
Update setup.py to add compatibility with systems using old versions …
Browse files Browse the repository at this point in the history
…of setuptools.
  • Loading branch information
mwydmuch committed Dec 11, 2023
1 parent 60b2d78 commit c7aa0c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["cmake>=3.12.0", "setuptools", "wheel"]
requires = ["cmake>=3.12.0", "setuptools>=65", "wheel"]

[tool.black]
safe = true
Expand All @@ -14,7 +14,7 @@ multi_line_output = 3
known_first_party = ['vizdoom']

[tool.pyright]
include = ["examples/python/**", "gym_wrapper/", "gymnasium_wrapper", "tests/**"]
include = ["examples/python/**", "gym_wrapper", "gymnasium_wrapper", "tests/**"]
exclude = ["**/__pycache__"]
strict = []

Expand Down
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
from multiprocessing import cpu_count

from setuptools import Distribution, setup
from setuptools.command.build import build
try: # for backwards compatibility with setuptools version < 65
from setuptools.command.build import build
except ImportError:
from distutils.command.build import build
from setuptools.command.install import install
from wheel.bdist_wheel import bdist_wheel

Expand Down

0 comments on commit c7aa0c5

Please sign in to comment.