diff --git a/setup.py b/setup.py index 907a171c..4537de77 100644 --- a/setup.py +++ b/setup.py @@ -243,8 +243,9 @@ setup( 'cffi >= 1.9.1', # must be a setup and install requirement 'defusedxml >= 0.5.0', # pure Python, so track HEAD closely 'img2pdf >= 0.2.4', # pure Python, so track HEAD closely - 'Pillow >= 4.0.0', # Pillow < 4 has BytesIO/TIFF bug w/img2pdf 0.2.3 - 'Pillow != 5.1.0 ; platform_system == "Darwin"', # block 5.1.0, broken wheels + 'Pillow >= 4.0.0, != 5.1.0 ; sys_platform == "darwin"', + # Pillow < 4 has BytesIO/TIFF bug w/img2pdf 0.2.3 + # block 5.1.0, broken wheels 'PyPDF2 >= 1.26', # pure Python, so track HEAD closely 'reportlab >= 3.3.0', # oldest released version with sane image handling 'ruffus == 2.6.3', # pinned - ocrmypdf implements a 2.6.3 workaround