- if command -v python3.7 >/dev/null 2>&1; then
- python_version=3.7
- python_bitness=$(python3.7 -c 'import sys; print(64 if sys.maxsize > 2**32 else 32)')
- elif command -v python3.6 >/dev/null 2>&1; then
- python_version=3.6
- python_bitness=$(python3.6 -c 'import sys; print(64 if sys.maxsize > 2**32 else 32)')
- elif command -v python3.5 >/dev/null 2>&1; then
- python_version=3.5
- python_bitness=$(python3.5 -c 'import sys; print(64 if sys.maxsize > 2**32 else 32)')
- elif command -v python3.4 >/dev/null 2>&1; then
- python_version=3.4
- python_bitness=$(python3.4 -c 'import sys; print(64 if sys.maxsize > 2**32 else 32)')
- elif command -v python2.7 >/dev/null 2>&1; then
- python_version=2.7
- elif command -v python >/dev/null 2>&1; then
- python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
- fi