Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-18908: Set python baseline to 3.7 #6

Merged
merged 1 commit into from
Apr 9, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 6 additions & 6 deletions scripts/check_python
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ set -e
# Check if a supported python executable exists
# Eligible versions are listed at # https://developer.lsst.io/coding/python_style_guide.html#python-version
if hash python 2>/dev/null; then
# Check the version by running a small Python program
# Check the version by running a small Python program that has to be
# maximally compatible
if ! python -c 'import sys
minver2=7
minver3=6
minver3=7
vmaj = sys.version_info[0]
vmin = sys.version_info[1]
if (vmaj == 2 and vmin >= minver2) or (vmaj == 3 and vmin >= minver3):
if (vmaj == 3 and vmin >= minver3):
exit(0)
print("""check-python: Python2 >= {} or Python3 >= {} not found (version reported by '{}' is '{}').
check-python: Please ensure a compatible python is at the front of your PATH.""".format(minver2, minver3,
print("""check-python: Python >= 3.{} not found (version reported by '{}' is '{}').
check-python: Please ensure a compatible python is at the front of your PATH.""".format(minver3,
sys.executable,
sys.version))
exit(-1)'; then
Expand Down