summary refs log tree commit diff
path: root/pkgs/development/interpreters/python/hooks/flit-build-hook.sh
blob: 48295dc36430bc3961d644e1682a264cd44aea2e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Setup hook for flit
echo "Sourcing flit-build-hook"

flitBuildPhase () {
    echo "Executing flitBuildPhase"
    runHook preBuild
    @pythonInterpreter@ -m flit build --format wheel
    runHook postBuild
    echo "Finished executing flitBuildPhase"
}

if [ -z "$dontUseFlitBuild" ] && [ -z "$buildPhase" ]; then
    echo "Using flitBuildPhase"
    buildPhase=flitBuildPhase
fi