Skip to content
Snippets Groups Projects
Commit 1d3e173b authored by Augustin Zidek's avatar Augustin Zidek
Browse files

Display a user-friendly warning if curl or zstd are missing

PiperOrigin-RevId: 696440060
parent bd9cd55b
No related branches found
No related tags found
1 merge request!1Cloned AlphaFold 3 repo into this one
......@@ -19,6 +19,7 @@ import concurrent.futures
import functools
import os
import pathlib
import shutil
import subprocess
import sys
......@@ -105,6 +106,11 @@ def main(argv=('',)) -> None:
f' {destination}.'
) from e
if shutil.which('curl') is None:
raise ValueError('curl is not installed. Please install it and try again.')
if shutil.which('zstd') is None:
raise ValueError('zstd is not installed. Please install it and try again.')
# Download each of the files and decompress them in parallel.
with concurrent.futures.ThreadPoolExecutor(
max_workers=len(DATABASE_FILES)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment