diff options
-rw-r--r-- | README.md | 12 | ||||
-rw-r--r-- | kcc/shared.py | 36 |
2 files changed, 23 insertions, 25 deletions
diff --git a/README.md b/README.md index aaa8fe9..50176c0 100644 --- a/README.md +++ b/README.md @@ -32,12 +32,12 @@ You can find the latest released binary at the following links: ## DEPENDENCIES Following software is required to run Linux version of **KCC** and/or bare sources: - Python 3.3+ -- [PyQt](http://www.riverbankcomputing.co.uk/software/pyqt/download5) 5.2.1+ _(5.5+ is recommended)_ -- [Pillow](https://pypi.python.org/pypi/Pillow/) 3.0.0+ -- [psutil](https://pypi.python.org/pypi/psutil) 3.2.1+ -- [python-slugify](https://pypi.python.org/pypi/python-slugify) 1.1.4+ -- [raven](https://pypi.python.org/pypi/raven) 5.10+ -- [scandir](https://pypi.python.org/pypi/scandir) 1.1.0+ _(needed only when using Python 3.3 or 3.4)_ +- [PyQt](http://www.riverbankcomputing.co.uk/software/pyqt/download5) 5.6.0+ +- [Pillow](https://pypi.python.org/pypi/Pillow/) 3.2.0+ +- [psutil](https://pypi.python.org/pypi/psutil) 4.1.0+ +- [python-slugify](https://pypi.python.org/pypi/python-slugify) 1.2.0+ +- [raven](https://pypi.python.org/pypi/raven) 5.12.0+ +- [scandir](https://pypi.python.org/pypi/scandir) 1.2.0+ _(needed only when using Python 3.3 or 3.4)_ On Debian based distributions these two commands should install all needed dependencies: ``` diff --git a/kcc/shared.py b/kcc/shared.py index 921bf6c..289f62a 100644 --- a/kcc/shared.py +++ b/kcc/shared.py @@ -154,42 +154,40 @@ def dependencyCheck(level): if level > 2: try: from PyQt5.QtCore import qVersion as qtVersion - if StrictVersion('5.2.1') > StrictVersion(qtVersion()): - missing.append('PyQt 5.2.1+') + if StrictVersion('5.6.0') > StrictVersion(qtVersion()): + missing.append('PyQt 5.6.0+') except ImportError: - missing.append('PyQt 5.2.1+') + missing.append('PyQt 5.6.0+') try: - from raven import VERSION as ravenVersion - if StrictVersion('5.10') > StrictVersion(ravenVersion): - missing.append('raven 5.10+') + import raven except ImportError: - missing.append('raven 5.10+') + missing.append('raven 5.12.0+') if level > 1: try: from psutil import __version__ as psutilVersion - if StrictVersion('3.2.2') > StrictVersion(psutilVersion): - missing.append('psutil 3.2.2+') + if StrictVersion('4.1.0') > StrictVersion(psutilVersion): + missing.append('psutil 4.1.0+') except ImportError: - missing.append('psutil 3.2.2+') + missing.append('psutil 4.1.0+') try: from slugify import __version__ as slugifyVersion - if StrictVersion('1.1.4') > StrictVersion(slugifyVersion): - missing.append('python-slugify 1.1.4+') + if StrictVersion('1.2.0') > StrictVersion(slugifyVersion): + missing.append('python-slugify 1.2.0+') except ImportError: - missing.append('python-slugify 1.1.4+') + missing.append('python-slugify 1.2.0+') try: from PIL import PILLOW_VERSION as pillowVersion - if StrictVersion('3.0.0') > StrictVersion(pillowVersion): - missing.append('Pillow 3.0.0+') + if StrictVersion('3.2.0') > StrictVersion(pillowVersion): + missing.append('Pillow 3.2.0+') except ImportError: - missing.append('Pillow 3.0.0+') + missing.append('Pillow 3.2.0+') if version_info[1] < 5: try: from scandir import __version__ as scandirVersion - if StrictVersion('1.1') > StrictVersion(scandirVersion): - missing.append('scandir 1.1+') + if StrictVersion('1.2') > StrictVersion(scandirVersion): + missing.append('scandir 1.2+') except ImportError: - missing.append('scandir 1.1+') + missing.append('scandir 1.2+') if len(missing) > 0: print('ERROR: ' + ', '.join(missing) + ' is not installed!') exit(1) |