Skip to content

Commit

Permalink
Merge pull request aws#3233 from JordonPhillips/update-venv
Browse files Browse the repository at this point in the history
Defer handling of beta versions
  • Loading branch information
JordonPhillips authored Apr 2, 2018
2 parents 1594a04 + 9a619ff commit a83ab9c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions scripts/make-bundle
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,13 @@ def verify_preconditions():
def _min_version_required(min_version, actual_version, name):
# precondition: min_version is major.minor.patch
# actual_version is major.minor.patch
min_split = map(int, min_version.split('.'))
actual_split = map(int, actual_version.split('.'))
if actual_split < min_split:
raise ValueError("%s requires at least version %s, but "
"version %s was found." % (name, min_version,
actual_version))
min_split = min_version.split('.')
actual_split = actual_version.decode('utf-8').split('.')
for min_version_part, actual_version_part in zip(min_split, actual_split):
if int(actual_version_part) > int(min_version_part):
return
raise ValueError("%s requires at least version %s, but version %s was "
"found." % (name, min_version, actual_version))


def main():
Expand Down

0 comments on commit a83ab9c

Please sign in to comment.