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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
274 B
Bash
Raw Normal View History

2025-10-09 14:15:47 +02:00
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