mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-22 21:24:46 +03:00
Update setup.py
This lets you locally install Pillow on Windows if you built it following the instructions of winbuild with pip install --editable ..\Pillow
This commit is contained in:
parent
ebd6901c95
commit
8c5f07f5ea
4
setup.py
4
setup.py
|
@ -391,6 +391,10 @@ class pil_build_ext(build_ext):
|
|||
_dbg("Looking for `%s` using pkg-config." % lib_name)
|
||||
root = pkg_config(lib_name)
|
||||
|
||||
winbuil_root = os.path.join('.', 'winbuild', 'build')
|
||||
if root is None and os.path.isdir(winbuil_root):
|
||||
root = os.path.join(winbuil_root, 'lib'), os.path.join(winbuil_root, 'inc')
|
||||
|
||||
if isinstance(root, tuple):
|
||||
lib_root, include_root = root
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue
Block a user