forked from mirrors/nixpkgs
2811b032d6
Go beyond the obvious setup hooks now, with a bit of sed, with a skipped case: - cc-wrapper's `dontlink`, because it already is handled. Also, in nix files escaping was manually added. EMP
16 lines
383 B
Bash
16 lines
383 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
|