paraview: add python to rpath (#21768)

This commit is contained in:
Ethan Stam 2021-03-01 17:00:44 -07:00 committed by GitHub
parent bd94458552
commit b2e0bc1ae7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -384,4 +384,13 @@ def nvariant_bool(feature):
if '%intel' in spec and spec.version >= Version('5.6'):
cmake_args.append('-DPARAVIEW_ENABLE_MOTIONFX:BOOL=OFF')
# Encourage Paraview to use the correct Python libs
if spec.satisfies('+python') or spec.satisfies('+python3'):
pylibdirs = spec['python'].libs.directories
cmake_args.append(
"-DCMAKE_INSTALL_RPATH={0}".format(
":".join(self.rpath + pylibdirs)
)
)
return cmake_args