pypaInstallHook: enter "dist" directory before installing (#250464)

This commit is contained in:
Theodore Ni
2023-08-21 08:45:47 +02:00
committed by GitHub
parent 6eac46a06d
commit 130e063a3d
@@ -5,10 +5,15 @@ pypaInstallPhase() {
echo "Executing pypaInstallPhase"
runHook preInstall
for wheel in dist/*.whl; do
pushd dist > /dev/null
for wheel in *.whl; do
@pythonInterpreter@ -m installer --prefix "$out" "$wheel"
echo "Successfully installed $wheel"
done
popd > /dev/null
export PYTHONPATH="$out/@pythonSitePackages@:$PYTHONPATH"
runHook postInstall