mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
Merge pull request #120285 from r-burns/pycuda
pycuda: fix opengl runpath
This commit is contained in:
commit
e7893cdf1d
@ -1,4 +1,5 @@
|
||||
{ buildPythonPackage
|
||||
, addOpenGLRunpath
|
||||
, fetchPypi
|
||||
, fetchFromGitHub
|
||||
, Mako
|
||||
@ -40,6 +41,13 @@ buildPythonPackage rec {
|
||||
ln -s ${compyte} $out/${python.sitePackages}/pycuda/compyte
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
find $out/lib -type f \( -name '*.so' -or -name '*.so.*' \) | while read lib; do
|
||||
echo "setting opengl runpath for $lib..."
|
||||
addOpenGLRunpath "$lib"
|
||||
done
|
||||
'';
|
||||
|
||||
# Requires access to libcuda.so.1 which is provided by the driver
|
||||
doCheck = false;
|
||||
|
||||
@ -47,6 +55,10 @@ buildPythonPackage rec {
|
||||
py.test
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
addOpenGLRunpath
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
numpy
|
||||
pytools
|
||||
|
Loading…
Reference in New Issue
Block a user