mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 11:44:07 +00:00
b7f4bda282
If these aren't defined, the stdenv defaults are used in the `*Phase` case, or no extra phases are done, in the `*Phases` case.
16 lines
386 B
Bash
16 lines
386 B
Bash
# 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
|