Skip to content

Commit

Permalink
give nice error message if Python is 2.6; fixes #176
Browse files Browse the repository at this point in the history
  • Loading branch information
bast committed Jul 23, 2016
1 parent 69927f1 commit 2374f5b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions update.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
import sys


if sys.version_info[0] == 2 and sys.version_info[1] < 7:
sys.stderr.write("ERROR: update.py requires at least Python 2.7\n")
sys.exit(-1)


AUTOCMAKE_GITHUB_URL = 'https://github.com/coderefinery/autocmake/raw/master/'


Expand Down

1 comment on commit 2374f5b

@miroi
Copy link
Contributor

@miroi miroi commented on 2374f5b Jul 24, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good, thanks !

Please sign in to comment.