Skip to content

Commit 8700fe6

Browse files
committed
Redone the _tkinter configuration section with support for popular packages.
1 parent 7a206c8 commit 8700fe6

File tree

1 file changed

+41
-15
lines changed

1 file changed

+41
-15
lines changed

Modules/Setup.in

+41-15
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ errno errnomodule.c # posix (UNIX) errno values
164164

165165

166166
# Multimedia modules -- off by default.
167-
# These don't for 64-bit platforms!!!
167+
# These don't work for 64-bit platforms!!!
168168
# These represent audio samples or images as strings:
169169

170170
#audioop audioop.c # Operations on audio samples
@@ -259,20 +259,46 @@ md5 md5module.c md5c.c
259259

260260
# The _tkinter module.
261261
#
262-
# See the section "The Tk interface" in ../README for more info.
263-
#
264-
# Enable the TKPATH line and choose the most applicable _tkinter line.
265-
# You may have to change /usr/local to wherever Tcl/Tk are installed.
266-
# Change the -l arguments to use Tcl 7.4 and Tk 4.0!
267-
268-
# *** ALWAYS enable this line:
269-
#TKPATH=:lib-tk
270-
271-
# *** Enable *one* of the following lines:
272-
# For Solaris:
273-
#_tkinter _tkinter.c -I/usr/openwin/include -I/usr/local/include -L/usr/openwin/lib -L/usr/local/lib -ltk4.1 -ltcl7.5 -lX11
274-
# For generic system (may have to add -I/-L options to find X11):
275-
#_tkinter _tkinter.c -I/usr/local/include -L/usr/local/lib -ltk4.1 -ltcl7.5 -lX11
262+
# The TKPATH variable is always enabled, to save you the effort.
263+
TKPATH=:lib-tk
264+
265+
# The command for _tkinter is long and site specific. Please
266+
# uncomment and/or edit those parts as indicated. If you don't have a
267+
# specific extension (e.g. Tix or BLT), leave the corresponding line
268+
# commented out. (Leave the trailing backslashes in! If you
269+
# experience strange errors, you may want to join all uncommented
270+
# lines and remove the backslashes -- the backslash interpretation is
271+
# done by the shell's "read" command and it may not be implemented on
272+
# every system.
273+
274+
# *** Always uncomment this (leave the leading underscore in!):
275+
# _tkinter _tkinter.c tkappinit.c -DWITH_APPINIT \
276+
# *** Uncommend and edit to reflect where your X11 header files are:
277+
# -I/usr/X11R6/include \
278+
# *** Or uncomment this for Solaris:
279+
# -I/usr/openwin/include \
280+
# *** Uncomment and edit to reflect where your Tcl/Tk headers are:
281+
# -I/usr/local/include \
282+
# *** Uncomment and edit for Tix extension only:
283+
# -DWITH_TIX -ltix4.1.8.0 \
284+
# *** Uncomment and edit for BLT extension only:
285+
# -DWITH_BLT -I/usr/local/blt/blt8.0-unoff/include -lBLT8.0 \
286+
# *** Uncomment and edit for PIL (TkImaging) extension only:
287+
# -DWITH_PIL -I../Extensions/Imaging/libImaging tkImaging.c \
288+
# *** Uncomment and edit for Mesa (what's Mesa?):
289+
# -lGL -lGLU -lMesatk -lMesaaux \
290+
# *** Uncomment and edit for TOGL extension only:
291+
# -DWITH_TOGL togl.c \
292+
# *** Uncomment and edit to reflect where your Tcl/Tk libraries are:
293+
# -L/usr/local/lib \
294+
# *** Uncomment and edit to reflect your Tcl/Tk versions:
295+
# -ltk8.0 -ltcl8.0 \
296+
# *** Uncomment and edit to reflect where your X11 libraries are:
297+
# -L/usr/X11R6/lib \
298+
# *** Or uncomment this for Solaris:
299+
# -L/usr/openwin/lib \
300+
# *** Always uncomment this; X11 libraries to link with:
301+
# -lX11 -lXext -lXmu
276302

277303

278304
# Lance Ellinghaus's modules:

0 commit comments

Comments
 (0)