setup.py breaks Modules/Setup.local
Skip Montanaro
skip at pobox.com
Wed Jun 12 12:53:21 EDT 2002
Mike> I am attempting to get Modules/Setup.local working to build python
Mike> 2.2.1. But there seems to be a bad interaction with setup.py. I
Mike> have a Modules/Setup.local which contains a definition for the
Mike> _tkinter module. I would like to use a Tcl/Tk release from a
Mike> location that setup.py does not find. It looks like this:
Mike> # Edit this file for local setup changes
Mike> *shared*
Mike> _tkinter _tkinter.c tkappinit.c -DWITH_APPINIT \
Mike> -L/usr/local/tcltk-8.3.2/lib \
Mike> -I/usr/local/tcltk-8.3.2/include \
Mike> -I/usr/X11R6/include \
Mike> -ltk8.3 -ltcl8.3 \
Mike> -L/usr/X11R6/lib \
Mike> -lX11
I've not tried this myself, but I think if you set the LIBDIR and INCLUDEDIR
environment variables you should be good to go:
export INCLUDEDIR=/usr/local/tcltk-8.3.2/include
export LIBDIR=/usr/local/tcltk-8.3.2/lib
./configure
make
--
Skip Montanaro
skip at pobox.com
consulting: http://manatee.mojam.com/~skip/resume.html
More information about the Python-list
mailing list