Re: How to tell Pillow where to look for header files (on OS X)?
Felix Schwarz <[email protected]> Sat, 16 Mar 2013 10:29:19 +0100
| Newsgroups | gmane.comp.python.image |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--------------070407050408050600030601
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
as a follow-up I hacked together a quick patch so that setup.py checks also
special environment variables.
Do you think that functionality is interesting for pillow? If so I can submit
a pull request.
fs
--------------070407050408050600030601
Content-Type: text/x-patch;
name="pillow-specify-include-dir.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="pillow-specify-include-dir.patch"
diff -r 6bf5d6bf31d8 setup.py
--- a/setup.py Sat Mar 16 10:26:28 2013 +0100
+++ b/setup.py Sat Mar 16 10:27:35 2013 +0100
@@ -88,6 +88,13 @@
library_dirs = []
include_dirs = []
+
+ library_dir = os.environ.get("PILLOW_LIBRARY_DIR")
+ if library_dir:
+ _add_directory(library_dirs, library_dir)
+ include_dir = os.environ.get("PILLOW_INCLUDE_DIR")
+ if include_dir:
+ _add_directory(include_dirs, include_dir)
_add_directory(include_dirs, "libImaging")
--------------070407050408050600030601
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Image-SIG maillist - [email protected]
http://mail.python.org/mailman/listinfo/image-sig
--------------070407050408050600030601--