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') 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')