ae2dc6aea6
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
20 lines
580 B
Bash
20 lines
580 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"
|
|
appendToVar preInstallPhases pythonRuntimeDepsCheckHook
|
|
fi
|