pythonFull -> python with all modules, pythonFullWithPkgs -> buildEnv
This commit is contained in:
parent
8de9ac5bd4
commit
a2a7abc67c
@ -29,7 +29,7 @@ in stdenv.mkDerivation rec {
|
|||||||
"-I${dbus_libs}/lib/dbus-1.0/include" ];
|
"-I${dbus_libs}/lib/dbus-1.0/include" ];
|
||||||
|
|
||||||
# Fix up python path so the lockfile library is on it.
|
# Fix up python path so the lockfile library is on it.
|
||||||
PYTHONPATH = stdenv.lib.makeSearchPath "lib/${pythonFull.python.libPrefix}/site-packages" [
|
PYTHONPATH = stdenv.lib.makeSearchPath "lib/${pythonFull.libPrefix}/site-packages" [
|
||||||
pythonPackages.curses pythonPackages.lockfile
|
pythonPackages.curses pythonPackages.lockfile
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -1,12 +1,11 @@
|
|||||||
{ stdenv, python, buildEnv, makeWrapper, recursivePthLoader, extraLibs ? [], postBuild ? ""
|
{ 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.
|
# Create a python executable that knows about additional packages.
|
||||||
|
|
||||||
(buildEnv {
|
(buildEnv {
|
||||||
name = "python-${python.version}-wrapper";
|
name = "python-${python.version}-env";
|
||||||
paths = stdenv.lib.filter (x : x ? pythonPath) (stdenv.lib.closePropagation extraLibs) ++ stdLibs ++ [ python recursivePthLoader ];
|
paths = stdenv.lib.filter (x : x ? pythonPath) (stdenv.lib.closePropagation extraLibs) ++ [ python recursivePthLoader ];
|
||||||
|
|
||||||
inherit ignoreCollisions;
|
inherit ignoreCollisions;
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ stdenv.mkDerivation {
|
|||||||
patches = [ ./yylex.patch ];
|
patches = [ ./yylex.patch ];
|
||||||
|
|
||||||
# Workaround to make the python wrapper not drop this package:
|
# Workaround to make the python wrapper not drop this package:
|
||||||
# pythonFull.override { extraLibs = [ thrift ]; }
|
# pythonFullWithPkgs.override { extraLibs = [ thrift ]; }
|
||||||
pythonPath = [];
|
pythonPath = [];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
|
|||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
patchShebangs .
|
patchShebangs .
|
||||||
mkdir -p "$out"
|
mkdir -p "$out"
|
||||||
sed -e "s|python_lib_dir = .*|python_lib_dir = \"$out/lib/${pythonFull.python.libPrefix}/site-packages\"|" -i SConstruct
|
sed -e "s|python_lib_dir = .*|python_lib_dir = \"$out/lib/${pythonFull.libPrefix}/site-packages\"|" -i SConstruct
|
||||||
scons prefix="$out" leapfetch=no gpsd_user=${gpsdUser} gpsd_group=${gpsdGroup} \
|
scons prefix="$out" leapfetch=no gpsd_user=${gpsdUser} gpsd_group=${gpsdGroup} \
|
||||||
systemd=yes udevdir="$out/lib/udev" chrpath=no
|
systemd=yes udevdir="$out/lib/udev" chrpath=no
|
||||||
'';
|
'';
|
||||||
|
@ -1875,7 +1875,7 @@ let
|
|||||||
openobex = callPackage ../tools/bluetooth/openobex { };
|
openobex = callPackage ../tools/bluetooth/openobex { };
|
||||||
|
|
||||||
openopc = callPackage ../tools/misc/openopc {
|
openopc = callPackage ../tools/misc/openopc {
|
||||||
pythonFull = python27Full.override {
|
pythonFull = python27FullWithPkgs.override {
|
||||||
extraLibs = [ python27Packages.pyro3 ];
|
extraLibs = [ python27Packages.pyro3 ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -3931,9 +3931,6 @@ let
|
|||||||
python2Packages = python27Packages;
|
python2Packages = python27Packages;
|
||||||
python3Packages = python34Packages;
|
python3Packages = python34Packages;
|
||||||
|
|
||||||
pythonFull = python2Full;
|
|
||||||
python2Full = python27Full;
|
|
||||||
|
|
||||||
python26 = callPackage ../development/interpreters/python/2.6 { db = db47; };
|
python26 = callPackage ../development/interpreters/python/2.6 { db = db47; };
|
||||||
python27 = callPackage ../development/interpreters/python/2.7 { };
|
python27 = callPackage ../development/interpreters/python/2.7 { };
|
||||||
python32 = callPackage ../development/interpreters/python/3.2 { };
|
python32 = callPackage ../development/interpreters/python/3.2 { };
|
||||||
@ -3942,18 +3939,24 @@ let
|
|||||||
|
|
||||||
pypy = callPackage ../development/interpreters/pypy/2.4 { };
|
pypy = callPackage ../development/interpreters/pypy/2.4 { };
|
||||||
|
|
||||||
python26Full = callPackage ../development/interpreters/python/wrapper.nix {
|
pythonFull = python2Full;
|
||||||
extraLibs = [];
|
python2Full = python27Full;
|
||||||
postBuild = "";
|
python26Full = python26.override {
|
||||||
python = python26;
|
includeModules = true;
|
||||||
|
};
|
||||||
|
python27Full = python27.override {
|
||||||
|
includeModules = true;
|
||||||
|
};
|
||||||
|
python26FullWithPkgs = callPackage ../development/interpreters/python/wrapper.nix {
|
||||||
|
python = python26Full;
|
||||||
inherit (python26Packages) recursivePthLoader;
|
inherit (python26Packages) recursivePthLoader;
|
||||||
};
|
};
|
||||||
python27Full = callPackage ../development/interpreters/python/wrapper.nix {
|
python27FullWithPkgs = callPackage ../development/interpreters/python/wrapper.nix {
|
||||||
extraLibs = [];
|
python = python27Full;
|
||||||
postBuild = "";
|
|
||||||
python = python27;
|
|
||||||
inherit (python27Packages) recursivePthLoader;
|
inherit (python27Packages) recursivePthLoader;
|
||||||
};
|
};
|
||||||
|
pythonFullWithPkgs = python2FullWithPkgs;
|
||||||
|
python2FullWithPkgs = python27FullWithPkgs;
|
||||||
|
|
||||||
python2nix = callPackage ../tools/package-management/python2nix { };
|
python2nix = callPackage ../tools/package-management/python2nix { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user