Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
844 B · 34 lines
Shell
1234567891011121314151617181920212223242526272829303132333435# Setup hook for pip.# shellcheck shell=bash
echo "Sourcing pip-install-hook"
pipInstallPhase() { echo "Executing pipInstallPhase" runHook preInstall
# shellcheck disable=SC2154 mkdir -p "$out/@pythonSitePackages@" export PYTHONPATH="$out/@pythonSitePackages@:$PYTHONPATH"
local -a flagsArray=( --no-index --no-warn-script-location --prefix="$out" --no-cache ) concatTo flagsArray pipInstallFlags
pushd dist || return 1 echoCmd 'pip install flags' "${flagsArray[@]}" @pythonInterpreter@ -m pip install ./*.whl "${flagsArray[@]}" popd || return 1
runHook postInstall echo "Finished executing pipInstallPhase"}
if [ -z "${dontUsePipInstall-}" ] && [ -z "${installPhase-}" ]; then echo "Using pipInstallPhase" installPhase=pipInstallPhasefi