Skip to content

Commit

Permalink
test wheel [pypi]
Browse files Browse the repository at this point in the history
  • Loading branch information
cmbant committed Aug 18, 2024
1 parent d64cce4 commit cc09b15
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion camb/_compilers.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ def check_gfortran(version=gfortran_min, msg=False, retry=False):
gfortran_version = get_gfortran_version()
version = str(version)
if gfortran_version:
ok = parse_version(version) <= parse_version(gfortran_version)
try:
ok = parse_version(version) <= parse_version(gfortran_version)
except ValueError:
ok = True
else:
ok = False
if not ok and is_windows and not retry:
Expand Down

0 comments on commit cc09b15

Please sign in to comment.