[BUILD] Fixed typo in setup.py

This commit is contained in:
Phil Tillet
2023-03-07 15:45:14 -08:00
parent c34b32866b
commit 305f99e614

View File

@@ -95,7 +95,7 @@ def get_thirdparty_packages(triton_cache_path):
file = tarfile.open(fileobj=ftpstream, mode="r|*")
file.extractall(path=package_root_dir)
# write version url to package_root_dir
with open(os.path.join(package_root_dir, "version.txt"), "w") as f:
with open(os.path.join(package_dir, "version.txt"), "w") as f:
f.write(p.url)
if p.include_flag:
thirdparty_cmake_args.append(f"-D{p.include_flag}={package_dir}/include")