pythonFull -> python with all modules, pythonFullWithPkgs -> buildEnv

This commit is contained in:
Domen Kožar
2014-10-12 14:59:31 +02:00
parent 8de9ac5bd4
commit a2a7abc67c
5 changed files with 21 additions and 19 deletions

View File

@@ -1,12 +1,11 @@
{ stdenv, python, buildEnv, makeWrapper, recursivePthLoader, extraLibs ? [], postBuild ? ""
, stdLibs ? stdenv.lib.attrValues python.modules, ignoreCollisions ? false
}:
, ignoreCollisions ? false }:
# Create a python executable that knows about additional packages.
(buildEnv {
name = "python-${python.version}-wrapper";
paths = stdenv.lib.filter (x : x ? pythonPath) (stdenv.lib.closePropagation extraLibs) ++ stdLibs ++ [ python recursivePthLoader ];
name = "python-${python.version}-env";
paths = stdenv.lib.filter (x : x ? pythonPath) (stdenv.lib.closePropagation extraLibs) ++ [ python recursivePthLoader ];
inherit ignoreCollisions;