@@ -71,13 +71,16 @@ def _finalize_mjbindings_options(cmd_instance):
7171
7272class BuildMJBindingsCommand (setuptools .Command ):
7373 """Runs `autowrap.py` to generate the low-level ctypes bindings for MuJoCo."""
74+
7475 description = __doc__
7576 user_options = [
7677 # The format is (long option, short option, description).
77- ('headers-dir=' , None ,
78- 'Path to directory containing MuJoCo headers.' ),
79- ('inplace=' , None ,
80- 'Place generated files in source directory rather than `build-lib`.' ),
78+ ('headers-dir=' , None , 'Path to directory containing MuJoCo headers.' ),
79+ (
80+ 'inplace=' ,
81+ None ,
82+ 'Place generated files in source directory rather than `build-lib`.' ,
83+ ),
8184 ]
8285 boolean_options = ['inplace' ]
8386
@@ -99,7 +102,7 @@ def run(self):
99102 sys .executable or 'python' ,
100103 AUTOWRAP_PATH ,
101104 '--header_paths={}' .format (self .header_paths ),
102- '--output_dir={}' .format (output_dir )
105+ '--output_dir={}' .format (output_dir ),
103106 ]
104107 self .announce ('Running command: {}' .format (command ), level = logging .DEBUG )
105108 try :
@@ -119,9 +122,11 @@ class InstallCommand(install.install):
119122 """Runs 'build_mjbindings' before installation."""
120123
121124 user_options = (
122- install .install .user_options + BuildMJBindingsCommand .user_options )
125+ install .install .user_options + BuildMJBindingsCommand .user_options
126+ )
123127 boolean_options = (
124- install .install .boolean_options + BuildMJBindingsCommand .boolean_options )
128+ install .install .boolean_options + BuildMJBindingsCommand .boolean_options
129+ )
125130
126131 def initialize_options (self ):
127132 install .install .initialize_options (self )
@@ -132,9 +137,7 @@ def finalize_options(self):
132137 _finalize_mjbindings_options (self )
133138
134139 def run (self ):
135- self .reinitialize_command ('build_mjbindings' ,
136- inplace = self .inplace ,
137- headers_dir = self .headers_dir )
140+ self .reinitialize_command ('build_mjbindings' )
138141 self .run_command ('build_mjbindings' )
139142 install .install .run (self )
140143
@@ -171,9 +174,10 @@ def is_excluded(s):
171174 paths .add (full_path )
172175 return list (paths )
173176
177+
174178setup (
175179 name = 'dm_control' ,
176- version = '1.0.20 ' ,
180+ version = '1.0.22 ' ,
177181 description = 'Continuous control environments and MuJoCo Python bindings.' ,
178182 long_description = """
179183# `dm_control`: DeepMind Infrastructure for Physics-Based Simulation.
@@ -201,7 +205,7 @@ def is_excluded(s):
201205 'glfw' ,
202206 'labmaze' ,
203207 'lxml' ,
204- 'mujoco >= 3.1.6 ' ,
208+ 'mujoco >= 3.2.1 ' ,
205209 'numpy >= 1.9.0' ,
206210 'protobuf >= 3.19.4' , # TensorFlow requires protobuf<3.20 (b/182876485)
207211 'pyopengl >= 3.1.4' ,
@@ -222,17 +226,23 @@ def is_excluded(s):
222226 test_suite = 'nose.collector' ,
223227 packages = find_packages (),
224228 package_data = {
225- 'dm_control' :
226- find_data_files (
227- package_dir = 'dm_control' ,
228- patterns = [
229- '*.amc' , '*.msh' , '*.png' , '*.skn' , '*.stl' , '*.xml' ,
230- '*.textproto' , '*.h5'
231- ],
232- excludes = [
233- '*/dog_assets/extras/*' ,
234- '*/kinova/meshes/*' , # Exclude non-decimated meshes.
235- ]),
229+ 'dm_control' : find_data_files (
230+ package_dir = 'dm_control' ,
231+ patterns = [
232+ '*.amc' ,
233+ '*.msh' ,
234+ '*.png' ,
235+ '*.skn' ,
236+ '*.stl' ,
237+ '*.xml' ,
238+ '*.textproto' ,
239+ '*.h5' ,
240+ ],
241+ excludes = [
242+ '*/dog_assets/extras/*' ,
243+ '*/kinova/meshes/*' , # Exclude non-decimated meshes.
244+ ],
245+ ),
236246 },
237247 cmdclass = {
238248 'build_mjbindings' : BuildMJBindingsCommand ,
0 commit comments