otadump: init at 0.1.2 (#329129)
[NixPkgs.git] / pkgs / development / python-modules / xformers / 0001-fix-allow-building-without-git.patch
blob54b79e3e2f6999e5ff15c139fa7bae7d7f583372
1 From 4c2b65c47d328c2f20cc74adcec2286fee6cb5de Mon Sep 17 00:00:00 2001
2 From: Yaroslav Bolyukin <iam@lach.pw>
3 Date: Tue, 30 Jan 2024 18:18:35 +0100
4 Subject: [PATCH] fix: allow building without git
6 ---
7 setup.py | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
10 diff --git a/setup.py b/setup.py
11 index 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 --
24 2.43.0