Skip to content

Commit

Permalink
Merge pull request #21956 from VRehnberg/20241203101244_new_pr_dm-con…
Browse files Browse the repository at this point in the history
…trol1018

{ai}[foss/2023a] dm-control v1.0.18
  • Loading branch information
branfosj authored Dec 14, 2024
2 parents 33d747d + 8dcf4b1 commit e74dc0e
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 0 deletions.
53 changes: 53 additions & 0 deletions easybuild/easyconfigs/d/dm-control/dm-control-1.0.18-foss-2023a.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
easyblock = 'PythonBundle'

name = 'dm-control'
version = '1.0.18'

homepage = 'https://github.com/deepmind/tree'
description = """
DeepMind's software stack for physics-based simulation and Reinforcement Learning environments, using MuJoCo physics.
"""

toolchain = {'name': 'foss', 'version': '2023a'}

builddependencies = [
('Bazel', '6.3.1'), # labmaze
]

dependencies = [
('Python', '3.11.3'),
('SciPy-bundle', '2023.07'),
('lxml', '4.9.2'),
('dm-tree', '0.1.8'),
('python-mujoco', '3.1.4'),
('PyOpenGL', '3.1.7'),
('h5py', '3.9.0'), # extras [h5py]
('protobuf-python', '4.24.0'),
('tqdm', '4.66.1'),
]

use_pip = True

exts_list = [
('dm-env', '1.6', {
'checksums': ['a436eb1c654c39e0c986a516cee218bea7140b510fceff63f97eb4fcff3d93de'],
}),
('labmaze', '1.0.6', {
'patches': ['labmaze-1.0.6_use-bazel-v6.patch'],
'checksums': [
{'labmaze-1.0.6.tar.gz': '2e8de7094042a77d6972f1965cf5c9e8f971f1b34d225752f343190a825ebe73'},
{'labmaze-1.0.6_use-bazel-v6.patch': '7aea4376952f493d2c2da101ff408577b1f91ae7a957083659497b6926ee226e'},
],
}),
(name, version, {
'sources': ['dm_control-%(version)s.tar.gz'],
'use_pip_extras': 'h5py',
'checksums': ['9dc825a7719e0386364417746dd85e5fe0a235f2597a0b13323407b273a3633e'],
}),
]

sanity_pip_check = True

options = {'modulename': 'tree'}

moduleclass = 'ai'
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
From 0db42e859462a3b04c14a0155253b0ca4b9b64c9 Mon Sep 17 00:00:00 2001
From: Viktor Rehnberg <[email protected]>
Date: Tue, 3 Dec 2024 09:54:22 +0000
Subject: [PATCH] Migrate to Bazel v6

---
bazel/BUILD | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bazel/BUILD b/bazel/BUILD
index 05458d5..7075c8f 100644
--- a/bazel/BUILD
+++ b/bazel/BUILD
@@ -24,15 +24,15 @@ licenses(["notice"])

config_setting(
name = "linux",
- constraint_values = ["@bazel_tools//platforms:linux"],
+ constraint_values = ["@platforms//os:linux"],
)

config_setting(
name = "apple",
- constraint_values = ["@bazel_tools//platforms:osx"],
+ constraint_values = ["@platforms//os:osx"],
)

config_setting(
name = "windows",
- constraint_values = ["@bazel_tools//platforms:windows"],
+ constraint_values = ["@platforms//os:windows"],
)
--
2.39.3

0 comments on commit e74dc0e

Please sign in to comment.