init_venv: Don't check for pylint without --dev

This commit is contained in:
Florian Bruhin 2014-12-05 06:56:15 +01:00
parent ee6e7d73e2
commit 284516dfb7

View File

@ -85,8 +85,9 @@ def venv_python(*args, output=False):
def test_toolchain():
"""Test if imports work properly."""
utils.print_title("Checking toolchain")
packages = ('sip', 'PyQt5.QtCore', 'PyQt5.QtWebKit', 'pylint',
'qutebrowser.app')
packages = ['sip', 'PyQt5.QtCore', 'PyQt5.QtWebKit', 'qutebrowser.app']
if g_args.dev:
packages.append('pylint')
for pkg in packages:
print("Importing {}".format(pkg))
venv_python('-c', 'import {}'.format(pkg))