mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
RF: patch for python 3 / windows
This commit is contained in:
parent
43d9322b4b
commit
17760efefb
|
@ -12,6 +12,8 @@ install:
|
|||
- get_python_environment macpython $VERSION venv
|
||||
- pip install delocate
|
||||
- cd Pillow
|
||||
# Needs patch for python3 / homebrew detection
|
||||
- patch -p1 < ../pillow.patch
|
||||
- python setup.py bdist_wheel
|
||||
- delocate-wheel dist/*.whl
|
||||
- pip install dist/*.whl
|
||||
|
|
13
pillow.patch
Normal file
13
pillow.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
diff --git a/setup.py b/setup.py
|
||||
index 1a31a89..b21f975 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -212,7 +212,7 @@ class pil_build_ext(build_ext):
|
||||
# if Homebrew is installed, use its lib and include directories
|
||||
import subprocess
|
||||
try:
|
||||
- prefix = subprocess.check_output(['brew', '--prefix']).strip()
|
||||
+ prefix = subprocess.check_output(['brew', '--prefix']).strip().decode('latin1')
|
||||
except:
|
||||
# Homebrew not installed
|
||||
prefix = None
|
Loading…
Reference in New Issue
Block a user