python27FullBuildEnv -> python.buildEnv for all interpreters

This commit is contained in:
Domen Kožar
2014-10-19 19:48:07 +02:00
parent 67a1a96b49
commit 2d6582d14e
8 changed files with 43 additions and 23 deletions

View File

@@ -1,10 +1,14 @@
{ stdenv, python, buildEnv, makeWrapper, recursivePthLoader, extraLibs ? [], postBuild ? ""
{ stdenv, python, buildEnv, makeWrapper
, extraLibs ? []
, postBuild ? ""
, ignoreCollisions ? false }:
# Create a python executable that knows about additional packages.
let
recursivePthLoader = import ../../python-modules/recursive-pth-loader/default.nix { stdenv = stdenv; python = python; };
in
(buildEnv {
name = "python-${python.version}-env";
name = "${python.name}-env";
paths = stdenv.lib.filter (x : x ? pythonPath) (stdenv.lib.closePropagation extraLibs) ++ [ python recursivePthLoader ];
inherit ignoreCollisions;