From 8dcf4b13119211642750dab85fc5c513aede7107 Mon Sep 17 00:00:00 2001 From: Viktor Rehnberg Date: Tue, 3 Dec 2024 10:12:46 +0000 Subject: [PATCH] adding easyconfigs: dm-control-1.0.18-foss-2023a.eb and patches: labmaze-1.0.6_use-bazel-v6.patch --- .../dm-control-1.0.18-foss-2023a.eb | 53 +++++++++++++++++++ .../labmaze-1.0.6_use-bazel-v6.patch | 35 ++++++++++++ 2 files changed, 88 insertions(+) create mode 100644 easybuild/easyconfigs/d/dm-control/dm-control-1.0.18-foss-2023a.eb create mode 100644 easybuild/easyconfigs/d/dm-control/labmaze-1.0.6_use-bazel-v6.patch diff --git a/easybuild/easyconfigs/d/dm-control/dm-control-1.0.18-foss-2023a.eb b/easybuild/easyconfigs/d/dm-control/dm-control-1.0.18-foss-2023a.eb new file mode 100644 index 00000000000..35e3e548fe8 --- /dev/null +++ b/easybuild/easyconfigs/d/dm-control/dm-control-1.0.18-foss-2023a.eb @@ -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' diff --git a/easybuild/easyconfigs/d/dm-control/labmaze-1.0.6_use-bazel-v6.patch b/easybuild/easyconfigs/d/dm-control/labmaze-1.0.6_use-bazel-v6.patch new file mode 100644 index 00000000000..b8ac319cc40 --- /dev/null +++ b/easybuild/easyconfigs/d/dm-control/labmaze-1.0.6_use-bazel-v6.patch @@ -0,0 +1,35 @@ +From 0db42e859462a3b04c14a0155253b0ca4b9b64c9 Mon Sep 17 00:00:00 2001 +From: Viktor Rehnberg +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 +