cross: Fix shebang of installed python scripts (#462993)

This commit is contained in:
Guillaume Girol
2025-11-24 20:09:11 +00:00
committed by GitHub
4 changed files with 80 additions and 6 deletions
@@ -138,6 +138,7 @@ in
propagatedBuildInputs = [ installer ];
substitutions = {
inherit pythonInterpreter pythonSitePackages;
python = python.interpreter;
};
} ./pypa-install-hook.sh
)
@@ -8,7 +8,7 @@ pypaInstallPhase() {
pushd dist >/dev/null
for wheel in *.whl; do
@pythonInterpreter@ -m installer --prefix "$out" "$wheel"
@pythonInterpreter@ -m installer --prefix "$out" --executable "@python@" "$wheel"
echo "Successfully installed $wheel"
done