depot/third_party/nixpkgs/pkgs/development/python-modules/pdm-backend/setup-hook.sh
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

10 lines
274 B
Bash

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