Skip to content

Commit

Permalink
Bump version number to 1.0.21, update some formatting.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 653288288
Change-Id: I4bf5f4e191e4d8ddd06febf85d5db0c08c2e7381
  • Loading branch information
DeepMind authored and copybara-github committed Jul 17, 2024
1 parent 85f0510 commit a495469
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 23 deletions.
2 changes: 1 addition & 1 deletion dm_control/mujoco/tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"\"\"\")\n",
"\n",
"print('Installing dm_control...')\n",
"!pip install -q dm_control\u003e=1.0.20\n",
"!pip install -q dm_control\u003e=1.0.21\n",
"\n",
"# Configure dm_control to use the EGL rendering backend (requires GPU)\n",
"%env MUJOCO_GL=egl\n",
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ h5py==3.11.0
labmaze==1.0.6
lxml==5.2.2
mock==5.1.0
mujoco==3.1.6
mujoco==3.2.0
nose==1.3.7
nose-xunitmp==0.4.1
numpy==1.24.4; python_version == '3.8'
Expand Down
52 changes: 32 additions & 20 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,16 @@ def _finalize_mjbindings_options(cmd_instance):

class BuildMJBindingsCommand(setuptools.Command):
"""Runs `autowrap.py` to generate the low-level ctypes bindings for MuJoCo."""

description = __doc__
user_options = [
# The format is (long option, short option, description).
('headers-dir=', None,
'Path to directory containing MuJoCo headers.'),
('inplace=', None,
'Place generated files in source directory rather than `build-lib`.'),
('headers-dir=', None, 'Path to directory containing MuJoCo headers.'),
(
'inplace=',
None,
'Place generated files in source directory rather than `build-lib`.',
),
]
boolean_options = ['inplace']

Expand All @@ -99,7 +102,7 @@ def run(self):
sys.executable or 'python',
AUTOWRAP_PATH,
'--header_paths={}'.format(self.header_paths),
'--output_dir={}'.format(output_dir)
'--output_dir={}'.format(output_dir),
]
self.announce('Running command: {}'.format(command), level=logging.DEBUG)
try:
Expand All @@ -119,9 +122,11 @@ class InstallCommand(install.install):
"""Runs 'build_mjbindings' before installation."""

user_options = (
install.install.user_options + BuildMJBindingsCommand.user_options)
install.install.user_options + BuildMJBindingsCommand.user_options
)
boolean_options = (
install.install.boolean_options + BuildMJBindingsCommand.boolean_options)
install.install.boolean_options + BuildMJBindingsCommand.boolean_options
)

def initialize_options(self):
install.install.initialize_options(self)
Expand Down Expand Up @@ -169,9 +174,10 @@ def is_excluded(s):
paths.add(full_path)
return list(paths)


setup(
name='dm_control',
version='1.0.20',
version='1.0.21',
description='Continuous control environments and MuJoCo Python bindings.',
long_description="""
# `dm_control`: DeepMind Infrastructure for Physics-Based Simulation.
Expand Down Expand Up @@ -199,7 +205,7 @@ def is_excluded(s):
'glfw',
'labmaze',
'lxml',
'mujoco >= 3.1.6',
'mujoco >= 3.2.0',
'numpy >= 1.9.0',
'protobuf >= 3.19.4', # TensorFlow requires protobuf<3.20 (b/182876485)
'pyopengl >= 3.1.4',
Expand All @@ -220,17 +226,23 @@ def is_excluded(s):
test_suite='nose.collector',
packages=find_packages(),
package_data={
'dm_control':
find_data_files(
package_dir='dm_control',
patterns=[
'*.amc', '*.msh', '*.png', '*.skn', '*.stl', '*.xml',
'*.textproto', '*.h5'
],
excludes=[
'*/dog_assets/extras/*',
'*/kinova/meshes/*', # Exclude non-decimated meshes.
]),
'dm_control': find_data_files(
package_dir='dm_control',
patterns=[
'*.amc',
'*.msh',
'*.png',
'*.skn',
'*.stl',
'*.xml',
'*.textproto',
'*.h5',
],
excludes=[
'*/dog_assets/extras/*',
'*/kinova/meshes/*', # Exclude non-decimated meshes.
],
),
},
cmdclass={
'build_mjbindings': BuildMJBindingsCommand,
Expand Down
2 changes: 1 addition & 1 deletion tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"\"\"\")\n",
"\n",
"print('Installing dm_control...')\n",
"!pip install -q dm_control\u003e=1.0.20\n",
"!pip install -q dm_control\u003e=1.0.21\n",
"\n",
"# Configure dm_control to use the EGL rendering backend (requires GPU)\n",
"%env MUJOCO_GL=egl\n",
Expand Down

0 comments on commit a495469

Please sign in to comment.