2023-08-10 07:59:29 +00:00
|
|
|
# Setup hook to use for pypa/build projects
|
|
|
|
echo "Sourcing pypa-build-hook"
|
|
|
|
|
|
|
|
pypaBuildPhase() {
|
|
|
|
echo "Executing pypaBuildPhase"
|
|
|
|
runHook preBuild
|
|
|
|
|
|
|
|
echo "Creating a wheel..."
|
2023-10-09 19:29:22 +00:00
|
|
|
@build@/bin/pyproject-build --no-isolation --outdir dist/ --wheel $pypaBuildFlags
|
2023-08-10 07:59:29 +00:00
|
|
|
echo "Finished creating a wheel..."
|
|
|
|
|
|
|
|
runHook postBuild
|
|
|
|
echo "Finished executing pypaBuildPhase"
|
|
|
|
}
|
|
|
|
|
|
|
|
if [ -z "${dontUsePypaBuild-}" ] && [ -z "${buildPhase-}" ]; then
|
|
|
|
echo "Using pypaBuildPhase"
|
|
|
|
buildPhase=pypaBuildPhase
|
|
|
|
fi
|