@@ -78,22 +78,14 @@ def _package_macos(self, url):
7878 self .output .error ("Failed to find any mount that contains the folder 'mujoco.framework'" )
7979
8080 package_include_mujoco = os .path .join (self .package_folder , "include" , "mujoco" )
81- package_lib = os .path .join (self .package_folder , "lib" )
81+ package_lib = os .path .join (self .package_folder , "lib" , "mujoco.framework" , "Versions" , "A" )
8282
8383 headers_dir = os .path .join (framework_dir , "Versions" , "A" , "Headers" )
8484 dylib_dir = os .path .join (framework_dir , "Versions" , "A" )
8585
8686 copy (self , "*.h" , headers_dir , package_include_mujoco )
8787 copy (self , "*.dylib" , dylib_dir , package_lib )
8888
89- # The dylib might actually be versioned (i.e. libmujoco.3.2.6.dylib)
90- # instead of the expected libmujoco.dylib, so we gotta copy it
91- versioned_lib = os .path .join (package_lib , f"libmujoco.{ self .version } .dylib" )
92- unversioned_lib = os .path .join (package_lib , "libmujoco.dylib" )
93- if os .path .exists (versioned_lib ) and not os .path .exists (unversioned_lib ):
94- self .output .info ("Creating unversioned copy of the mujoco library" )
95- shutil .copy2 (versioned_lib , unversioned_lib )
96-
9789 finally :
9890 os .unlink (filename )
9991 if disk :
0 commit comments