mirror of
https://github.com/ciromattia/kcc
synced 2025-12-23 06:31:54 +00:00
Dependency update
This commit is contained in:
@@ -33,10 +33,10 @@ You can find the latest released binary at the following links:
|
|||||||
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.0+
|
- [PyQt](http://www.riverbankcomputing.co.uk/software/pyqt/download5) 5.2.0+
|
||||||
- [Pillow](http://pypi.python.org/pypi/Pillow/) 2.7.0+
|
- [Pillow](http://pypi.python.org/pypi/Pillow/) 2.8.2+
|
||||||
- [psutil](https://pypi.python.org/pypi/psutil) 2.0+
|
- [psutil](https://pypi.python.org/pypi/psutil) 3.0.0+
|
||||||
- [python-slugify](http://pypi.python.org/pypi/python-slugify) 0.1.0+
|
- [python-slugify](http://pypi.python.org/pypi/python-slugify) 1.1.2+
|
||||||
- [scandir](https://pypi.python.org/pypi/scandir) 0.9+
|
- [scandir](https://pypi.python.org/pypi/scandir) 1.1.0+
|
||||||
|
|
||||||
On Debian based distributions these two commands should install all needed dependencies:
|
On Debian based distributions these two commands should install all needed dependencies:
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -130,28 +130,28 @@ def dependencyCheck(level):
|
|||||||
if level > 1:
|
if level > 1:
|
||||||
try:
|
try:
|
||||||
from psutil import __version__ as psutilVersion
|
from psutil import __version__ as psutilVersion
|
||||||
if StrictVersion('2.0.0') > StrictVersion(psutilVersion):
|
if StrictVersion('3.0.0') > StrictVersion(psutilVersion):
|
||||||
missing.append('psutil 2.0.0+')
|
missing.append('psutil 3.0.0+')
|
||||||
except ImportError:
|
except ImportError:
|
||||||
missing.append('psutil 2.0.0+')
|
missing.append('psutil 3.0.0+')
|
||||||
try:
|
try:
|
||||||
from slugify import __version__ as slugifyVersion
|
from slugify import __version__ as slugifyVersion
|
||||||
if StrictVersion('0.1.0') > StrictVersion(slugifyVersion):
|
if StrictVersion('1.1.2') > StrictVersion(slugifyVersion):
|
||||||
missing.append('python-slugify 0.1.0+')
|
missing.append('python-slugify 1.1.2+')
|
||||||
except ImportError:
|
except ImportError:
|
||||||
missing.append('python-slugify 0.1.0+')
|
missing.append('python-slugify 1.1.2+')
|
||||||
try:
|
try:
|
||||||
from PIL import PILLOW_VERSION as pillowVersion
|
from PIL import PILLOW_VERSION as pillowVersion
|
||||||
if StrictVersion('2.7.0') > StrictVersion(pillowVersion):
|
if StrictVersion('2.8.2') > StrictVersion(pillowVersion):
|
||||||
missing.append('Pillow 2.7.0+')
|
missing.append('Pillow 2.8.2+')
|
||||||
except ImportError:
|
except ImportError:
|
||||||
missing.append('Pillow 2.7.0+')
|
missing.append('Pillow 2.8.2+')
|
||||||
try:
|
try:
|
||||||
from scandir import __version__ as scandirVersion
|
from scandir import __version__ as scandirVersion
|
||||||
if StrictVersion('0.9') > StrictVersion(scandirVersion):
|
if StrictVersion('1.1') > StrictVersion(scandirVersion):
|
||||||
missing.append('scandir 0.9+')
|
missing.append('scandir 1.1+')
|
||||||
except ImportError:
|
except ImportError:
|
||||||
missing.append('scandir 0.9+')
|
missing.append('scandir 1.1+')
|
||||||
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)
|
||||||
|
|||||||
10
setup.py
10
setup.py
@@ -135,10 +135,10 @@ else:
|
|||||||
scripts=['build/_scripts/kcc', 'build/_scripts/kcc-c2e', 'build/_scripts/kcc-c2p'],
|
scripts=['build/_scripts/kcc', 'build/_scripts/kcc-c2e', 'build/_scripts/kcc-c2p'],
|
||||||
packages=['kcc'],
|
packages=['kcc'],
|
||||||
install_requires=[
|
install_requires=[
|
||||||
'Pillow>=2.7.0',
|
'Pillow>=2.8.2',
|
||||||
'psutil>=2.0',
|
'psutil>=3.0.0',
|
||||||
'python-slugify>=0.1.0',
|
'python-slugify>=1.1.2',
|
||||||
'scandir>=0.9',
|
'scandir>=1.1.0',
|
||||||
],
|
],
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
)
|
)
|
||||||
@@ -159,4 +159,4 @@ if platform == 'darwin':
|
|||||||
makedirs('dist/' + NAME + '.app/Contents/PlugIns/platforms', exist_ok=True)
|
makedirs('dist/' + NAME + '.app/Contents/PlugIns/platforms', exist_ok=True)
|
||||||
copyfile('other/libqcocoa.dylib', 'dist/' + NAME + '.app/Contents/PlugIns/platforms/libqcocoa.dylib')
|
copyfile('other/libqcocoa.dylib', 'dist/' + NAME + '.app/Contents/PlugIns/platforms/libqcocoa.dylib')
|
||||||
chmod('dist/' + NAME + '.app/Contents/Resources/unrar', 0o777)
|
chmod('dist/' + NAME + '.app/Contents/Resources/unrar', 0o777)
|
||||||
chmod('dist/' + NAME + '.app/Contents/Resources/7za', 0o777)
|
chmod('dist/' + NAME + '.app/Contents/Resources/7za', 0o777)
|
||||||
|
|||||||
Reference in New Issue
Block a user