c57e6b692a
This modifies the pypaBuildHook to not propagate its own python dependencies into the build environment. This prevents package conflicts. - modify pypa-build-hook.sh to call pyproject-build via an absolute path. This removes the need of putting the dependencies inside the hook's propagatedBuildInputs - remove the hook's dependencies from propagatedBuildInputs - add a passthru test to the hook testing for the fix
20 lines
513 B
Bash
20 lines
513 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..."
|
|
@build@/bin/pyproject-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
|