Skip to content

Commit

Permalink
add CHAINER_WARN_VERSION_MISMATCH
Browse files Browse the repository at this point in the history
  • Loading branch information
kmaehashi committed Dec 16, 2020
1 parent cfa300f commit e4cf1d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion chainer/_environment_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ def _check_optional_dependencies():
installed = False
for pkg in pkgs:
found = False
requirement = '{}{}'.format(pkg, spec)
requirement = pkg
if os.environ.get('CHAINER_WARN_VERSION_MISMATCH', '1') == '1':
requirement = '{}{}'.format(pkg, spec)
try:
pkg_resources.require(requirement)
found = True
Expand Down

0 comments on commit e4cf1d9

Please sign in to comment.