Skip to content

Commit

Permalink
Merge 564a647 into 588cad5
Browse files Browse the repository at this point in the history
  • Loading branch information
kmaehashi committed Jul 16, 2019
2 parents 588cad5 + 564a647 commit 725dbf2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions chainer/_environment_check.py
Expand Up @@ -22,6 +22,19 @@ def _check_python_350():
raise Exception(msg)


def _check_python_2():
if sys.version_info[:1] == (2,):
warnings.warn('''
--------------------------------------------------------------------------------
Chainer is going to stop supporting Python 2 in v7.x releases.
Future releases of Chainer v7.x will not run on Python 2.
If you need to continue using Python 2, consider using Chainer v6.x, which
will be the last version that runs on Python 2.
--------------------------------------------------------------------------------
''') # NOQA


def _check_osx_numpy_backend():
if sys.platform != 'darwin':
return
Expand Down Expand Up @@ -91,6 +104,7 @@ def _check_optional_dependencies():


def check():
_check_python_2()
_check_python_350()
_check_osx_numpy_backend()
_check_optional_dependencies()

0 comments on commit 725dbf2

Please sign in to comment.