[Image-SIG] setup.py for Imaging-1.1.4, no _tkinter, has freetype -> crash

Gary Capell gary at commsecure.com.au
Sun Sep 28 20:53:41 EDT 2003


Hi,

The setup.py for Imaging-1.1.4 breaks if there is no _tkinter
module but there is freetype2.  The EXTRA_COMPILE_ARGS
and EXTRA_LINK_ARGS variables are set in the _tkinter
section, and assumed to still be there in the freetype section.

I just added null values for these, but probably something
more clever needs to be done.

wsgary:/tmp# diff -c Imaging-1.1.4.orig/setup.py Imaging-1.1.4/setup.py
*** Imaging-1.1.4.orig/setup.py 2003-05-09 22:00:56.000000000 +1000
--- Imaging-1.1.4/setup.py      2003-09-29 10:44:38.000000000 +1000
***************
*** 229,234 ****
--- 229,236 ----
      INCLUDE_DIRS = ["libImaging"]
      LIBRARY_DIRS = []
      LIBRARIES = []
+     EXTRA_COMPILE_ARGS=None
+     EXTRA_LINK_ARGS=None
      have_freetype = 1 # Assume we have it, unless proven otherwise
   
      # use source distribution, if available

-- 
Gary Capell <gary at commsecure.com.au>



More information about the Image-SIG mailing list