[Patches] [ python-Patches-443669 ] Permit _tkinter to build on cygwin32
noreply@sourceforge.net
noreply@sourceforge.net
Mon, 23 Jul 2001 23:55:07 -0700
Patches item #443669, was opened at 2001-07-22 19:03
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=443669&group_id=5470
Category: Windows
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Jeff Epler (jepler)
Assigned to: Nobody/Anonymous (nobody)
Summary: Permit _tkinter to build on cygwin32
Initial Comment:
This is a patch to setup.py which allows the _tkinter
module to be built on cygwin32. I have just tested it
on a descr-branch checkout of the cvs tree.
These instructions are based on those by Norman Vine,
as found at
http://www.vso.cape.com/~nhv/files/python/tinker.html
. For this to work, you also need to install the
"X11" headers available from that page.
The patch does two things:
* Search for tcl and tk libraries with version
numbers like "80" as well as "8.0"
* Do not attempt to link libX11 when compiling on
cygwin
It's not completely clear that the latter is always
correct, because it is apparently legal to build X
clients under cygwin. It is correct and necessary to
build a _tkinter which can display to a win32 system.
(Is there machinery to test whether -lX11 is necessary
for -ltk, and include it only in that case?)
----------------------------------------------------------------------
>Comment By: Martin v. Löwis (loewis)
Date: 2001-07-23 23:55
Message:
Logged In: YES
user_id=21627
Thanks, this has been installed as setup.py 1.43.
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2001-07-23 23:48
Message:
Logged In: YES
user_id=21627
I would not worry about an X11 Tk installation on Windows
too much. This is not cygwin specific; you can also build
the X11 libraries using MSVC. In any case, tk.dll should
be linked itself with x11.dll (or whatever the library
name is), so there should be no need to link it explicitly.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=443669&group_id=5470