Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions cmdstanpy/install_cxx_toolchain.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,14 @@

def usage() -> None:
"""Print usage."""
print(
"""Arguments:
print("""Arguments:
-v (--version) : RTools version: 4.0, 4.4 or 4.5
-d (--dir) : install directory
-s (--silent) : install with /VERYSILENT instead of /SILENT for RTools
-m (--no-make) : don't install mingw32-make (Windows RTools 4.0 only)
--progress : flag, when specified show progress bar for RTools download
-h (--help) : this message
"""
)
""")


def get_config(dir: str, silent: bool) -> list[str]:
Expand Down Expand Up @@ -263,7 +261,7 @@ def get_url(version: str, arch: str | None = None) -> str:
('4.0', 'i686'): 'rtools40-i686.exe',
}.get((version, arch), '')
if legacy:
return f'https://cran.r-project.org/bin/windows/Rtools/{legacy}'
return f'https://cran-archive.r-project.org/bin/windows/Rtools/{legacy}'
return ''


Expand Down
2 changes: 1 addition & 1 deletion test/test_cxx_installation.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def test_toolchain_name() -> None:
(
'4.0',
'x86_64',
'https://cran.r-project.org/bin/windows/Rtools/'
'https://cran-archive.r-project.org/bin/windows/Rtools/'
'rtools40-x86_64.exe',
),
# no ARM64 builds exist before RTools 4.4
Expand Down
Loading