Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pythonPackages.Theano: set NIX_ENFORCE_PURITY=0 for invocation of wrapped compiler #99516

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion pkgs/development/python-modules/Theano/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ let
#!$(type -P bash)
$(declare -xp | sed -e '/^[^=]\+="\('"''${NIX_STORE//\//\\/}"'\|[^\/]\)/!d')
declare -x NIX_BUILD_TOP="${buildTop}"
declare -x NIX_ENFORCE_PURITY=0
$(type -P '${command}') "\$@"
EOF
chmod +x "$out"
Expand Down Expand Up @@ -68,7 +69,9 @@ in buildPythonPackage rec {
--replace 'StrParam(default_dnn_base_path)' 'StrParam('\'''${cudnn}'\''')'
'';

preCheck = ''
# needs to be postInstall so it runs before pythonImportsCheck even when
# doCheck = false (meaning preCheck would be disabled)
postInstall = ''
mkdir -p check-phase
export HOME=$(pwd)/check-phase
'';
Expand All @@ -81,6 +84,8 @@ in buildPythonPackage rec {
checkInputs = [ nose ];
propagatedBuildInputs = [ numpy numpy.blas scipy six libgpuarray_ ];

pythonImportsCheck = [ "theano" ];

meta = with stdenv.lib; {
homepage = "http://deeplearning.net/software/theano/";
description = "A Python library for large-scale array computation";
Expand Down