Skip to content

Commit

Permalink
feat(get-modflow): support windows extended build (#2356)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjreno authored Nov 6, 2024
1 parent 9349a07 commit d800ce5
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions flopy/utils/get_modflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d800ce5

Please sign in to comment.