1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 01:36:27 +00:00

Updated dependencies

This commit is contained in:
Paweł Jastrzębski
2016-04-10 14:23:13 +02:00
parent 91b6869638
commit eaa458a9c7
2 changed files with 23 additions and 25 deletions

View File

@@ -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:
```

View File

@@ -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)