1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
Description: prevent to query the Git history whatsoever
Author: Daniel Stender <stender@debian.org>
Modified-By: Mo Zhou <cdluminate@gmail.com>
Origin: <upstream|backport|vendor|other>, <URL, required except if Author is present>
Forwarded: no
Last-Update: 2018-03-21
Index: numba/numba/scripts/generate_lower_listing.py
===================================================================
--- numba.orig/numba/scripts/generate_lower_listing.py 2020-05-28 11:04:34.881983023 +0800
+++ numba/numba/scripts/generate_lower_listing.py 2020-05-28 11:04:34.881983023 +0800
@@ -18,10 +18,12 @@
import numba
from numba.core.registry import cpu_target
+from numba._version import get_versions
def git_hash():
- out = check_output(['git', 'log', "--pretty=format:'%H'", '-n', '1'])
- return out.decode('ascii').strip("'\"")
+ #out = check_output(['git', 'log', "--pretty=format:'%H'", '-n', '1'])
+ out = get_versions()['full']
+ return out.strip("'\"")
def get_func_name(fn):
|