From: Ben Newhouse Date: Tue, 27 Oct 2020 01:16:25 +0000 (+0000) Subject: setup: link to latest docs if VCS information is not available. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=765c15c709a9f2366555ed86eecdbdc7de6721c5;p=nmigen.git setup: link to latest docs if VCS information is not available. --- diff --git a/setup.py b/setup.py index 040bb37..4cd96e7 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,9 @@ def doc_version(): return "" git = parse_git(".") - if git.exact: + if not git: + return "" + elif git.exact: return git.format_with("{tag}") else: return "latest"