diff options
author | Your Name | 2023-05-10 16:22:38 +0800 |
---|---|---|
committer | Your Name | 2023-05-10 16:22:38 +0800 |
commit | f4871c20ac293c64b75ceab609a6225f2467daec (patch) | |
tree | 04e8f6e9484b4b25e70ca3c3b98a5e51fcba5d8c | |
parent | 1a385a5954e7dbc62f5ea9b732b1bdbae99aa6ac (diff) | |
download | aur-f4871c20ac293c64b75ceab609a6225f2467daec.tar.gz |
update
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 6 | ||||
-rw-r--r-- | mujoco.patch | 43 |
3 files changed, 34 insertions, 23 deletions
@@ -1,6 +1,6 @@ pkgbase = python-mujoco pkgdesc = Mujoco's Python bindings - pkgver = 2.3.2 + pkgver = 2.3.5 pkgrel = 1 url = https://github.com/deepmind/mujoco arch = x86_64 @@ -17,9 +17,9 @@ pkgbase = python-mujoco depends = python-numpy depends = python-opengl depends = mujoco - source = https://github.com/deepmind/mujoco/archive/refs/tags/2.3.2.tar.gz + source = https://github.com/deepmind/mujoco/archive/refs/tags/2.3.5.tar.gz source = mujoco.patch - sha256sums = 85f0dd00ce6a167ae92049957f8d849ad07cd4d44b71b5e49cc66bd44552436c - sha256sums = b46b45f9672c3f483b1f2d71f1f879b0701d182f692524ff2f8bed39bd5c2a9b + sha256sums = 882d855d833375ad27adfa2d9cf4ec2381a1069ebe8fbc4578d876deb4e0b33f + sha256sums = 3d6b5be9b65081e6bc18209f320c608b5e94b659c34483a4f49fb5bad56addd4 pkgname = python-mujoco @@ -1,5 +1,5 @@ pkgname=python-mujoco -pkgver=2.3.2 +pkgver=2.3.5 pkgrel=1 pkgdesc="Mujoco's Python bindings" depends=('python' 'absl-py' 'python-glfw' 'python-numpy' 'python-opengl' 'mujoco') @@ -9,8 +9,8 @@ url="https://github.com/deepmind/mujoco" license=('LGPL3') source=("https://github.com/deepmind/mujoco/archive/refs/tags/$pkgver.tar.gz" "mujoco.patch") -sha256sums=('85f0dd00ce6a167ae92049957f8d849ad07cd4d44b71b5e49cc66bd44552436c' - 'b46b45f9672c3f483b1f2d71f1f879b0701d182f692524ff2f8bed39bd5c2a9b') +sha256sums=('882d855d833375ad27adfa2d9cf4ec2381a1069ebe8fbc4578d876deb4e0b33f' + '3d6b5be9b65081e6bc18209f320c608b5e94b659c34483a4f49fb5bad56addd4') build() { cd "${srcdir}/mujoco-${pkgver}" diff --git a/mujoco.patch b/mujoco.patch index cddcac0a1a0a..40071b09d2cc 100644 --- a/mujoco.patch +++ b/mujoco.patch @@ -1,8 +1,8 @@ diff --git a/python/mujoco/CMakeLists.txt b/python/mujoco/CMakeLists.txt -index 9160f4c..3237219 100644 +index 21ad154..42f6599 100644 --- a/python/mujoco/CMakeLists.txt +++ b/python/mujoco/CMakeLists.txt -@@ -120,7 +120,7 @@ endif() +@@ -132,7 +132,7 @@ endif() set(MUJOCO_PYTHON_ABSL_TARGETS absl::core_headers absl::flat_hash_map absl::span) findorfetch( USE_SYSTEM_PACKAGE @@ -11,7 +11,7 @@ index 9160f4c..3237219 100644 PACKAGE_NAME absl LIBRARY_NAME -@@ -153,7 +153,7 @@ endforeach() +@@ -165,7 +165,7 @@ endforeach() add_compile_definitions(EIGEN_MPL2_ONLY) findorfetch( USE_SYSTEM_PACKAGE @@ -20,7 +20,7 @@ index 9160f4c..3237219 100644 PACKAGE_NAME Eigen3 LIBRARY_NAME -@@ -170,7 +170,7 @@ findorfetch( +@@ -182,7 +182,7 @@ findorfetch( # ==================== PYBIND11 ================================================ findorfetch( USE_SYSTEM_PACKAGE @@ -30,10 +30,10 @@ index 9160f4c..3237219 100644 pybind11 LIBRARY_NAME diff --git a/python/mujoco/__init__.py b/python/mujoco/__init__.py -index 3b2904b..5af302a 100644 +index d9e0e5c..9bf244e 100644 --- a/python/mujoco/__init__.py +++ b/python/mujoco/__init__.py -@@ -46,8 +46,8 @@ from mujoco._structs import * +@@ -47,8 +47,8 @@ from mujoco._structs import * from mujoco.gl_context import * from mujoco.renderer import Renderer @@ -45,10 +45,10 @@ index 3b2904b..5af302a 100644 PLUGIN_HANDLES = [] diff --git a/python/setup.py b/python/setup.py -index 610b858..1b58438 100644 +index bafabfc..e11aa17 100644 --- a/python/setup.py +++ b/python/setup.py -@@ -150,15 +150,12 @@ class BuildCMakeExtension(build_ext.build_ext): +@@ -153,15 +153,15 @@ class BuildCMakeExtension(build_ext.build_ext): (self._mujoco_library_path, self._mujoco_include_path, self._mujoco_plugins_path, @@ -62,18 +62,29 @@ index 610b858..1b58438 100644 - self._copy_external_libraries() - self._copy_mujoco_headers() - self._copy_plugin_libraries() ++ #self._copy_external_libraries() ++ #self._copy_mujoco_headers() ++ #self._copy_plugin_libraries() + if self._is_apple: + self._copy_mjpython() - def _find_mujoco(self): - if MUJOCO_PATH not in os.environ: diff --git a/simulate/CMakeLists.txt b/simulate/CMakeLists.txt -index c120a1f..c2f75c6 100644 +index 2358ef7..cae4aa4 100644 --- a/simulate/CMakeLists.txt +++ b/simulate/CMakeLists.txt -@@ -116,8 +116,13 @@ target_include_directories( - platform_ui_adapter - PUBLIC - ${CMAKE_CURRENT_SOURCE_DIR} -- $<TARGET_PROPERTY:glfw,INTERFACE_INCLUDE_DIRECTORIES> +@@ -80,6 +80,7 @@ if(MUJOCO_HARDEN) + endif() + + # Fetch lodepng dependency. ++find_package(lodepng REQUIRED) + if(NOT TARGET lodepng) + FetchContent_Declare( + lodepng +@@ -114,8 +115,13 @@ if(APPLE) + endif() + target_include_directories( + platform_ui_adapter PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} +- $<TARGET_PROPERTY:glfw,INTERFACE_INCLUDE_DIRECTORIES> ) +# Upstream MuJoCo is carefully not linking glfw here, and so it is just include its directories +# to avoid dealing with two copies of glfw. In conda-forge (or in any C++/Python distribution) |