Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix checking Ubuntu version. #3691

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion bindings/python/cntk/cntk_py_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ def cntk_check_distro_info():
# warn the user CNTK may not work out of the box
__my_distro__ = __my_distro__.lower()
__my_distro_ver__ = __my_distro_ver__.lower()
__my_distro_ver_yy__ = __my_distro_ver__.split('.')[0] if __my_distro__ == 'ubuntu' else 0

if __my_distro__ != 'ubuntu' or __my_distro_ver__ != '16.04':
if __my_distro__ != 'ubuntu' or int(__my_distro_ver_yy__) < 16:
warnings.warn('Unsupported Linux distribution (%s-%s). CNTK supports Ubuntu 16.04 and above, only.' % (__my_distro__, __my_distro_ver__))
else:
warnings.warn('Unsupported platform (%s). CNTK supports Linux and Windows platforms, only.' % __my_system__)
Expand Down