Skip to content

Commit

Permalink
Merge pull request #260 from bsipocz/update-helpers-v2.0.10
Browse files Browse the repository at this point in the history
Updated astropy-helpers to v2.0.10
  • Loading branch information
bsipocz committed Jun 5, 2019
2 parents acb4b47 + 0c9e754 commit 0cf5b2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions ah_bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,10 @@

# We want the Python version as a string, which we can get from the platform module
import platform
python_version = platform.python_version()

if not req.specifier.contains(python_version):
# strip off trailing '+' incase this is a dev install of python
python_version = platform.python_version().strip('+')
# allow pre-releases to count as 'new enough'
if not req.specifier.contains(python_version, True):
if parent_package is None:
print("ERROR: Python {} is required by this package".format(req.specifier))
else:
Expand Down

0 comments on commit 0cf5b2a

Please sign in to comment.