Unverified Commit 508ad865 by Tianqi Chen Committed by GitHub

[PY] Require python3.6 (#5057)

parent b090cde5
...@@ -14,15 +14,13 @@ ...@@ -14,15 +14,13 @@
# KIND, either express or implied. See the License for the # KIND, either express or implied. See the License for the
# specific language governing permissions and limitations # specific language governing permissions and limitations
# under the License. # under the License.
"""Python2 version check """Python version check
""" """
import sys import sys
#---------------------------- #----------------------------
# Python3 version. # Python3 version.
#---------------------------- #----------------------------
if not (sys.version_info[0] >= 3 and sys.version_info[1] >= 5): if not (sys.version_info[0] >= 3 and sys.version_info[1] >= 6):
PY3STATEMENT = """TVM project proudly dropped support of Python2. PY3STATEMENT = "The minimal Python requirement is Python 3.6"
The minimal Python requirement is Python 3.5
"""
raise Exception(PY3STATEMENT) raise Exception(PY3STATEMENT)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment