1# Setup hook for PyPA installer.
2echo "Sourcing pypa-install-hook"
3
4pypaInstallPhase() {
5 echo "Executing pypaInstallPhase"
6 runHook preInstall
7
8 pushd dist >/dev/null
9
10 for wheel in *.whl; do
11 @pythonInterpreter@ -m installer --prefix "$out" "$wheel"
12 echo "Successfully installed $wheel"
13 done
14
15 popd >/dev/null
16
17 export PYTHONPATH="$out/@pythonSitePackages@:$PYTHONPATH"
18
19 runHook postInstall
20 echo "Finished executing pypaInstallPhase"
21}
22
23if [ -z "${dontUsePypaInstall-}" ] && [ -z "${installPhase-}" ]; then
24 echo "Using pypaInstallPhase"
25 installPhase=pypaInstallPhase
26fi