提交 fb98d386 编写于 作者: C Cleber Rosa

Python 3: skip checks because of missing depedency

The snakefood package is not available on Python 3.  Let's skip
this check then.
Signed-off-by: NCleber Rosa <crosa@redhat.com>
上级 9d9da395
......@@ -18,6 +18,14 @@ import sys
import subprocess
import tempfile
# it doesn't make sense to go any further on Python 3 because snakefood
# won't be available anyway. it's not fair to say this check failed, so
# let's exit successfully. the check should be performend when running
# on Python 2.
if sys.version_info[0] == 3:
sys.exit(0)
try:
import networkx as nx
except ImportError:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册