paraview: add python to rpath (#21768)
This commit is contained in:
		| @@ -384,4 +384,13 @@ def nvariant_bool(feature): | |||||||
|         if '%intel' in spec and spec.version >= Version('5.6'): |         if '%intel' in spec and spec.version >= Version('5.6'): | ||||||
|             cmake_args.append('-DPARAVIEW_ENABLE_MOTIONFX:BOOL=OFF') |             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 |         return cmake_args | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Ethan Stam
					Ethan Stam