mirror of
https://github.com/ciromattia/kcc
synced 2025-12-13 01:36:27 +00:00
Updated dependencies
This commit is contained in:
12
README.md
12
README.md
@@ -32,12 +32,12 @@ You can find the latest released binary at the following links:
|
|||||||
## DEPENDENCIES
|
## DEPENDENCIES
|
||||||
Following software is required to run Linux version of **KCC** and/or bare sources:
|
Following software is required to run Linux version of **KCC** and/or bare sources:
|
||||||
- Python 3.3+
|
- Python 3.3+
|
||||||
- [PyQt](http://www.riverbankcomputing.co.uk/software/pyqt/download5) 5.2.1+ _(5.5+ is recommended)_
|
- [PyQt](http://www.riverbankcomputing.co.uk/software/pyqt/download5) 5.6.0+
|
||||||
- [Pillow](https://pypi.python.org/pypi/Pillow/) 3.0.0+
|
- [Pillow](https://pypi.python.org/pypi/Pillow/) 3.2.0+
|
||||||
- [psutil](https://pypi.python.org/pypi/psutil) 3.2.1+
|
- [psutil](https://pypi.python.org/pypi/psutil) 4.1.0+
|
||||||
- [python-slugify](https://pypi.python.org/pypi/python-slugify) 1.1.4+
|
- [python-slugify](https://pypi.python.org/pypi/python-slugify) 1.2.0+
|
||||||
- [raven](https://pypi.python.org/pypi/raven) 5.10+
|
- [raven](https://pypi.python.org/pypi/raven) 5.12.0+
|
||||||
- [scandir](https://pypi.python.org/pypi/scandir) 1.1.0+ _(needed only when using Python 3.3 or 3.4)_
|
- [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:
|
On Debian based distributions these two commands should install all needed dependencies:
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -154,42 +154,40 @@ def dependencyCheck(level):
|
|||||||
if level > 2:
|
if level > 2:
|
||||||
try:
|
try:
|
||||||
from PyQt5.QtCore import qVersion as qtVersion
|
from PyQt5.QtCore import qVersion as qtVersion
|
||||||
if StrictVersion('5.2.1') > StrictVersion(qtVersion()):
|
if StrictVersion('5.6.0') > StrictVersion(qtVersion()):
|
||||||
missing.append('PyQt 5.2.1+')
|
missing.append('PyQt 5.6.0+')
|
||||||
except ImportError:
|
except ImportError:
|
||||||
missing.append('PyQt 5.2.1+')
|
missing.append('PyQt 5.6.0+')
|
||||||
try:
|
try:
|
||||||
from raven import VERSION as ravenVersion
|
import raven
|
||||||
if StrictVersion('5.10') > StrictVersion(ravenVersion):
|
|
||||||
missing.append('raven 5.10+')
|
|
||||||
except ImportError:
|
except ImportError:
|
||||||
missing.append('raven 5.10+')
|
missing.append('raven 5.12.0+')
|
||||||
if level > 1:
|
if level > 1:
|
||||||
try:
|
try:
|
||||||
from psutil import __version__ as psutilVersion
|
from psutil import __version__ as psutilVersion
|
||||||
if StrictVersion('3.2.2') > StrictVersion(psutilVersion):
|
if StrictVersion('4.1.0') > StrictVersion(psutilVersion):
|
||||||
missing.append('psutil 3.2.2+')
|
missing.append('psutil 4.1.0+')
|
||||||
except ImportError:
|
except ImportError:
|
||||||
missing.append('psutil 3.2.2+')
|
missing.append('psutil 4.1.0+')
|
||||||
try:
|
try:
|
||||||
from slugify import __version__ as slugifyVersion
|
from slugify import __version__ as slugifyVersion
|
||||||
if StrictVersion('1.1.4') > StrictVersion(slugifyVersion):
|
if StrictVersion('1.2.0') > StrictVersion(slugifyVersion):
|
||||||
missing.append('python-slugify 1.1.4+')
|
missing.append('python-slugify 1.2.0+')
|
||||||
except ImportError:
|
except ImportError:
|
||||||
missing.append('python-slugify 1.1.4+')
|
missing.append('python-slugify 1.2.0+')
|
||||||
try:
|
try:
|
||||||
from PIL import PILLOW_VERSION as pillowVersion
|
from PIL import PILLOW_VERSION as pillowVersion
|
||||||
if StrictVersion('3.0.0') > StrictVersion(pillowVersion):
|
if StrictVersion('3.2.0') > StrictVersion(pillowVersion):
|
||||||
missing.append('Pillow 3.0.0+')
|
missing.append('Pillow 3.2.0+')
|
||||||
except ImportError:
|
except ImportError:
|
||||||
missing.append('Pillow 3.0.0+')
|
missing.append('Pillow 3.2.0+')
|
||||||
if version_info[1] < 5:
|
if version_info[1] < 5:
|
||||||
try:
|
try:
|
||||||
from scandir import __version__ as scandirVersion
|
from scandir import __version__ as scandirVersion
|
||||||
if StrictVersion('1.1') > StrictVersion(scandirVersion):
|
if StrictVersion('1.2') > StrictVersion(scandirVersion):
|
||||||
missing.append('scandir 1.1+')
|
missing.append('scandir 1.2+')
|
||||||
except ImportError:
|
except ImportError:
|
||||||
missing.append('scandir 1.1+')
|
missing.append('scandir 1.2+')
|
||||||
if len(missing) > 0:
|
if len(missing) > 0:
|
||||||
print('ERROR: ' + ', '.join(missing) + ' is not installed!')
|
print('ERROR: ' + ', '.join(missing) + ' is not installed!')
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user