Merge pull request #56082 from Ma27/fix-pyopencl

python3Packages.pyopencl: fix build
This commit is contained in:
Robert Schütz
2019-03-14 00:11:22 +01:00
committed by GitHub
2 changed files with 14 additions and 2 deletions

View File

@@ -11,6 +11,7 @@
, six
, opencl-headers
, ocl-icd
, pybind11
}:
buildPythonPackage rec {
@@ -18,7 +19,7 @@ buildPythonPackage rec {
version = "2018.2.3";
checkInputs = [ pytest ];
buildInputs = [ opencl-headers ocl-icd ];
buildInputs = [ opencl-headers ocl-icd pybind11 ];
propagatedBuildInputs = [ numpy cffi pytools decorator appdirs six Mako ];
@@ -32,6 +33,10 @@ buildPythonPackage rec {
substituteInPlace setup.py --replace "pytest>=2" ""
'';
preBuild = ''
export HOME=$(mktemp -d)
'';
# gcc: error: pygpu_language_opencl.cpp: No such file or directory
doCheck = false;