summaryrefslogtreecommitdiff
path: root/pkgs/development/interpreters/python/hooks/wheel-unpack-hook.sh
blob: d15ec0412c25215da0a4516a3c04ccf6e48bd7cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Setup hook to use in case a wheel is fetched
echo "Sourcing wheel setup hook"

wheelUnpackPhase() {
    echo "Executing wheelUnpackPhase"
    runHook preUnpack

    mkdir -p dist
    cp "$src" "dist/$(stripHash "$src")"

    # runHook postUnpack # Calls find...?
    echo "Finished executing wheelUnpackPhase"
}

if [ -z "${dontUseWheelUnpack-}" ] && [ -z "${unpackPhase-}" ]; then
    echo "Using wheelUnpackPhase"
    unpackPhase=wheelUnpackPhase
fi