Ned Deily added the comment:
Here's a patch. It is simple-minded but I think it should be powerful enough
for advanced users to build with non-default Tcl and Tk libraries without
having to modify the source. It adds two new options to configure; if used,
both must be specified:
./configure \
--with-tcltk-includes="-I/opt/local/include" \
--with-tcltk-libs="-L/opt/local/lib -ltcl8.5 -ltk8.5"
The values are passed into the top-level setup.py and override the default
searches and values for include_dirs and libraries when building _tkinter.so.
In addition, the options can be overridden with make. This can be useful when
testing tkinter with different versions of Tcl/Tk:
./configure
make
make test # test with platform default Tcl/Tk
( cd ./build/lib.xx && mv _tkinter.so _tkinter.so.default )
make \
TCLTK_INCLUDES="-I/opt/local/include" \
TCLTK_LIBS="-L/opt/local/lib -ltcl8.6 -ltk8.6"
make test # test with another version of Tcl/Tk
I have some more testing to do on other platforms but, unless there are major
objections, I intend to commit this soon for use with Issue15663.
----------
components: -Macintosh
keywords: +patch
stage: needs patch -> patch review
Added file: http://bugs.python.org/file31600/issue1584_rev0.patch
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue1584>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com