Skip to content

Commit

Permalink
add version alias: stable and nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnychen94 committed Feb 16, 2020
1 parent f151332 commit 7f7ac16
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions jill/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ def download_package(version=None, sys=None, arch=None, *,
max_try: try `max_try` times before returning a False.
"""
version = str(version) if version else ''
version = "latest" if version == "nightly" else version
version = "" if version == "stable" else version

system = sys if sys else current_system()
architecture = arch if arch else current_architecture()

Expand Down
5 changes: 4 additions & 1 deletion jill/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,13 @@ def install_julia(version=None, *,
symlink_dir = symlink_dir if symlink_dir else default_symlink_dir()
system, arch = current_system(), current_architecture()
version = str(version) if version else ''
version = "latest" if version == "nightly" else version
version = "" if version == "stable" else version

if not confirm:
version_str = version if version else "latest release"
question = "jill will:\n"
question += f" 1) install Julia {version} for {system}-{arch}"
question += f" 1) install Julia {version_str} for {system}-{arch}"
question += f" into {install_dir}\n"
question += f" 2) make symlinks in {symlink_dir}\n"
question += f" 3) add {symlink_dir} to PATH if necessary\n"
Expand Down

0 comments on commit 7f7ac16

Please sign in to comment.