Skip to content

Commit

Permalink
feat(get-modflow): support windows parallel nightly build (#2128)
Browse files Browse the repository at this point in the history
* install with --repo modflow6-nightly-build --ostag win64par
* todo: generalize asset name discovery?
  • Loading branch information
wpbonelli authored Mar 22, 2024
1 parent 11f573b commit 43e5178
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion autotest/test_get_modflow.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""Test get-modflow utility."""

import os
import platform
import sys
from os.path import expandvars
from pathlib import Path
Expand Down
5 changes: 2 additions & 3 deletions flopy/utils/get_modflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"modflow6-nightly-build": "modflow6_nightly",
}
available_repos = list(renamed_prefix.keys())
available_ostags = ["linux", "mac", "macarm", "win32", "win64"]
available_ostags = ["linux", "mac", "macarm", "win32", "win64", "win64par"]
max_http_tries = 3

# Check if this is running from flopy
Expand Down Expand Up @@ -67,7 +67,7 @@ def get_ostag() -> str:


def get_suffixes(ostag) -> Tuple[str, str]:
if ostag in ["win32", "win64"]:
if ostag in ["win32", "win64", "win64par"]:
return ".exe", ".dll"
elif ostag == "linux":
return "", ".so"
Expand Down Expand Up @@ -429,7 +429,6 @@ def run_main(
download_url = asset["browser_download_url"]
if repo == "modflow6":
asset_pth = Path(asset_name)
asset_stem = asset_pth.stem
asset_suffix = asset_pth.suffix
dst_fname = "-".join([repo, release["tag_name"], ostag]) + asset_suffix
else:
Expand Down

0 comments on commit 43e5178

Please sign in to comment.