|
15 | 15 |
|
16 | 16 | """Install script for setuptools.""" |
17 | 17 |
|
18 | | -from distutils import cmd |
19 | | -from distutils import log |
20 | 18 | import fnmatch |
| 19 | +import logging |
21 | 20 | import os |
22 | 21 | import platform |
23 | 22 | import subprocess |
24 | 23 | import sys |
25 | 24 |
|
26 | 25 | import mujoco |
| 26 | +import setuptools |
27 | 27 | from setuptools import find_packages |
28 | 28 | from setuptools import setup |
29 | 29 | from setuptools.command import install |
@@ -69,7 +69,7 @@ def _finalize_mjbindings_options(cmd_instance): |
69 | 69 | cmd_instance.header_paths = ' '.join(header_paths) |
70 | 70 |
|
71 | 71 |
|
72 | | -class BuildMJBindingsCommand(cmd.Command): |
| 72 | +class BuildMJBindingsCommand(setuptools.Command): |
73 | 73 | """Runs `autowrap.py` to generate the low-level ctypes bindings for MuJoCo.""" |
74 | 74 | description = __doc__ |
75 | 75 | user_options = [ |
@@ -101,7 +101,7 @@ def run(self): |
101 | 101 | '--header_paths={}'.format(self.header_paths), |
102 | 102 | '--output_dir={}'.format(output_dir) |
103 | 103 | ] |
104 | | - self.announce('Running command: {}'.format(command), level=log.DEBUG) |
| 104 | + self.announce('Running command: {}'.format(command), level=logging.DEBUG) |
105 | 105 | try: |
106 | 106 | # Prepend the current directory to $PYTHONPATH so that internal imports |
107 | 107 | # in `autowrap` can succeed before we've installed anything. |
@@ -173,7 +173,7 @@ def is_excluded(s): |
173 | 173 |
|
174 | 174 | setup( |
175 | 175 | name='dm_control', |
176 | | - version='1.0.9', |
| 176 | + version='1.0.10', |
177 | 177 | description='Continuous control environments and MuJoCo Python bindings.', |
178 | 178 | long_description=""" |
179 | 179 | # `dm_control`: DeepMind Infrastructure for Physics-Based Simulation. |
@@ -201,7 +201,7 @@ def is_excluded(s): |
201 | 201 | 'glfw', |
202 | 202 | 'labmaze', |
203 | 203 | 'lxml', |
204 | | - 'mujoco >= 2.3.1.post1', |
| 204 | + 'mujoco >= 2.3.2', |
205 | 205 | 'numpy >= 1.9.0', |
206 | 206 | 'protobuf >= 3.19.4', # TensorFlow requires protobuf<3.20 (b/182876485) |
207 | 207 | 'pyopengl >= 3.1.4', |
|
0 commit comments