mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-20 15:41:16 +00:00
buildPython*: run runtime dependency check hook for wheels
This commit is contained in:
@@ -283,6 +283,14 @@ lib.extendMkDerivation {
|
||||
|
||||
name = namePrefix + attrs.name or "${finalAttrs.pname}-${finalAttrs.version}";
|
||||
|
||||
runtimeDepsCheckHook =
|
||||
if isBootstrapPackage then
|
||||
pythonRuntimeDepsCheckHook.override {
|
||||
inherit (python.pythonOnBuildForHost.pkgs.bootstrap) packaging;
|
||||
}
|
||||
else
|
||||
pythonRuntimeDepsCheckHook;
|
||||
|
||||
in
|
||||
{
|
||||
inherit name;
|
||||
@@ -330,17 +338,11 @@ lib.extendMkDerivation {
|
||||
else
|
||||
pypaBuildHook
|
||||
)
|
||||
(
|
||||
if isBootstrapPackage then
|
||||
pythonRuntimeDepsCheckHook.override {
|
||||
inherit (python.pythonOnBuildForHost.pkgs.bootstrap) packaging;
|
||||
}
|
||||
else
|
||||
pythonRuntimeDepsCheckHook
|
||||
)
|
||||
runtimeDepsCheckHook
|
||||
]
|
||||
++ optionals (format' == "wheel") [
|
||||
wheelUnpackHook
|
||||
runtimeDepsCheckHook
|
||||
]
|
||||
++ optionals (format' == "egg") [
|
||||
eggUnpackHook
|
||||
|
||||
Reference in New Issue
Block a user