depot/third_party/nixpkgs/pkgs/development/python-modules/pdm-backend/setup-hook.sh

9 lines
209 B
Bash
Raw Normal View History

version-pretend-hook() {
echo "Setting PDM_BUILD_SCM_VERSION to $version"
export PDM_BUILD_SCM_VERSION=$version
}
if [ -z "${dontSetPdmBackendVersion-}" ]; then
preBuildHooks+=(version-pretend-hook)
fi