"tests/__init__.py" did not exist on "7439924891496025edf60c9da6a782f362a50c70"
Unverified Commit 4f8829f9 authored by Christian Sarofeen's avatar Christian Sarofeen Committed by GitHub
Browse files

Fix pre 0.4 builds.

Fix regex expression to search for libaten
parent 70d2e3b7
......@@ -106,7 +106,7 @@ cuda_files = find(curdir, lambda file: file.endswith(".cu"), True)
cuda_headers = find(curdir, lambda file: file.endswith(".cuh"), True)
headers = find(curdir, lambda file: file.endswith(".h"), True)
libaten = list(set(find(torch_dir, re.compile("libaten", re.IGNORECASE).search, True)))
libaten = list(set(find(torch_dir, re.compile("libaten.*so", re.IGNORECASE).match, True)))
libaten_names = [os.path.splitext(os.path.basename(entry))[0] for entry in libaten]
for i, entry in enumerate(libaten_names):
if entry[:3]=='lib':
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment