blob: 8218e90bcab706822017f4f220b6ea8edfc0aa3d [file] [log] [blame]
Guido van Rossumfaf681a1996-06-20 14:32:08 +00001This is Python release 1.4 beta 1
2=================================
3
4It's a beta release. Only use this if you want to help me iron the
5last wrinkles out of the distribution before I release the real 1.4
6release. In particular, I'm interested in porting experiences to Unix
7boxes. It should build out of the box using "./configure; make".
8Also try running configue with the --with-thread and --with-readline
9options (described below).
Guido van Rossum627b2d71993-12-24 10:39:16 +000010
Guido van Rossum627b2d71993-12-24 10:39:16 +000011
Guido van Rossum91cb9d21995-04-10 11:47:38 +000012What's new in this release?
13---------------------------
Guido van Rossum627b2d71993-12-24 10:39:16 +000014
Guido van Rossumfaf681a1996-06-20 14:32:08 +000015XXX
Guido van Rossum627b2d71993-12-24 10:39:16 +000016
Guido van Rossum627b2d71993-12-24 10:39:16 +000017
Guido van Rossum91cb9d21995-04-10 11:47:38 +000018What is Python anyway?
19----------------------
20
21Python is an interpreted object-oriented programming language, and is
22often compared to Tcl, Perl or Scheme. For a quick summary of what
Guido van Rossumfaf681a1996-06-20 14:32:08 +000023Python can mean for a UNIX/C programmer, read Misc/BLURB.LUTZ. If you
24have web access, point your browser to <URL:http://www.python.org>.
Guido van Rossum91cb9d21995-04-10 11:47:38 +000025
26
27If you don't read instructions
28------------------------------
29
30Congratulations on getting this far. :-)
31
32To start building right away (on UNIX): type "./configure" in the
33current directory and when it finishes, type "make". The section
34Build Instructions below is still recommended reading. :-)
35
36
37Copyright issues
38----------------
39
40Python is COPYRIGHTED but free to use for all. See the full copyright
41notice at the end of this file.
42
43The Python distribution is *not* affected by the GNU Public Licence
44(GPL). There are interfaces to some GNU code but these are entirely
45optional and no GNU code is distributed with Python. For all these
46packages, GPL-free public domain versions also exist.
47
Guido van Rossum627b2d71993-12-24 10:39:16 +000048
Guido van Rossumff840491995-09-18 22:02:47 +000049A modest plug
50=============
51
52
Guido van Rossum0447a321995-10-08 01:22:33 +000053*************************************************************************
54* *
55* Python exists, and is free, thanks to the contributed efforts *
56* of many people. The PSA was created to maximize the results *
57* of those efforts, by helping to coordinate them. The PSA *
58* operates web, ftp and email servers, organizes Python *
59* workshops, and engages in other activities that benefit the *
60* Python user community. The PSA is seeking support for these *
61* activities. See this URL for information on how to join: *
62* http://www.python.org/psa/Joining.html *
63* *
64*************************************************************************
Guido van Rossumff840491995-09-18 22:02:47 +000065
Guido van Rossum627b2d71993-12-24 10:39:16 +000066
Guido van Rossum433c8ad1994-08-01 12:07:07 +000067Build instructions
Guido van Rossum91cb9d21995-04-10 11:47:38 +000068==================
Guido van Rossum627b2d71993-12-24 10:39:16 +000069
Guido van Rossum433c8ad1994-08-01 12:07:07 +000070Before you start building Python, you must first configure it. This
71entails (at least) running the script "./configure", which figures out
Guido van Rossum91cb9d21995-04-10 11:47:38 +000072your system configuration and creates several Makefiles. (It takes a
73minute or two -- please be patient!) When it's done, you are ready to
74run make. Typing "make" in the toplevel directory will recursively
75run make in each of the subdirectories Parser, Objects, Python and
76Modules, creating a library file in each one. The executable of the
77interpreter is built in the Modules subdirectory and moved up here
78when it is built. If you want or need to, you can also chdir into
79each subdirectory in turn and run make there manually (do the Modules
80subdirectory last!).
Guido van Rossum627b2d71993-12-24 10:39:16 +000081
Guido van Rossum91cb9d21995-04-10 11:47:38 +000082NOTE: if you rerun the configure script with different options, remove
83all object files by running "make clean" before rebuilding. Believe
84it or not, "make clean" sometimes helps to clean up other inexplicable
85problems as well. Try it before sending in a bug report!
Guido van Rossum627b2d71993-12-24 10:39:16 +000086
Guido van Rossum0a516c91994-09-12 10:58:40 +000087
Guido van Rossum91cb9d21995-04-10 11:47:38 +000088Troubleshooting
89---------------
Guido van Rossum627b2d71993-12-24 10:39:16 +000090
Guido van Rossumfaf681a1996-06-20 14:32:08 +000091If recursive makes fail, try invoking make as "make MAKE=make".
92
93If you run into other trouble, see section 3 of the FAQ (file
94Misc/FAQ) for hints on what can go wrong, and how to fix it.
Guido van Rossum91cb9d21995-04-10 11:47:38 +000095
96
97Platform specific notes
98-----------------------
99
Guido van Rossum0447a321995-10-08 01:22:33 +0000100(Some of these may no longer apply. If you find you can build Python
101on these platforms without the special directions mentioned here, let
102me know so I can remove them!)
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000103
Guido van Rossum8eca2c21996-02-14 18:37:46 +0000104Linux: Once you've built Python, use it to run the regen.py script in
105 the Lib/linux1 directory. Apparently the files as distributed
106 don't match the system headers on some Linux versions.
107
Guido van Rossumfaf681a1996-06-20 14:32:08 +0000108AIX: Read the files Misc/AIX-NOTES* before trying to build.
Guido van Rossuma3b4b611996-07-21 02:48:16 +0000109 WARNING! In some versions of AIX, you get errors about
110 Invalid Indent when running the Python test set. This appears
111 to be a bug in the AIX compiler. Rebuild Parser/tokenizer.c
112 using OPT="" or OPT=-g, or use gcc.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000113
114HP-UX: Read the file Misc/HPUX-NOTES if you want to be able to
115 use shared libraries for dynamically loaded modules.
116
117Minix: When using ack, use "CC=cc AR=aal RANLIB=: ./configure"!
118
119SCO: 1) Everything works much better if you add -U__STDC__ to the
120 defs. This is because all the SCO header files are broken.
121 Anything that isn't mentioned in the C standard it's
122 conditionally excluded when __STDC__ is defined.
123
124 2) Due to the U.S. export restrictions, SCO broke the crypt
125 stuff out into a separate library, libcrypt_i.a so the LIBS
126 needed be set to:
127
128 LIBS=' -lsocket -lcrypt_i'
129
Guido van Rossuma3b4b611996-07-21 02:48:16 +0000130 3) According to at least one report, the above apply only to
131 SCO 3 -- Python builds out of the box on SCO 5.
132
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000133
134Configuring the set of built-in modules
135---------------------------------------
Guido van Rossum19e0c261995-01-17 16:36:34 +0000136
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000137You can configure the interpreter to contain fewer or more built-in
138modules by editing the file Modules/Setup. This file is initially
139copied (when the toplevel Makefile makes Modules/Makefile for the
140first time) from Setup.in; if it does not exist yet, make a copy
141yourself. Never edit Setup.in -- always edit Setup. Read the
142comments in the file for information on what kind of edits you can
143make. When you have edited Setup, Makefile and config.c in Modules
144will automatically be rebuilt the next time you run make in the
Guido van Rossum9444ce01994-10-20 22:10:23 +0000145toplevel directory.
Guido van Rossum627b2d71993-12-24 10:39:16 +0000146
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000147Especially on SGI IRIX, there are modules that interface to many SGI
148specific system libraries, e.g. the GL library and the audio hardware.
149
150
151Setting the optimization/debugging options
152------------------------------------------
153
154If you want to change the optimization/debugging options for the C
155compiler, assign to the OPT variable on the toplevel make command;
156e.g. "make OPT=-g" will build a debugging version of Python on most
157platforms. The default is OPT=-O; a value for OPT in the environment
158when the configure script is run overrides this default (likewise for
159CC; and the initial value for LIBS is used as the base set of
160libraries to link with).
161
162
163Testing
164-------
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000165
166To test the interpreter that you have just built, type "make test".
167This runs the test set silently, twice (once with no compiled files,
168once with the compiled files left by the previous test run). Each
169test run should print "All tests OK." and nothing more. (The test set
170does not test the built-in modules, but will find most other problems
171with the interpreter.)
172
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000173IMPORTANT: If the tests fail and you decide to mail a bug report,
174*don't* include the output of "make test". It is useless. Run the
175following command instead:
176
177 PYTHONPATH=../Lib:../Lib/test:./Modules ./python -c 'import testall'
178
179(substituting the top of the source tree for .. if you built in a
180different directory). This gives the output of the tests and shows
181which test failed.
182
183
184Installing
185----------
186
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000187To install the interpreter as /usr/local/bin/python, type "make
188install". To install the library as /usr/local/lib/python, type "make
189libinstall". To install the manual page as
190/usr/local/man/man1/python.1, type "make maninstall". To install the
Guido van Rossumfaf681a1996-06-20 14:32:08 +0000191Emacs editing mode for Python, manually copy the file
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000192Misc/python-mode.el to your local Emacs lisp directory. The directory
193/usr/local can be overridden at configuration time by passing
194--prefix=DIRECTORY to the configure script, or at make time by passing
195"prefix=DIRECTORY" to make. See below for more information on --prefix.
196
197If you plan to do development of extension modules or to embed Python
198in another application and don't want to reference the original source
199tree, you can type "make inclinstall" and "make libainstall" to
200install the include files and lib*.a files, respectively, as
201/usr/local/include/Py/*.h and /usr/local/lib/python/lib/lib*.a. The
202make libainstall target also installs copies of several other files
203used or produced during the build process which are needed to build
204extensions or to generate their Makefiles.
205
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000206
207Configuration options and variables
208-----------------------------------
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000209
210Some special cases are handled by passing environment variables or
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000211options to the configure script.
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000212
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000213NOTE: if you rerun the configure script with different options, remove
214all object files by running "make clean" before rebuilding.
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000215
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000216--with(out)-gcc: The configure script uses gcc (the GNU C compiler) if
217 it finds it. If you don't want this, or if this compiler is
218 installed but broken on your platform, pass the option
219 --without-gcc. You can also pass "CC=cc" (or whatever the
220 name of the proper C compiler is) in the environment, but the
221 advantage of using --without-gcc is that this option is
222 remembered by the config.status script for its --recheck
223 option.
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000224
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000225--prefix, --exec-prefix: If you want to install the binaries and the
226 Python library somewhere else than in /usr/local/{bin,lib},
227 you can pass the option --prefix=DIRECTORY; the interpreter
228 binary will be installed as DIRECTORY/bin/python and the
229 library files as DIRECTORY/lib/python/*. If you pass
230 --exec-prefix=DIRECTORY (as well) this overrides the
231 installation prefix for architecture-dependent files (like the
232 interpreter binary). Note that --prefix=DIRECTORY also
233 affects the default module search path (sys.path), when
234 Modules/config.c is compiled. Passing make the option
235 prefix=DIRECTORY (and/or exec_prefix=DIRECTORY) overrides the
236 prefix set at configuration time; this may be more convenient
237 than re-running the configure script if you change your mind
238 about the install prefix...
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000239
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000240--with-readline: You can use the GNU readline library to improve the
Guido van Rossumfaf681a1996-06-20 14:32:08 +0000241 interactive user interface. This gives you line editing and
242 command history when calling Python interactively. Unless GNU
243 readline is a standard part of your system (it is on Linux),
244 you need to configure build the GNU readline library before
245 running the configure script. Its sources are not distributed
246 with Python; you can ftp them from any GNU mirror site, or
247 from its home site:
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000248 <URL:ftp://slc2.ins.cwru.edu/pub/dist/readline-2.0.tar.gz> (or
249 a higher version number -- using version 1.x is not
250 recommended).
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000251
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000252 A GPL-free version was posted to comp.sources.misc in volume
253 31 and is widely available from FTP archive sites, e.g.
254 <URL:ftp://gatekeeper.dec.com/.b/usenet/comp.sources.misc/
255 volume31/editline/part01.Z>
256
257 Pass the Python configure script the option
258 --with-readline=DIRECTORY where DIRECTORY is the absolute
259 pathname of the directory where you've built the readline
Guido van Rossumfaf681a1996-06-20 14:32:08 +0000260 library. If GNU readline is a standard part of your system,
261 don't pass '=DIRECTORY'. Some hints on building and using the
262 readline library are in the FAQ (file Misc/FAQ).
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000263
Guido van Rossumfaf681a1996-06-20 14:32:08 +0000264--with-thread: On most Unix systems, you can now use multiple threads.
265 To enable this, pass --with-thread. If the library required
266 for threads lives in a peculiar place, you can use
267 --with-thread=DIRECTORY. In the Modules/Setup file, enable
268 the thread module. (Threads aren't enabled automatically
269 because there are run-time penalties when support for them is
270 compiled in even if you don't use them.)
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000271
272--with-sgi-dl: On SGI IRIX 4, dynamic loading of extension modules is
273 supported by the "dl" library by Jack Jansen, which is
274 ftp'able from <URL:ftp://ftp.cwi.nl/pub/dynload/dl-1.6.tar.Z>.
275 This is enabled (after you've ftp'ed and compiled the dl
276 library!) by passing --with-sgi-dl=DIRECTORY where DIRECTORY
277 is the absolute pathname of the dl library. (Don't bother on
278 IRIX 5, it already has dynamic linking using SunOS style
279 shared libraries.) Support for this feature is deprecated.
280
281--with-dl-dld: Dynamic loading of modules is rumoured to be supported
282 on some other systems: VAX (Ultrix), Sun3 (SunOS 3.4), Sequent
283 Symmetry (Dynix), and Atari ST. This is done using a
284 combination of the GNU dynamic loading package
285 (<URL:ftp://ftp.cwi.nl/pub/dynload/dl-dld-1.1.tar.Z>) and an
286 emulation of the SGI dl library mentioned above (the emulation
287 can be found at
288 <URL:ftp://ftp.cwi.nl/pub/dynload/dld-3.2.3.tar.Z>). To
289 enable this, ftp and compile both libraries, then call the
290 configure passing it the option
291 --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY where DL_DIRECTORY is
292 the absolute pathname of the dl emulation library and
293 DLD_DIRECTORY is the absolute pathname of the GNU dld library.
294 (Don't bother on SunOS 4 or 5, they already have dynamic
295 linking using shared libraries.) Support for this feature is
296 deprecated.
297
298--with-libm, --with-libc: It is possible to specify alternative
299 versions for the Math library (default -lm) and the C library
300 (default the empty string) using the options
301 --with-libm=STRING and --with-libc=STRING, respectively. E.g.
302 if your system requires that you pass -lc_s to the C compiler
303 to use the shared C library, you can pass --with-libc=-lc_s.
304 These libraries are passed after all other libraries, the C
305 library last.
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000306
307
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000308Extensions
309----------
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000310
311You can also build an "extended" interpreter, using modules that are
312not contained in the Modules directory. Extensions are distributed as
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000313a separate tar file (currently extensions.tar.gz). See the README
314file there.
Guido van Rossumaf5b83e1995-01-04 19:02:35 +0000315
316
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000317Building for multiple architectures (using the VPATH feature)
318-------------------------------------------------------------
319
320If your file system is shared between multiple architectures, it
321usually is not necessary to make copies of the sources for each
322architecture you want to support. If the make program supports the
323VPATH feature, you can create an empty build directory for each
324architecture, and in each directory run the configure script (on the
325appropriate machine with the appropriate options). This creates the
326necessary subdirectories and the Makefiles therein. The Makefiles
327contain a line VPATH=... which points to directory containing the
Guido van Rossum6b111b01994-10-11 15:03:34 +0000328actual sources. (On SGI systems, use "smake" instead of "make" if you
329use VPATH -- don't try gnumake.)
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000330
331For example, the following is all you need to build a minimal Python
332in /usr/tmp/python (assuming ~guido/src/python is the toplevel
333directory and you want to build in /usr/tmp/python):
334
335 $ mkdir /usr/tmp/python
336 $ cd /usr/tmp/python
337 $ ~guido/src/python/configure
338 [...]
339 $ make
340 [...]
341 $
342
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000343Note that Modules/Makefile copies the original Setup file to the build
344directory if it finds no Setup file there. This means that you can
345edit the Setup file for each architecture independently. For this
346reason, subsequent changes to the original Setup file are not tracked
347automatically, as they might overwrite local changes. To force a copy
348of a changed original Setup file, delete the target Setup file. (The
349makesetup script supports multiple input files, so if you want to be
350fancy you can change the rules to create an empty Setup.local if it
351doesn't exist and run it with arguments $(srcdir)/Setup Setup.local;
352however this assumes that you only need to add modules.)
353
354
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000355Building on non-UNIX systems
356----------------------------
357
358On non-UNIX systems, you will have to fake the effect of running the
359configure script manually. A good start is to copy the file
360config.h.in to config.h and edit the latter to reflect the actual
361configuration of your system. Most symbols must simply be defined as
3621 only if the corresponding feature is present and can be left alone
363otherwise; however RETSIGTYPE must always be defined, either as int or
364as void, and the *_t type symbols must be defined as some variant of
365int if they need to be defined at all. Then arrange that the symbol
366HAVE_CONFIG_H is defined during compilation (usually by passing an
367argument of the form `-DHAVE_CONFIG_H' to the compiler, but this is
368necessarily system-dependent).
369
Guido van Rossumc561e5d1994-08-23 13:52:46 +0000370I have tried to collect instructions, Makefiles and additional sources
371for various platforms in this release. The following directories
372exist:
373
374Mac/ Apple Macintosh, using THINK C 6.0 or MPW 3.2.
375Dos/ MS-DOS and Windows 3.1, using Microsoft C.
376Nt/ Windows NT, using Microsoft Visual C/C++.
377Os2/ OS/2.
378
379Most of these instructions were last tested with a previous Python
380release, so you may still experience occasional problems. If you have
381fixes or suggestions, please let me know and I'll try to incorporate
382them in the next release.
383
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000384
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000385
386Miscellaneous issues
387====================
388
389
390Documentation
391-------------
392
393All documentation is provided in the subdirectory Doc in the form of
394LaTeX files. In order of importance for new users: Tutorial (tut),
395Library Reference (lib), Language Reference (ref), Extending (ext).
396Especially the Library Reference is of immense value since much of
397Python's power (including the built-in data types and functions!) is
398described here.
399
400To print the documentation from the LaTeX files, chdir into the Doc
401subdirectory, type "make" (let's hope you have LaTeX installed!), and
402send the four resulting PostScript files (tut.ps, lib.ps, ref.ps, and
403ext.ps) to the printer. See the README file there.
404
405All documentation is also available on-line via the World-Wide Web
Guido van Rossumfaf681a1996-06-20 14:32:08 +0000406(WWW): <URL:http://www.python.org>. It can also be downloaded
407separately from the ftp archives (see below) in Emacs INFO, HTML or
408PostScript form -- see the FAQ (file Misc/FAQ) for more info.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000409
410
411Emacs mode
412----------
413
414There's an excellent Emacs editing mode for Python code; see the file
415Misc/python-mode.el. Originally written by Tim Peters, who's no
416longer on the net, it is now maintained by Barry Warsaw
417<bwarsaw@cnri.reston.va.com>.
418
Guido van Rossum3c294ca1995-06-14 18:17:22 +0000419BTW, if you want to use font-lock for Python sources, here's something
420to put in your .emacs file:
421
422 (defun my-python-mode-hook ()
423 (setq font-lock-keywords python-font-lock-keywords)
424 (font-lock-mode 1))
425 (add-hook 'python-mode-hook 'my-python-mode-hook)
426
427
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000428
429Bug reports
430-----------
431
432Bugs are best reported to the comp.lang.python newsgroup or the Python
433mailing list -- see the section "Newsgroup and mailing list" below.
434Before posting, read the FAQ (file Misc/FAQ) first to see if your
435problem has already been answered!
436
437
438Ftp access
439----------
440
Guido van Rossumfaf681a1996-06-20 14:32:08 +0000441Python's "home ftp site" is ftp.python.org, directory /pub/python.
442See the FAQ (file Misc/FAQ) for a list of other ftp sites carrying the
443Python distribution.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000444
445
446Newsgroup and mailing list
447--------------------------
448
449There are a newsgroup and a mailing list devoted to Python
450programming, design and bugs. The newsgroup, comp.lang.python,
451contains exactly the same messages as the mailing list. To subscribe
452to the mailing list, send mail containing your real name and e-mail
453address to "python-list-request@cwi.nl" (a real person reads these
454messages, so no LISTPROC or Majordomo commands, please).
455
456
457The Tk interface
458----------------
459
460Tk (the user interface component of John Ousterhout's Tcl language) is
461also usable from Python. Since this requires that you first build and
462install Tcl/Tk, the Tk interface is not enabled by default. It
Guido van Rossum84c8c7f1995-08-28 02:44:24 +0000463requires Tcl 7.4 and Tk 4.0. (Support for Tk 3.6 and Tcl 7.3 can be
464found in Lib/tk3inter/.)
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000465
466To enable the Python/Tk interface, once you've built and installed
467Tcl/Tk, all you need to do is edit two lines in Modules/Setup; search
Jack Jansen10d0f8f1995-10-23 14:36:05 +0000468for the string "_tkinter". Un-comment one (normally the first) of the
469lines beginning with "#_tkinter" and un-comment the line beginning with
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000470"#TKPATH". (If you have installed Tcl/Tk in unusual places you will
471have to edit the first line as well to fix the -I and -L options.)
472See the Build Instructions above for more details.
473
474There is little documentation. Begin with fetching the "Tk Lifesaver"
Guido van Rossumfaf681a1996-06-20 14:32:08 +0000475document,
476e.g. <URL:ftp://ftp.python.org/pub/python/doc/tkinter-doc.tar.gz> (a
477gzipped tar file containing a PostScript file). There are demos in
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000478the Demo/tkinter directory, in the subdirectories guido, matt and www.
479
480Note that there's a Python module called "Tkinter" (capital T) which
481lives in Lib/tkinter/Tkinter.py, and a C module called "tkinter"
Jack Jansen10d0f8f1995-10-23 14:36:05 +0000482(lower case t) which lives in Modules/_tkinter.c. Demos and
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000483normal Tk applications only import the Python Tkinter module -- only
Jack Jansen10d0f8f1995-10-23 14:36:05 +0000484the latter uses the C _tkinter module directly. In order to find the C
485_tkinter module, it must be compiled and linked into the Python
486interpreter -- the _tkinter line in the Setup file does this. In order
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000487to find the Python Tkinter module, sys.path must be set correctly --
488the TKPATH assignment in the Setup file takes care of this, but only
489if you install Python properly ("make install libinstall"). (You can
Jack Jansen10d0f8f1995-10-23 14:36:05 +0000490also use dynamic loading for the C _tkinter module, in which case you
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000491must manually fix up sys.path or set $PYTHONPATH for the Python
492Tkinter module.)
493
Guido van Rossum0447a321995-10-08 01:22:33 +0000494See <URL:http://www.smli.com/research/tcl/> for more info on where
Guido van Rossum84c8c7f1995-08-28 02:44:24 +0000495to get Tcl/Tk.
496
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000497
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000498Distribution structure
499----------------------
500
501Most subdirectories have their own README file. Most files have
502comments.
503
504ChangeLog A raw list of changes since the first 1.0.0 BETA release
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000505Contrib/ Interesting or useful Python code contributed by others
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000506Demo/ Demonstration scripts, modules and programs
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000507Doc/ Documentation (LaTeX sources)
Guido van Rossumc561e5d1994-08-23 13:52:46 +0000508Extensions/ Extension modules (distributed separately)
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000509Grammar/ Input for the parser generator
510Include/ Public header files
511Lib/ Python library modules
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000512Makefile.in Source from which config.status creates Makefile
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000513Misc/ Miscellaneous files
514Modules/ Implementation of most built-in modules
515Objects/ Implementation of most built-in object types
516Parser/ The parser and tokenizer and their input handling
517Python/ The "compiler" and interpreter
518README The file you're reading now
Guido van Rossume109aa71995-03-09 14:12:10 +0000519Tools/ Some useful programs written in Python
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000520acconfig.h Additional input for the autoheader program
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000521config.h.in Source from which config.status creates config.h
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000522configure Configuration shell script (GNU autoconf output)
523configure.in Configuration specification (GNU autoconf input)
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000524
525The following files will (may) be created in the toplevel directory by
526the configuration and build processes:
527
528Makefile Build rules
529config.cache cache of configuration variables
530config.h Configuration header
531config.log log from last configure run
532config.status status from last run of configure script
533python The executable interpreter
534tags, TAGS Tags files for vi and Emacs
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000535
536
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000537Author's address
538----------------
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000539
540Guido van Rossum
Guido van Rossumfaf681a1996-06-20 14:32:08 +0000541CNRI
5421895 Preston White Drive
543Reston, VA 22094
544USA
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000545
Guido van Rossumfaf681a1996-06-20 14:32:08 +0000546E-mail: guido@python.org
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000547
548
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000549
550Copyright notice
551================
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000552
553The Python source is copyrighted, but you can freely use and copy it
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000554as long as you don't change or remove the copyright notice:
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000555
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000556----------------------------------------------------------------------
Guido van Rossumaf5b83e1995-01-04 19:02:35 +0000557Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
558The Netherlands.
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000559
560 All Rights Reserved
561
Guido van Rossumc561e5d1994-08-23 13:52:46 +0000562Permission to use, copy, modify, and distribute this software and its
563documentation for any purpose and without fee is hereby granted,
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000564provided that the above copyright notice appear in all copies and that
Guido van Rossumc561e5d1994-08-23 13:52:46 +0000565both that copyright notice and this permission notice appear in
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000566supporting documentation, and that the names of Stichting Mathematisch
567Centrum or CWI not be used in advertising or publicity pertaining to
568distribution of the software without specific, written prior permission.
569
570STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
571THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
572FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
573FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
574WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
575ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
576OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000577----------------------------------------------------------------------
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000578
579
Guido van Rossumfaf681a1996-06-20 14:32:08 +0000580--Guido van Rossum (home page: http://www.python.org/~guido/)