From 9ae3a63c9281327bcad77028fa698e9b1b2764c6 Mon Sep 17 00:00:00 2001 From: Ken Odegard Date: Thu, 4 Apr 2024 13:34:40 -0500 Subject: [PATCH] Catch LookupError --- conda_build/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conda_build/__init__.py b/conda_build/__init__.py index 23802d5135..f110bb23b5 100644 --- a/conda_build/__init__.py +++ b/conda_build/__init__.py @@ -9,9 +9,10 @@ from setuptools_scm import get_version __version__ = get_version(root="..", relative_to=__file__) - except (ImportError, OSError): + except (ImportError, OSError, LookupError): # ImportError: setuptools_scm isn't installed # OSError: git isn't installed + # LookupError: setuptools_scm unable to detect version # Conda-build abides by CEP-8 which specifies using CalVer, so the dev version is: # YY.MM.MICRO.devN+gHASH[.dirty] __version__ = "0.0.0.dev0+placeholder"