2019-07-17 19:36:47 +01:00
|
|
|
# Setup hook for flit
|
|
|
|
echo "Sourcing flit-build-hook"
|
|
|
|
|
|
|
|
flitBuildPhase () {
|
|
|
|
echo "Executing flitBuildPhase"
|
2019-09-26 22:09:03 +01:00
|
|
|
runHook preBuild
|
2019-07-17 19:36:47 +01:00
|
|
|
@pythonInterpreter@ -m flit build --format wheel
|
2019-09-26 22:09:03 +01:00
|
|
|
runHook postBuild
|
2019-07-17 19:36:47 +01:00
|
|
|
echo "Finished executing flitBuildPhase"
|
|
|
|
}
|
|
|
|
|
2019-10-31 16:50:15 +00:00
|
|
|
if [ -z "${dontUseFlitBuild-}" ] && [ -z "$buildPhase" ]; then
|
2019-07-17 19:36:47 +01:00
|
|
|
echo "Using flitBuildPhase"
|
|
|
|
buildPhase=flitBuildPhase
|
|
|
|
fi
|