downgrade Pillow to version 5.3.0

This commit is contained in:
Mauricio 2020-08-08 02:59:36 -04:00
parent e5906783a8
commit 9fa6554b4c

View File

@ -60,17 +60,17 @@ pip_install("apng")
try:
from PIL import Image
if Image.__version__ != "6.1.0":
jm = raw_input("Pillow version 6.1.0 is recommended for compatibility with PyQt4; You have version %s\nReplace with version 6.1.0? (Y/N) > " % Image.__version__).lower()
if Image.__version__ != "5.3.0":
jm = raw_input("Pillow version 5.3.0 is recommended for compatibility with AO2XP; You have version %s\nReplace with version 5.3.0? (Y/N) > " % Image.__version__).lower()
if jm == "y":
print "installing Pillow 6.1.0"
pip_install("Pillow==6.1.0")
print "installing Pillow 5.3.0"
pip_install("Pillow==5.3.0")
else:
print "Pillow 6.1.0 already exists, skipping"
print "Pillow 5.3.0 already exists, skipping"
except ImportError:
print "installing Pillow 6.1.0"
pip_install("Pillow==6.1.0")
print "installing Pillow 5.3.0"
pip_install("Pillow==5.3.0")
print "downloading pyqt4"