From d800ce5638e7a0983985881f2fa5d37207e3560b Mon Sep 17 00:00:00 2001 From: mjreno Date: Wed, 6 Nov 2024 08:30:19 -0500 Subject: [PATCH] feat(get-modflow): support windows extended build (#2356) --- flopy/utils/get_modflow.py | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/flopy/utils/get_modflow.py b/flopy/utils/get_modflow.py index 6bc75ad4d..31905a85a 100755 --- a/flopy/utils/get_modflow.py +++ b/flopy/utils/get_modflow.py @@ -35,7 +35,15 @@ "modflow6-nightly-build": "modflow6_nightly", } available_repos = list(renamed_prefix.keys()) -available_ostags = ["linux", "mac", "macarm", "win32", "win64", "win64par"] +available_ostags = [ + "linux", + "mac", + "macarm", + "win32", + "win64", + "win64ext", + "win64par", +] max_http_tries = 3 # Check if this is running from flopy @@ -68,7 +76,7 @@ def get_ostag() -> str: def get_suffixes(ostag) -> Tuple[str, str]: - if ostag in ["win32", "win64", "win64par"]: + if ostag.startswith("win"): return ".exe", ".dll" elif ostag == "linux": return "", ".so" @@ -376,6 +384,12 @@ def run_main( if ostag is None: ostag = get_ostag() + if ostag == "win64par": + warnings.warn( + "The parallel build is deprecated and will no longer " + "be published: 'win64ext' replaces 'win64par'." + ) + exe_suffix, lib_suffix = get_suffixes(ostag) # select bindir if path not provided