Use a locally built Tk for Python?
- From: Mark Summerfield <list@xxxxxxxxxxxxxx>
- Date: Fri, 1 Jun 2012 09:34:41 -0700 (PDT)
Hi,
I have multiple Pythons locally installed so that I can test against
different versions. (On a 64-bit Debian stable system.)
All of them use the system's Tcl/Tk installation. However, I want to
make some of them use a locally build Tcl/Tk that has a small
customization.
There doesn't seem to be any --with-tk or --with-tcl options for
configure that would allow me to say where my local Tcl/Tk is.
So I ran ./configure --prefix=/home/mark/opt/py32tkmod
And then I tried editing Modules/Setup: I just uncommented and edited
the _tkinter line as follows:
_tkinter _tkinter.c tkappinit.c -DWITH_APPINIT \
-L/home/mark/opt/tcltk85/lib \
-I/home/mark/opt/tcltk85/include \
-I/usr/X11R6/include \
-ltk8.5 -ltcl8.5 \
-L/usr/X11R6/lib \
-lX11
But when I run ~/opt/py32tkmod/bin/python3 tkinter-test.pyw the system
tk is being used not my customized one.
Can anyone advise?
Thanks!
.
- Follow-Ups:
- Re: Use a locally built Tk for Python?
- From: David
- Re: Use a locally built Tk for Python?
- From: Steven D'Aprano
- Re: Use a locally built Tk for Python?
- Prev by Date: CPython 2.7: Weakset data changing size during internal iteration
- Next by Date: Re: CPython 2.7: Weakset data changing size during internal iteration
- Previous by thread: CPython 2.7: Weakset data changing size during internal iteration
- Next by thread: Re: Use a locally built Tk for Python?
- Index(es):
Relevant Pages
|