1# Setup hook for PyPA installer.
2echo "Sourcing python-runtime-deps-check-hook"
3
4pythonRuntimeDepsCheckHook() {
5 echo "Executing pythonRuntimeDepsCheck"
6
7 export PYTHONPATH="$out/@pythonSitePackages@:$PYTHONPATH"
8
9 for wheel in dist/*.whl; do
10 echo "Checking runtime dependencies for $(basename $wheel)"
11 @pythonInterpreter@ @hook@ "$wheel"
12 done
13
14 echo "Finished executing pythonRuntimeDepsCheck"
15}
16
17if [ -z "${dontCheckRuntimeDeps-}" ]; then
18 echo "Using pythonRuntimeDepsCheckHook"
19 appendToVar preInstallPhases pythonRuntimeDepsCheckHook
20fi