From d82f55aeadebc4f45b228b8172115023e92a6de2 Mon Sep 17 00:00:00 2001 From: Rok Garbas Date: Mon, 23 Nov 2015 17:43:32 +0100 Subject: [PATCH] pythonPackages: shellHook of buildPythonPackages needs tmp_path to have lib/pythonX.Y/site-packages folder --- pkgs/development/python-modules/generic/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/python-modules/generic/default.nix b/pkgs/development/python-modules/generic/default.nix index 6975fbf9c89..0b50e10f88d 100644 --- a/pkgs/development/python-modules/generic/default.nix +++ b/pkgs/development/python-modules/generic/default.nix @@ -116,6 +116,7 @@ python.stdenv.mkDerivation (builtins.removeAttrs attrs ["disabled"] // { tmp_path=$(mktemp -d) export PATH="$tmp_path/bin:$PATH" export PYTHONPATH="$tmp_path/${python.sitePackages}:$PYTHONPATH" + mkdir -p $tmp_path/lib/${python.libPrefix}/site-packages ${bootstrapped-pip}/bin/pip install -e . --prefix $tmp_path fi ${postShellHook}