You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by ha...@apache.org on 2020/03/13 03:22:45 UTC
[incubator-tvm] branch master updated: [PY] Require python3.6
(#5057)
This is an automated email from the ASF dual-hosted git repository.
haichen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-tvm.git
The following commit(s) were added to refs/heads/master by this push:
new 508ad86 [PY] Require python3.6 (#5057)
508ad86 is described below
commit 508ad86592f28b5d54080fe54c8ddee9d75bce4a
Author: Tianqi Chen <tq...@users.noreply.github.com>
AuthorDate: Thu Mar 12 20:22:38 2020 -0700
[PY] Require python3.6 (#5057)
---
python/tvm/_ffi/_pyversion.py | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/python/tvm/_ffi/_pyversion.py b/python/tvm/_ffi/_pyversion.py
index 67591b3..9579acf 100644
--- a/python/tvm/_ffi/_pyversion.py
+++ b/python/tvm/_ffi/_pyversion.py
@@ -14,15 +14,13 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
-"""Python2 version check
+"""Python version check
"""
import sys
#----------------------------
# Python3 version.
#----------------------------
-if not (sys.version_info[0] >= 3 and sys.version_info[1] >= 5):
- PY3STATEMENT = """TVM project proudly dropped support of Python2.
- The minimal Python requirement is Python 3.5
- """
+if not (sys.version_info[0] >= 3 and sys.version_info[1] >= 6):
+ PY3STATEMENT = "The minimal Python requirement is Python 3.6"
raise Exception(PY3STATEMENT)