mirror of
https://github.com/ciromattia/kcc
synced 2025-12-13 17:56:30 +00:00
Updated Pillow (close #95)
This commit is contained in:
@@ -46,7 +46,7 @@ You can find the latest released binary at the following links:
|
|||||||
### For running from source:
|
### For running from source:
|
||||||
- Python 3.3+
|
- Python 3.3+
|
||||||
- [PyQt5](http://www.riverbankcomputing.co.uk/software/pyqt/download5) 5.2.0+
|
- [PyQt5](http://www.riverbankcomputing.co.uk/software/pyqt/download5) 5.2.0+
|
||||||
- [Pillow](http://pypi.python.org/pypi/Pillow/) 2.3.0+
|
- [Pillow](http://pypi.python.org/pypi/Pillow/) 2.5.0+
|
||||||
- [psutil](https://pypi.python.org/pypi/psutil) 2.0+
|
- [psutil](https://pypi.python.org/pypi/psutil) 2.0+
|
||||||
- [python-slugify](http://pypi.python.org/pypi/python-slugify)
|
- [python-slugify](http://pypi.python.org/pypi/python-slugify)
|
||||||
|
|
||||||
|
|||||||
@@ -40,10 +40,10 @@ except ImportError:
|
|||||||
try:
|
try:
|
||||||
# noinspection PyUnresolvedReferences
|
# noinspection PyUnresolvedReferences
|
||||||
import PIL
|
import PIL
|
||||||
if tuple(map(int, ('2.3.0'.split(".")))) > tuple(map(int, (PIL.PILLOW_VERSION.split(".")))):
|
if tuple(map(int, ('2.5.0'.split(".")))) > tuple(map(int, (PIL.PILLOW_VERSION.split(".")))):
|
||||||
missing.append('Pillow 2.3.0+')
|
missing.append('Pillow 2.5.0+')
|
||||||
except ImportError:
|
except ImportError:
|
||||||
missing.append('Pillow 2.3.0+')
|
missing.append('Pillow 2.5.0+')
|
||||||
try:
|
try:
|
||||||
# noinspection PyUnresolvedReferences
|
# noinspection PyUnresolvedReferences
|
||||||
import slugify
|
import slugify
|
||||||
|
|||||||
@@ -33,10 +33,10 @@ missing = []
|
|||||||
try:
|
try:
|
||||||
# noinspection PyUnresolvedReferences
|
# noinspection PyUnresolvedReferences
|
||||||
import PIL
|
import PIL
|
||||||
if tuple(map(int, ('2.3.0'.split(".")))) > tuple(map(int, (PIL.PILLOW_VERSION.split(".")))):
|
if tuple(map(int, ('2.5.0'.split(".")))) > tuple(map(int, (PIL.PILLOW_VERSION.split(".")))):
|
||||||
missing.append('Pillow 2.3.0+')
|
missing.append('Pillow 2.5.0+')
|
||||||
except ImportError:
|
except ImportError:
|
||||||
missing.append('Pillow 2.3.0+')
|
missing.append('Pillow 2.5.0+')
|
||||||
if len(missing) > 0:
|
if len(missing) > 0:
|
||||||
try:
|
try:
|
||||||
# noinspection PyUnresolvedReferences
|
# noinspection PyUnresolvedReferences
|
||||||
|
|||||||
6
kcc.py
6
kcc.py
@@ -47,10 +47,10 @@ except ImportError:
|
|||||||
try:
|
try:
|
||||||
# noinspection PyUnresolvedReferences
|
# noinspection PyUnresolvedReferences
|
||||||
import PIL
|
import PIL
|
||||||
if tuple(map(int, ('2.3.0'.split(".")))) > tuple(map(int, (PIL.PILLOW_VERSION.split(".")))):
|
if tuple(map(int, ('2.5.0'.split(".")))) > tuple(map(int, (PIL.PILLOW_VERSION.split(".")))):
|
||||||
missing.append('Pillow 2.3.0+')
|
missing.append('Pillow 2.5.0+')
|
||||||
except ImportError:
|
except ImportError:
|
||||||
missing.append('Pillow 2.3.0+')
|
missing.append('Pillow 2.5.0+')
|
||||||
try:
|
try:
|
||||||
# noinspection PyUnresolvedReferences
|
# noinspection PyUnresolvedReferences
|
||||||
import slugify
|
import slugify
|
||||||
|
|||||||
Reference in New Issue
Block a user