PIL installation problem on Mac OSX

Piet van Oostrum piet at cs.uu.nl
Sun Jun 8 14:31:51 CEST 2003


There is a small error in the setup.py script for PIL (Python Imaging
Library) on Mac OSX, when the Tcl/Tk Framework is used. The following diff
solves the problem:

diff -c /Users/piet/Downloads/Python/Imaging-1.1.4/setup.py.\~1\~ /Users/piet/Downloads/Python/Imaging-1.1.4/setup.py
*** /Users/piet/Downloads/Python/Imaging-1.1.4/setup.py.~1~	Fri May  9 14:00:56 2003
--- /Users/piet/Downloads/Python/Imaging-1.1.4/setup.py	Sat Jun  7 19:23:28 2003
***************
*** 216,222 ****
                  ["_imagingtk.c", "Tk/tkImaging.c"],
                  include_dirs=INCLUDE_DIRS,
                  library_dirs=LIBRARY_DIRS,
!                 libraries=LIBRARIES
                  )
              )
  
--- 216,224 ----
                  ["_imagingtk.c", "Tk/tkImaging.c"],
                  include_dirs=INCLUDE_DIRS,
                  library_dirs=LIBRARY_DIRS,
!                 libraries=LIBRARIES,
!                 extra_compile_args=EXTRA_COMPILE_ARGS,
!                 extra_link_args=EXTRA_LINK_ARGS
                  )
              )
  
***************
*** 283,291 ****
                  ["_imagingft.c"] + FILES,
                  include_dirs=INCLUDE_DIRS,
                  library_dirs=LIBRARY_DIRS,
!                 libraries=LIBRARIES,
!                 extra_compile_args=EXTRA_COMPILE_ARGS,
!                 extra_link_args=EXTRA_LINK_ARGS
                  )
              )
  
--- 285,291 ----
                  ["_imagingft.c"] + FILES,
                  include_dirs=INCLUDE_DIRS,
                  library_dirs=LIBRARY_DIRS,
!                 libraries=LIBRARIES
                  )
              )
  


-- 
Piet van Oostrum <piet at cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: P.van.Oostrum at hccnet.nl




More information about the Python-list mailing list