summaryrefslogtreecommitdiff
path: root/set_up_default_resources.py
diff options
context:
space:
mode:
Diffstat (limited to 'set_up_default_resources.py')
-rwxr-xr-xset_up_default_resources.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/set_up_default_resources.py b/set_up_default_resources.py
index 475f6da..e3ece8b 100755
--- a/set_up_default_resources.py
+++ b/set_up_default_resources.py
@@ -381,7 +381,7 @@ def set_up_resources(
metadata_file_path = download_dir / "resources_downloaded_metadata.json"
metadata_dict = dict()
- vela_version = "3.5.0"
+ vela_version = "3.6.0"
py3_major_version_minimum = 3 # Python >= 3.7 is required
py3_minor_version_minimum = 7
@@ -443,7 +443,12 @@ def set_up_resources(
call_command(command)
os.chdir(current_file_dir)
- # 1.3 Make sure to have all the requirements
+ # 1.3 Install additional requirements first, if a valid file has been provided
+ if additional_requirements_file and os.path.isfile(additional_requirements_file):
+ command = f"{env_python} -m pip install -r {additional_requirements_file}"
+ call_command(command)
+
+ # 1.4 Make sure to have all the main requirements
requirements = [f"ethos-u-vela=={vela_version}"]
command = f"{env_python} -m pip freeze"
packages = call_command(command)
@@ -452,11 +457,6 @@ def set_up_resources(
command = f"{env_python} -m pip install {req}"
call_command(command)
- # 1.4 Install additional requirements, if a valid file has been provided
- if additional_requirements_file and os.path.isfile(additional_requirements_file):
- command = f"{env_python} -m pip install -r {additional_requirements_file}"
- call_command(command)
-
# 2. Download models
logging.info("Downloading resources.")
for uc in json_uc_res: