about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/interpreters/python/hooks/flit-build-hook.sh
blob: 45893aae00f4eeec09b99a81d47ef7e90e4a81ef (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