e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
20 lines
572 B
Bash
20 lines
572 B
Bash
# Setup hook for PyPA installer.
|
|
echo "Sourcing python-runtime-deps-check-hook"
|
|
|
|
pythonRuntimeDepsCheckHook() {
|
|
echo "Executing pythonRuntimeDepsCheck"
|
|
|
|
export PYTHONPATH="$out/@pythonSitePackages@:$PYTHONPATH"
|
|
|
|
for wheel in dist/*.whl; do
|
|
echo "Checking runtime dependencies for $(basename $wheel)"
|
|
@pythonInterpreter@ @hook@ "$wheel"
|
|
done
|
|
|
|
echo "Finished executing pythonRuntimeDepsCheck"
|
|
}
|
|
|
|
if [ -z "${dontCheckRuntimeDeps-}" ]; then
|
|
echo "Using pythonRuntimeDepsCheckHook"
|
|
preInstallPhases+=" pythonRuntimeDepsCheckHook"
|
|
fi
|