提交 f9b37dae 编写于 作者: S sole

Detect Python version when running build.py script and let user know the...

Detect Python version when running build.py script and let user know the script won't run in Python < 2.7, suggest a download link, then quit
上级 466289d1
#!/usr/bin/env python
import sys
if sys.version_info < (2, 7):
print("ERROR: The build script requires Python 2.7 or higher.")
print("You can get an updated version here: http://www.python.org/download/releases/")
exit()
import argparse
import json
import os
import shutil
import sys
import tempfile
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册