about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/ale-py/patch-sha-check-in-setup.patch
blob: f387346ded379a74504ee2c7044fc81699054e58 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/setup.py b/setup.py
index ff1b1c5..ce40df0 100644
--- a/setup.py
+++ b/setup.py
@@ -141,11 +141,7 @@ def parse_version(version_file):
 
         version = ci_version
     else:
-        sha = (
-            subprocess.check_output(["git", "rev-parse", "--short", "HEAD"], cwd=here)
-            .decode("ascii")
-            .strip()
-        )
+        sha = @sha@
         version += f"+{sha}"
 
     return version