From 27862335d894b7665a7dba469b2c916b69c6c417 Mon Sep 17 00:00:00 2001 From: Kallinteris Andreas <30759571+Kallinteris-Andreas@users.noreply.github.com> Date: Tue, 5 Dec 2023 20:28:00 +0200 Subject: [PATCH 1/2] add support for `Cython` versions >=3 --- mujoco_py/builder.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mujoco_py/builder.py b/mujoco_py/builder.py index 5280b2c3..d9d2caad 100644 --- a/mujoco_py/builder.py +++ b/mujoco_py/builder.py @@ -1,3 +1,4 @@ +import cython import distutils import glob import os @@ -236,7 +237,10 @@ def _build_impl(self): "script_name": None, "script_args": ["build_ext"] }) - dist.ext_modules = cythonize([self.extension]) + if cython.__version__ < "3.0.0": + dist.ext_modules = cythonize([self.extension]) + else: + dist.ext_modules = cythonize([self.extension], compiler_directives={'legacy_implicit_noexcept': True}) dist.include_dirs = [] dist.cmdclass = {'build_ext': custom_build_ext} build = dist.get_command_obj('build') From 68aa04f22a026015b237012a5806038caf6a7e35 Mon Sep 17 00:00:00 2001 From: Kallinteris Andreas <30759571+Kallinteris-Andreas@users.noreply.github.com> Date: Sun, 10 Dec 2023 14:47:19 +0200 Subject: [PATCH 2/2] Bump version for release --- mujoco_py/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mujoco_py/version.py b/mujoco_py/version.py index 0328fb4d..0b191328 100644 --- a/mujoco_py/version.py +++ b/mujoco_py/version.py @@ -1,6 +1,6 @@ __all__ = ['__version__', 'get_version'] -version_info = (2, 1, 2, 14) +version_info = (2, 1, 2, 15) # format: # ('mujoco_major', 'mujoco_minor', 'mujoco_py_major', 'mujoco_py_minor')