[Image-SIG] Patch for compiling PIL under cygwin

Miki Tebeka mtebeka at qualcomm.com
Mon Sep 26 15:20:09 CEST 2005


Hello,

To whom it may concern.

Currently PIL (1.1.5) does not build OOTB under cygwin.
The reason is that the setup.py script does not add the directory where the
pythonX.Y.dll.a is located.

Just add the below lines somewhere in pil_build_ext/build_extension:

        # add standard directories

+        # In cygwin pythonX.Y.dll.a is in /usr/lib/pythonX.Y/config directory
+        if sys.platform == "cygwin": 
+            cfgdir = os.path.join("/usr/lib", "python%s" % sys.version[:3],
+                                  "config")
+            add_directory(library_dirs, cfgdir)

        add_directory(library_dirs, "/usr/local/lib")

Bye.
--
------------------------------------------------------------------------
Miki Tebeka <mtebeka at qualcomm.com>
http://tebeka.bizhat.com
The only difference between children and adults is the price of the toys
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.python.org/pipermail/image-sig/attachments/20050926/aa2031e0/attachment-0001.pgp


More information about the Image-SIG mailing list