From 3c512359209224045386f5352f0cb9a380c55e9d Mon Sep 17 00:00:00 2001 From: Florian Friesdorf Date: Mon, 27 Feb 2012 17:34:08 +0000 Subject: [PATCH] enable preConfigure for python packages again authored by: chaoflow, goibhniu svn path=/nixpkgs/branches/stdenv-updates/; revision=32626 --- pkgs/development/python-modules/generic/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/generic/default.nix b/pkgs/development/python-modules/generic/default.nix index 8197e5e74318..a00699a4bbd3 100644 --- a/pkgs/development/python-modules/generic/default.nix +++ b/pkgs/development/python-modules/generic/default.nix @@ -17,6 +17,8 @@ # pollute the user environment. pythonPath ? [] +, preConfigure ? "true" + # distutils registers dependencies in .pth (good) but also creates # console_scripts for dependencies in bin/ (bad). easy_install # creates no scripts for dependencies (good) but does not register @@ -84,7 +86,7 @@ python.stdenv.mkDerivation (attrs // { # enable pth files for dependencies export PYTHONPATH="${site}/lib/${python.libPrefix}/site-packages:$PYTHONPATH" - ''; + '' + preConfigure; # XXX: I think setuptools is not needed here pythonPath = [ setuptools site ] ++ pythonPath;