Merge pull request #245475 from Artturin/splicepython1
This commit is contained in:
commit
906f999a2f
|
@ -1,9 +1,9 @@
|
||||||
self: super: with self;
|
self: dontUse: with self;
|
||||||
|
|
||||||
let
|
let
|
||||||
pythonInterpreter = super.python.pythonForBuild.interpreter;
|
pythonInterpreter = python.pythonForBuild.interpreter;
|
||||||
pythonSitePackages = super.python.sitePackages;
|
pythonSitePackages = python.sitePackages;
|
||||||
pythonCheckInterpreter = super.python.interpreter;
|
pythonCheckInterpreter = python.interpreter;
|
||||||
setuppy = ../run_setup.py;
|
setuppy = ../run_setup.py;
|
||||||
in {
|
in {
|
||||||
makePythonHook = args: pkgs.makeSetupHook ({passthru.provides.setupHook = true; } // args);
|
makePythonHook = args: pkgs.makeSetupHook ({passthru.provides.setupHook = true; } // args);
|
||||||
|
|
|
@ -47,12 +47,13 @@
|
||||||
selfTargetTarget = pythonOnTargetForTarget.pkgs or {}; # There is no Python TargetTarget.
|
selfTargetTarget = pythonOnTargetForTarget.pkgs or {}; # There is no Python TargetTarget.
|
||||||
};
|
};
|
||||||
hooks = import ./hooks/default.nix;
|
hooks = import ./hooks/default.nix;
|
||||||
keep = lib.extends hooks pythonPackagesFun;
|
keep = self: hooks self {};
|
||||||
extra = _: {};
|
extra = _: {};
|
||||||
optionalExtensions = cond: as: lib.optionals cond as;
|
optionalExtensions = cond: as: lib.optionals cond as;
|
||||||
pythonExtension = import ../../../top-level/python-packages.nix;
|
pythonExtension = import ../../../top-level/python-packages.nix;
|
||||||
python2Extension = import ../../../top-level/python2-packages.nix;
|
python2Extension = import ../../../top-level/python2-packages.nix;
|
||||||
extensions = lib.composeManyExtensions ([
|
extensions = lib.composeManyExtensions ([
|
||||||
|
hooks
|
||||||
pythonExtension
|
pythonExtension
|
||||||
] ++ (optionalExtensions (!self.isPy3k) [
|
] ++ (optionalExtensions (!self.isPy3k) [
|
||||||
python2Extension
|
python2Extension
|
||||||
|
@ -64,7 +65,7 @@
|
||||||
otherSplices
|
otherSplices
|
||||||
keep
|
keep
|
||||||
extra
|
extra
|
||||||
(lib.extends (lib.composeExtensions aliases extensions) keep))
|
(lib.extends (lib.composeExtensions aliases extensions) pythonPackagesFun))
|
||||||
{
|
{
|
||||||
overrides = packageOverrides;
|
overrides = packageOverrides;
|
||||||
python = self;
|
python = self;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user