Skip to content

Commit

Permalink
python3Packages.pyopencl: fix build
Browse files Browse the repository at this point in the history
Fix the recently broken build by adding `pybind11`
to the build. Also set $HOME to a temporary directory during the build
to avoid "Permission denied" errors in the build script.

This also unbreaks `sasview` and `pybitmessage`.

See also #56826
See also https://hydra.nixos.org/build/89037506
  • Loading branch information
Ma27 committed Mar 11, 2019
1 parent 94c3ac2 commit d237919
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkgs/development/python-modules/pyopencl/default.nix
Expand Up @@ -11,14 +11,15 @@
, six
, opencl-headers
, ocl-icd
, pybind11
}:

buildPythonPackage rec {
pname = "pyopencl";
version = "2018.2.2";

checkInputs = [ pytest ];
buildInputs = [ opencl-headers ocl-icd ];
buildInputs = [ opencl-headers ocl-icd pybind11 ];

propagatedBuildInputs = [ numpy cffi pytools decorator appdirs six Mako ];

Expand All @@ -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;

Expand Down

0 comments on commit d237919

Please sign in to comment.