mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2024-12-22 20:36:01 +01:00
Drop the use of git command to get data files
This commit is contained in:
parent
ed953cf9b6
commit
85a0d48557
@ -248,10 +248,22 @@ def main():
|
|||||||
"" ]
|
"" ]
|
||||||
|
|
||||||
tmp = "EXTRA_DIST += "
|
tmp = "EXTRA_DIST += "
|
||||||
r = subprocess.check_output("git ls-tree --name-only -r HEAD".split())
|
# Manually get the benchmark data list
|
||||||
for line in r.splitlines():
|
for item in glob(os.path.join("share/qmckl/test_data/", "*")):
|
||||||
if b"share/qmckl/test_data/" in line:
|
if os.path.isfile(item):
|
||||||
tmp += " \\\n " + line.decode('utf8')
|
#print(f'Depth 1, file item: {item}')
|
||||||
|
tmp += " \\\n " + item
|
||||||
|
elif os.path.isdir(item):
|
||||||
|
for item2 in glob(os.path.join(item, "*")):
|
||||||
|
if os.path.isfile(item2):
|
||||||
|
tmp += " \\\n " + item2
|
||||||
|
elif os.path.isdir(item2):
|
||||||
|
for item3 in glob(os.path.join(item2, "*")):
|
||||||
|
if os.path.isfile(item3):
|
||||||
|
tmp += " \\\n " + item3
|
||||||
|
elif os.path.isdir(item3):
|
||||||
|
print("Stopping at the depth level 3, not processing")
|
||||||
|
|
||||||
tmp += "\n"
|
tmp += "\n"
|
||||||
output += tmp.split("\n")
|
output += tmp.split("\n")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user