Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catch LookupError when getting development version #5269

Merged
merged 1 commit into from
Apr 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion conda_build/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading