Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at master 727 B view raw
1From 4c2b65c47d328c2f20cc74adcec2286fee6cb5de Mon Sep 17 00:00:00 2001 2From: Yaroslav Bolyukin <iam@lach.pw> 3Date: Tue, 30 Jan 2024 18:18:35 +0100 4Subject: [PATCH] fix: allow building without git 5 6--- 7 setup.py | 2 +- 8 1 file changed, 1 insertion(+), 1 deletion(-) 9 10diff --git a/setup.py b/setup.py 11index e01c008..92eca62 100644 12--- a/setup.py 13+++ b/setup.py 14@@ -71,7 +71,7 @@ def get_flash_version() -> str: 15 ["git", "describe", "--tags", "--always"], 16 cwd=flash_dir, 17 ).decode("ascii")[:-1] 18- except subprocess.CalledProcessError: 19+ except Exception: 20 version = flash_dir / "version.txt" 21 if version.is_file(): 22 return version.read_text().strip() 23-- 242.43.0 25