From 50752c65ea7939e69a29b533a90cbef8b564ccaa Mon Sep 17 00:00:00 2001 From: MichaelPesce Date: Fri, 26 Jan 2024 14:27:00 -0600 Subject: [PATCH] use idaes default binary release for binaries release version (idaes extnsions) --- backend/app/internal/get_extensions.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/backend/app/internal/get_extensions.py b/backend/app/internal/get_extensions.py index 1170f261..4131e6bb 100644 --- a/backend/app/internal/get_extensions.py +++ b/backend/app/internal/get_extensions.py @@ -40,7 +40,14 @@ def get_idaes_extensions(): print(f'unable to set requests_ca_bundle and ssl_cert_file:\n{e}') print(f'trying to download binaries') from app.internal.download_binaries import download_binaries - download_binaries(release="3.4.0") + binaries_release_version="3.4.0" + try: + from idaes.config import default_binary_release + binaries_release_version = default_binary_release + print(f"got default binary release: {binaries_release_version}") + except Exception as e: + print(f"unable to get default binary release, rolling with {binaries_release_version}") + download_binaries(release=binaries_release_version) print(f'extensions have been gotten') print('successfully installed idaes extensions') except PermissionError as e: