Skip to content

Commit

Permalink
Allow older versions
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Jul 16, 2023
1 parent 979e2ae commit a3c3e8d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions relenv/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ def setup_parser(subparsers):
subparser.add_argument(
"--python",
default=platform_versions()[0],
choices=platform_versions(),
# Allow fetching of older versions
# choices=platform_versions(),
type=str,
help="The python version [default: %(default)s]",
)
Expand All @@ -63,7 +64,7 @@ def main(args):
if check_url(url, timeout=5):
break
else:
print(f"Unable to find file on an hosts {' '.join(check_hosts)}")
print(f"Unable to find file on any hosts {' '.join(check_hosts)}")
sys.exit(1)
builddir = work_dir("build", DATA_DIR)
os.makedirs(builddir, exist_ok=True)
Expand Down

0 comments on commit a3c3e8d

Please sign in to comment.