From fc2874d02e61cffb0bcc3e24a47349654c5845eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Tue, 17 Nov 2015 11:36:32 +0100 Subject: [PATCH] pypy: use the official sitePackages install path --- pkgs/development/interpreters/pypy/default.nix | 2 +- pkgs/development/interpreters/pypy/setup-hook.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/interpreters/pypy/default.nix b/pkgs/development/interpreters/pypy/default.nix index fe209f6f1148..e82b4236325a 100644 --- a/pkgs/development/interpreters/pypy/default.nix +++ b/pkgs/development/interpreters/pypy/default.nix @@ -119,7 +119,7 @@ let isPypy = true; buildEnv = callPackage ../python/wrapper.nix { python = self; }; interpreter = "${self}/bin/${executable}"; - sitePackages = "lib/${libPrefix}/site-packages"; + sitePackages = "site-packages"; }; enableParallelBuilding = true; # almost no parallelization without STM diff --git a/pkgs/development/interpreters/pypy/setup-hook.sh b/pkgs/development/interpreters/pypy/setup-hook.sh index c82179d9e87b..e9081d1eaa53 100644 --- a/pkgs/development/interpreters/pypy/setup-hook.sh +++ b/pkgs/development/interpreters/pypy/setup-hook.sh @@ -1,12 +1,12 @@ addPythonPath() { - addToSearchPathWithCustomDelimiter : PYTHONPATH $1/lib/pypy2.6/site-packages + addToSearchPathWithCustomDelimiter : PYTHONPATH $1/site-packages } toPythonPath() { local paths="$1" local result= for i in $paths; do - p="$i/lib/pypy2.6/site-packages" + p="$i/site-packages" result="${result}${result:+:}$p" done echo $result