2024-04-21 15:54:59 +00: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
|
2023-07-15 17:15:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if [ -z "${dontSetPdmBackendVersion-}" ]; then
|
2024-04-21 15:54:59 +00:00
|
|
|
preBuildHooks+=(pdm-version-pretend-hook)
|
2023-07-15 17:15:38 +00:00
|
|
|
fi
|