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

This commit is contained in:
Theodore Ni 2023-08-20 23:45:47 -07:00 committed by GitHub
parent 6eac46a06d
commit 130e063a3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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