File tree 1 file changed +9
-0
lines changed
var/spack/repos/builtin/packages/met
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ class Met(AutotoolsPackage):
63
63
depends_on ("py-numpy" , when = "+python" , type = ("build" , "run" ))
64
64
depends_on ("py-xarray" , when = "+python" , type = ("build" , "run" ))
65
65
depends_on ("py-pandas" , when = "+python" , type = ("build" , "run" ))
66
+ depends_on ("patchelf@0.13:" , when = "platform=linux" , type = "build" )
66
67
67
68
patch ("openmp_shape_patch.patch" , when = "@10.1.0" )
68
69
@@ -182,6 +183,14 @@ def configure_args(self):
182
183
183
184
return args
184
185
186
+ @run_after ("install" , when = "platform=linux" )
187
+ def fixup_rpaths (self ):
188
+ # set rpaths of binaries Python's lib directory
189
+ rpaths = self .spec ["python" ].libs .directories
190
+
191
+ for binary in find (self .prefix .bin , "*" ):
192
+ patchelf = Executable ("patchelf" )
193
+ patchelf ("--add-rpath" , ":" .join (rpaths ), binary )
185
194
186
195
# def setup_run_environment(self, env):
187
196
# env.set('MET_BASE', self.prefix)
You can’t perform that action at this time.
0 commit comments