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"