[Image-SIG] Imaging-1.1.4 on Cygwin (Re: Can PIL be installed under
Cygwin?)
SUZUKI Hisao
suzuki611 at oki.com
Mon Jun 2 15:23:54 EDT 2003
Three months ago in <mailman.1048868263.30045.python-list at python.org>,
Jason Tishler <jason at tishler.net> wrote:
> Did you see the following?
> http://sources.redhat.com/ml/cygwin/2002-05/msg00582.html
[snip]
> Use the above URL (possibly modified to deal with the latest Cygwin
> Tcl/Tk package) to build a Cygwin PIL.
I am afraid the method described there is too complicated and may
affect the Cygwin system extensively to build the Imaging library...
I succeeded in making Imaging-1.1.4 from the source in an easier way
though it was a bit of quick hack.
1) Install the current Cygwin packages of "python", "jpeg",
"XFree86-prog" (for /usr/X11R6/include/X11/*) and others.
2) Modify the file "setup.py".
*** Imaging-1.1.4/setup.py~ Fri May 9 12:00:56 2003
--- Imaging-1.1.4/setup.py Mon Jun 2 02:15:20 2003
***************
*** 120,131 ****
# configure imagingtk module
try:
! import _tkinter
! TCL_VERSION = _tkinter.TCL_VERSION[:3]
except (ImportError, AttributeError):
pass
else:
! INCLUDE_DIRS = ["libImaging"]
LIBRARY_DIRS = ["libImaging"]
LIBRARIES = ["Imaging"]
EXTRA_COMPILE_ARGS = None
--- 120,133 ----
# configure imagingtk module
try:
! #import _tkinter
! #TCL_VERSION = _tkinter.TCL_VERSION[:3]
! TCL_VERSION = "84"
except (ImportError, AttributeError):
pass
else:
! # INCLUDE_DIRS = ["libImaging"]
! INCLUDE_DIRS = ["libImaging", "/usr/X11R6/include"]
LIBRARY_DIRS = ["libImaging"]
LIBRARIES = ["Imaging"]
EXTRA_COMPILE_ARGS = None
3) Follow the instructions written in "README":
$ cd libImaging
$ ./configure
$ make
$ cd ..
$ python setup.py build
$ python setup.py install
4) Now you can test the library:
$ python selftest.py
55 tests passed.
Hope this helps, though it may be too late.
-- SUZUKI Hisao
More information about the Image-SIG
mailing list