depot/third_party/nixpkgs/pkgs/development/python-modules/poetry-dynamic-versioning/setup-hook.sh

9 lines
240 B
Bash
Raw Normal View History

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