d5f4a57cbf
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
19 lines
514 B
Bash
19 lines
514 B
Bash
# Setup hook to use for pypa/build projects
|
|
echo "Sourcing pypa-build-hook"
|
|
|
|
pypaBuildPhase() {
|
|
echo "Executing pypaBuildPhase"
|
|
runHook preBuild
|
|
|
|
echo "Creating a wheel..."
|
|
@pythonInterpreter@ -m build --no-isolation --outdir dist/ --wheel $pypaBuildFlags
|
|
echo "Finished creating a wheel..."
|
|
|
|
runHook postBuild
|
|
echo "Finished executing pypaBuildPhase"
|
|
}
|
|
|
|
if [ -z "${dontUsePypaBuild-}" ] && [ -z "${buildPhase-}" ]; then
|
|
echo "Using pypaBuildPhase"
|
|
buildPhase=pypaBuildPhase
|
|
fi
|