From 2bc8e33b319d54f9a6e89a88ac3161f4fb569fcf Mon Sep 17 00:00:00 2001 From: keewis Date: Sat, 22 Aug 2020 16:39:45 +0200 Subject: [PATCH] use the fallback_version option to avoid errors on source checkouts (#4358) --- setup.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/setup.py b/setup.py index e7cd9bc18e2..088d7e4eac6 100755 --- a/setup.py +++ b/setup.py @@ -1,11 +1,4 @@ #!/usr/bin/env python from setuptools import setup -try: - setup(use_scm_version=True) -except LookupError as e: - # .git has been removed, and this is not a package created by sdist - # This is the case e.g. of a remote deployment with PyCharm Professional - if not str(e).startswith("setuptools-scm was unable to detect version"): - raise - setup(version="999") +setup(use_scm_version={"fallback_version": "999"})