blob: 9d19b85eea59acf571a8237e39898e1c306f0c12 [file] [log] [blame]
Guido van Rossumefce0301997-12-31 00:04:54 +00001This is Python release 1.5
2==========================
Guido van Rossumfaf681a1996-06-20 14:32:08 +00003
Guido van Rossumefce0301997-12-31 00:04:54 +00004This version is officially released on Wednesday, December 31, 1997.
5It doesn't differ very much from 1.5b2 (released on Dec. 12).
Guido van Rossum79808261997-12-11 18:01:47 +00006
7
Guido van Rossum8d7d4ed1996-07-30 21:41:07 +00008What's new in this release?
9---------------------------
Guido van Rossum3ff96dd1996-07-30 18:05:04 +000010
Guido van Rossum66d010a1997-11-26 17:37:31 +000011There's a loooong list of changes since release 1.4 in the file
12Misc/NEWS. Some highlights:
Guido van Rossum33fde571997-05-09 02:40:09 +000013
Guido van Rossum66d010a1997-11-26 17:37:31 +000014 - It's much faster (almost twice for the Lib/test/pystone.py
15 benchmark.)
Guido van Rossumb06df271997-08-05 21:50:20 +000016
Guido van Rossum66d010a1997-11-26 17:37:31 +000017 - There is now an assert statement: ``assert <condition>'' or
18 ``assert <condition>, <errormessage>''. It raises AssertionError if
19 the condition evaluates to false. The default error message is
20 empty; the source text of the assertion statement is printed as part
21 of the traceback.
22
23 - There is now built-in support for importing hierarchical module
24 names (e.g. "import spam.ham.eggs"); ni is declared obsolete. Note
25 that the built-in package support is somewhat simpler (no __ and
26 __domain__) and differs in one crucial aspect: __init__.py is
27 required, and loaded in the package's namespace instead of as a
28 submodule. For more information, see
29 http://grail.cnri.reston.va.us/python/essays/packages.html.
30
31 - The new "re" module (Perl style regular expressions) is here. It
32 is based on Philip Hazel's pcre code; the Python interfaces were put
Guido van Rossumb7f454d1997-12-02 19:44:31 +000033 together by Andrew Kuchling, Tim Peters and Jeffrey Ollie. The
34 regex module is declared obsolete.
Guido van Rossum66d010a1997-11-26 17:37:31 +000035
36 - In support of the re module, a new form of string literals is
37 introduced, "raw strings": e.g. r"\n" is equal to "\\n".
38
39 - All standard exceptions and most exceptions defined in standard
40 extension modules are now classes. Use python -X to revert back to
41 string exceptions. See
42 http://grail.cnri.reston.va.us/python/essays/stdexceptions.html
43 for more info.
44
45 - Comparisons can now raise exceptions (previously, exceptions
46 occuring during comparisons were swept under the rug).
47
48 - New dictionary methods: .clear(), .copy(), .update(), .get(). The
49 first two are obvious; d1.update(d2) is equivalent to the for loop
50 ``for k in d2.keys(): d1[k] = d2[k]''; and d.get(k) returns d[k] if
51 it exists and None (or the optional second argument) if not.
52
53 - There is a new regression test harness, which tests many more
Guido van Rossum82536711997-11-26 21:20:51 +000054 modules. (To run the tests, do "import test.autotest".)
Guido van Rossum66d010a1997-11-26 17:37:31 +000055
56 - The interpreter is much smarter about the initial value for
57 sys.path; you can control it easier using $PYTHONHOME (see the usage
58 message, e.g. try ``python -h''). In most situations, the
59 interpreter can be installed at an arbitrary location without having
60 to recompile.
61
62 - The build process now builds a single library (libpython1.5.a)
63 which contains everything except for the main() entry point. This
64 makes life much easier for applications that embed Python.
65
66 - There is much better support for embedding, including threads,
67 multiple interpreters(!), uninitialization, and access to the global
68 interpreter lock.
69
70 - There is a -O option that removes SET_LINENO instructions, assert
71 statements and code prefixed with ``if __debug__: ...''. (It still
72 only makes a few percent difference, so don't get all worked up
73 about this.)
74
75 - The Grand Renaming is completed: all linker-visible symbols
76 defined by Python now have a "Py" or "_Py" prefix, and the same is
77 true for most macros and typedefs.
78
Guido van Rossumefce0301997-12-31 00:04:54 +000079If you previously downloaded 1.5b2, here are the most relevant changes
Guido van Rossum79808261997-12-11 18:01:47 +000080since then (of course all known bugs have been fixed, leaks plugged,
Guido van Rossumefce0301997-12-31 00:04:54 +000081and quite a bit of documentation has been added -- including doc
82strings here and there). The full list of changes since 1.5b2 is
83presented at the end of the Misc/NEWS file.
Guido van Rossum66d010a1997-11-26 17:37:31 +000084
Guido van Rossumefce0301997-12-31 00:04:54 +000085 - Thanks to all who contributed doc strings or other documentation!
Guido van Rossumb06df271997-08-05 21:50:20 +000086
Guido van Rossumefce0301997-12-31 00:04:54 +000087 - Many small improvements to the quality of the documentation, both
88 PostScript, HTML and even Emacs info (library manual only).
Guido van Rossumb06df271997-08-05 21:50:20 +000089
Guido van Rossumefce0301997-12-31 00:04:54 +000090 - New module telnetlib.py.
Guido van Rossumb06df271997-08-05 21:50:20 +000091
Guido van Rossumefce0301997-12-31 00:04:54 +000092 - New tool versioncheck.
Guido van Rossumb06df271997-08-05 21:50:20 +000093
Guido van Rossumefce0301997-12-31 00:04:54 +000094 - Two bugs with ftp URLs fixed in urllib.py.
Guido van Rossum64773801997-11-26 17:07:02 +000095
Guido van Rossumefce0301997-12-31 00:04:54 +000096 - Fixed infinite recursion when printing __builtins__.
Guido van Rossum64773801997-11-26 17:07:02 +000097
Guido van Rossumefce0301997-12-31 00:04:54 +000098 - A bunch of small problems fixed in Tkinter.py.
Guido van Rossum64773801997-11-26 17:07:02 +000099
Guido van Rossumefce0301997-12-31 00:04:54 +0000100 - Ported zlibmodule.c and bsddbmodule.c to NT.
Guido van Rossum64773801997-11-26 17:07:02 +0000101
Guido van Rossumefce0301997-12-31 00:04:54 +0000102 - Better NT support in tempfile.py.
Guido van Rossum79808261997-12-11 18:01:47 +0000103
Guido van Rossumefce0301997-12-31 00:04:54 +0000104 - Fixed 4294967296==0.
Guido van Rossum79808261997-12-11 18:01:47 +0000105
Guido van Rossumefce0301997-12-31 00:04:54 +0000106 - Latest re and pcre modules (versions of Dec. 22).
Guido van Rossum64773801997-11-26 17:07:02 +0000107
Guido van Rossum64773801997-11-26 17:07:02 +0000108
109If you don't read instructions
110------------------------------
111
112Congratulations on getting this far. :-)
113
114To start building right away (on UNIX): type "./configure" in the
115current directory and when it finishes, type "make". The section
116Build Instructions below is still recommended reading. :-)
Guido van Rossum3ff96dd1996-07-30 18:05:04 +0000117
118
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000119What is Python anyway?
120----------------------
121
122Python is an interpreted object-oriented programming language, and is
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000123often compared to Tcl, Perl, Java or Scheme. To find out more, point
124your browser to http://www.python.org/.
125
126
127A modest plug
128-------------
129
130************************************************************************
131* Without your support, I won't be able to continue to work on Python! *
132************************************************************************
133
134If you use Python, please consider joining the Python Software
135Activity (PSA). See http://www.python.org/psa/.
136
137Organizations that make heavy use of Python are especially encouraged
138to become corporate members!
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000139
140
Guido van Rossumf501b4e1996-10-25 14:32:48 +0000141How do I learn Python?
142----------------------
143
144The official tutorial is still a good place to start (in the Doc
145directory as tut.tex; and http://www.python.org/doc/tut/tut.html).
146Aaron Watters wrote a second tutorial, that may be more accessible for
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000147some: http://www.wcmh.com/uworld/archives/95/tutorial/005.html. Both
148tutorials (as well as most other sources) assume that you already know
149how to program -- if you'd like to write "Python for Dummies", I know
150a publisher who would like to talk to you...
Guido van Rossumf501b4e1996-10-25 14:32:48 +0000151
Guido van Rossum8d90f9d1997-05-22 20:13:25 +0000152There are now also several books on Python. While these are still
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000153based on Python 1.3 or 1.4, the information in them is still 99%
154correct. The first two books, both first published in October 1996
155and both including a CD-ROM, form excellent companions to each other:
Guido van Rossumf501b4e1996-10-25 14:32:48 +0000156
157 Internet Programming with Python
158 by Aaron Watters, Guido van Rossum, and James Ahlstrom
159 MIS Press/Henry Holt publishers
160 ISBN: 1-55851-484-8
161
162 Programming Python
163 by Mark Lutz
164 O'Reilly & Associates
165 ISBN: 1-56592-197-6
166
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000167If you can read German, try:
Guido van Rossum8d90f9d1997-05-22 20:13:25 +0000168
169 Das Python-Buch
170 by Martin von Loewis and Nils Fischbeck
171 Addison-Wesley-Longman, 1997
172 ISBN: 3-8273-1110-1
173
Guido van Rossumf501b4e1996-10-25 14:32:48 +0000174
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000175Copyright issues
176----------------
177
178Python is COPYRIGHTED but free to use for all. See the full copyright
Guido van Rossum64773801997-11-26 17:07:02 +0000179notice at the end of this file and in the file Misc/COPYRIGHT.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000180
181The Python distribution is *not* affected by the GNU Public Licence
182(GPL). There are interfaces to some GNU code but these are entirely
Guido van Rossum64773801997-11-26 17:07:02 +0000183optional and no GNU code is distributed with Python.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000184
Guido van Rossum627b2d71993-12-24 10:39:16 +0000185
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000186Build instructions
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000187==================
Guido van Rossum627b2d71993-12-24 10:39:16 +0000188
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000189Before you can build Python, you must first configure it.
190Fortunately, the configuration and build process has been streamlined
191for most Unix installations, so all you have to do is type a few
192commands, optionally edit one file, and sit back. There are some
193platforms where things are not quite as smooth; see the platform
194specific notes below. If you want to build for multiple platforms
195sharing the same source tree, see the section on VPATH below.
Guido van Rossum627b2d71993-12-24 10:39:16 +0000196
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000197You start by running the script "./configure", which figures out your
198system configuration and creates several Makefiles. (It takes a
199minute or two -- please be patient!) When it's done, you are ready to
200run make. You may want to pass options to the configure script -- see
201the section below on configuration options and variables.
202
203To build Python, you normally type "make" in the toplevel directory.
204This will recursively run make in each of the subdirectories Parser,
205Objects, Python and Modules, creating a library file in each one. The
206executable of the interpreter is built in the Modules subdirectory and
207moved up here when it is built. If you want or need to, you can also
208chdir into each subdirectory in turn and run make there manually (do
209the Modules subdirectory last!).
210
211Once you have built an interpreter, see the subsections below on
212testing, configuring additional modules, and installation. If you run
213in trouble, see the next section.
Guido van Rossum627b2d71993-12-24 10:39:16 +0000214
Guido van Rossum0a516c91994-09-12 10:58:40 +0000215
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000216Troubleshooting
217---------------
Guido van Rossum627b2d71993-12-24 10:39:16 +0000218
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000219See also the platform specific notes in the next section.
220
Guido van Rossumfaf681a1996-06-20 14:32:08 +0000221If recursive makes fail, try invoking make as "make MAKE=make".
222
Guido van Rossum49523691997-08-15 18:30:14 +0000223If you run into other trouble, see section 3 of the FAQ
224(http://grail.cnri.reston.va.us/cgi-bin/faqw.py or
225http://www.python.org/doc/FAQ.html) for hints on what can go wrong,
226and how to fix it.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000227
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000228If you rerun the configure script with different options, remove all
229object files by running "make clean" before rebuilding. Believe it or
230not, "make clean" sometimes helps to clean up other inexplicable
231problems as well. Try it before sending in a bug report!
232
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000233If the configure script fails or doesn't seem to find things that
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000234should be there, inspect the config.log file. When you fix a
235configure problem, be sure to remove config.cache!
236
237If you get a warning for every file about the -Olimit option being no
238longer supported, you can ignore it. There's no foolproof way to know
239whether this option is needed; all I can do is test whether it is
240accepted without error. On some systems, e.g. older SGI compilers, it
241is essential for performance (specifically when compiling ceval.c,
242which has more basic blocks than the default limit of 1000). If the
243warning bothers you, edit the Makefile to remove "-Olimit 1500" from
244the OPT variable.
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000245
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000246
247Platform specific notes
248-----------------------
249
Guido van Rossum0447a321995-10-08 01:22:33 +0000250(Some of these may no longer apply. If you find you can build Python
251on these platforms without the special directions mentioned here, let
252me know so I can remove them!)
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000253
Guido van Rossumc0be2f51997-10-08 05:05:28 +000025464-bit platforms: The modules audioop, imageop and rgbimg don't work.
255 Don't try to enable them in the Modules/Setup file. They
256 contain code that is quite wordsize sensitive. (If you have a
257 fix, let me know!)
258
Guido van Rossum4462e931997-01-22 21:00:32 +0000259Solaris: When using Sun's C compiler with threads, at least on Solaris
260 2.5.1, you need to add the "-mt" compiler option (the simplest
261 way is probably to specify the compiler with this option as
262 the "CC" environment variable when running the configure
263 script).
264
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000265Linux: On Linux version 1.x, once you've built Python, use it to run
266 the regen script in the Lib/linux1 directory. Apparently
267 the files as distributed don't match the system headers on
268 some Linux versions. (The "h2py" command refers to
269 Tools/scripts/h2py.py.) The modules distributed for Linux 2.x
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000270 should be okay. Shared library support now works by default
Guido van Rossum4462e931997-01-22 21:00:32 +0000271 on ELF-based x86 Linux systems. (Note: when you change the
272 status of a module from static to shared, you must remove its
273 .o file or do a "make clean".)
274
Fred Drake61280911997-12-08 14:10:40 +0000275 Under RedHat Linux 5.0, if upgraded from a previous version,
276 remove the LinuxThreads packages. This is needed because
277 LinuxThreads conflicts with the new thread support provided by
278 glibc. Before running Python's configure script, use the
279 following commands as root (version numbers may differ; these
280 are from a stock 4.2 install):
281
282 % rpm -qa | grep ^linuxthread
283 linuxthreads-0.5-1
284 linuxthreads-devel-0.5-1
285 % rpm -e linuxthreads linuxthreads-devel
286
287 While Python only needs this to be done to allow thread
288 support to be included, the conflicts these packages create
289 with the new glibc may cause other packages which use threads
290 to fail as well, so their removal is a good idea regardless of
291 how you configure python.
292
293 Also under RedHat Linux 5.0, the crypt module now needs the
294 -lcrypt option. Uncomment this flag in Modules/Setup, or
295 comment out the crypt module in the same file.
296
Guido van Rossum6ae5d3d1997-05-14 21:39:05 +0000297DEC Unix: When enabling threads, use --with-dec-threads, not
Guido van Rossum4462e931997-01-22 21:00:32 +0000298 --with-thread.
Guido van Rossum8eca2c21996-02-14 18:37:46 +0000299
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000300AIX: A complete overhaul of the shared library support is now in
Guido van Rossumcbfcb171997-10-20 22:57:00 +0000301 place. See Misc/AIX-NOTES for some notes on how it's done.
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000302
Guido van Rossum6ae5d3d1997-05-14 21:39:05 +0000303 WARNING! In some versions of AIX, you get errors about
Guido van Rossuma3b4b611996-07-21 02:48:16 +0000304 Invalid Indent when running the Python test set. This appears
305 to be a bug in the AIX compiler. Rebuild Parser/tokenizer.c
Guido van Rossum6ae5d3d1997-05-14 21:39:05 +0000306 using OPT="" or OPT=-g, or use gcc. According to the latest
307 reports, it seems this compiler bug is still present in 4.2.1.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000308
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000309Minix: When using ack, use "CC=cc AR=aal RANLIB=: ./configure"!
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000310
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000311SCO: 1) Everything works much better if you add -U__STDC__ to the
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000312 defs. This is because all the SCO header files are broken.
Guido van Rossum64773801997-11-26 17:07:02 +0000313 Anything that isn't mentioned in the C standard is
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000314 conditionally excluded when __STDC__ is defined.
315
316 2) Due to the U.S. export restrictions, SCO broke the crypt
317 stuff out into a separate library, libcrypt_i.a so the LIBS
318 needed be set to:
319
320 LIBS=' -lsocket -lcrypt_i'
321
Guido van Rossuma3b4b611996-07-21 02:48:16 +0000322 3) According to at least one report, the above apply only to
323 SCO 3 -- Python builds out of the box on SCO 5.
324
Guido van Rossum64773801997-11-26 17:07:02 +0000325SunOS 4.x: When using the standard "cc" compiler, certain modules may
326
327 not be compilable because they use non-K&R syntax. You should
328 be able to get a basic Python interpreter by commenting out
329 such modules in the Modules/Setup file, but I really recommend
330 using gcc.
331
332 When using the SunPro C compiler, you may want to use the
333 '-Xa' option instead of '-Xc', to enable some needed non-ANSI
334 Sunisms.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000335
Guido van Rossumcc55c2d1996-10-21 15:14:27 +0000336NeXT: To build fat binaries, use the --with-next-archs switch
337 described below.
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000338
Guido van Rossumb7f454d1997-12-02 19:44:31 +0000339QNX: Chris Herborth (chrish@qnx.com) writes:
340 configure works best if you use GNU bash; a port is available on
341 ftp.qnx.com in /usr/free. I used the following process to build,
342 test and install Python 1.5 under QNX:
343
Guido van Rossumb1d368c1997-12-17 21:08:34 +0000344 1) SHELL=/usr/local/bin/bash CC=cc CFLAGS="-5 -O" RANLIB=: \
Guido van Rossumb7f454d1997-12-02 19:44:31 +0000345 bash ./configure --verbose --without-gcc --with-libm=""
346
347 2) copy Modules/Setup.in to Modules/Setup; edit Modules/Setup to
348 activate everything that makes sense for your system... tested
349 here at QNX with the following modules:
350
351 regex reop pcre posix signal readline array cmath math strop
352 struct time operator _locale fcntl pwd grp crypt select socket
353 errno termios audioop imageop rgbimg md5 timing rotor syslog
Guido van Rossumb1d368c1997-12-17 21:08:34 +0000354 new gdbm soundex binascii parser cStringIO cPickle zlib curses
Guido van Rossumb7f454d1997-12-02 19:44:31 +0000355
356 3) SHELL=/usr/local/bin/bash make SHELL=/usr/local/bin/bash
357
358 4) SHELL=/usr/local/bin/bash make SHELL=/usr/local/bin/bash test
359
360 The socket, strftime and possibly gdbm tests might fail in the
361 test harness; going through them by hand shows that they work.
362 A good exercise for the reader: make these work "out of the box".
363
364 5) SHELL=/usr/local/bin/bash make SHELL=/usr/local/bin/bash install
365
366 If you get SIGSEGVs while running Python (I haven't yet, but I've
367 only run small programs and the test cases), you're probably running
368 out of stack; the default 32k could be a little tight. To increase
369 the stack size, edit the Makefile in the Modules directory to read:
Guido van Rossum40d63581997-08-14 19:45:30 +0000370 LDFLAGS = -N 48k
371
Guido van Rossum1bf0bf41997-08-20 23:50:51 +0000372Cray T3E: Konrad Hinsen writes:
373 1) Don't use gcc. It compiles Python/graminit.c into something that
374 the Cray assembler doesn't like. Cray's cc seems to work fine.
375 2) Uncomment modules md5 (won't compile) and audioop (will crash
376 the interpreter during the test suite).
377 If you run the test suite, two tests will fail (rotate and binascii),
378 but these are not the modules you'd expect to need on a Cray.
379
Guido van Rossum0078aaf1997-08-21 03:05:11 +0000380SGI: SGI's standard "make" utility (/bin/make or /usr/bin/make)
381 does not check whether a command actually changed the file it
382 is supposed to build. This means that whenever you say "make"
383 it will redo the link step. The remedy is to use SGI's much
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000384 smarter "smake " utility (/usr/sbin/smake), or GNU make. If
385 you set the first line of the Makefile to #!/usr/sbin/smake
386 smake will be invoked by make (likewise for GNU make).
Guido van Rossum0078aaf1997-08-21 03:05:11 +0000387
Guido van Rossum64773801997-11-26 17:07:02 +0000388OS/2: If you are running Warp3 or Warp4 and have IBM's VisualAge C/C++
389 compiler installed, just change into the pc\os2vacpp directory
390 and type NMAKE. Threading and sockets are supported by default
391 in the resulting binaries of PYTHON15.DLL and PYTHON.EXE.
392
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000393
394Configuring additional built-in modules
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000395---------------------------------------
Guido van Rossum19e0c261995-01-17 16:36:34 +0000396
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000397You can configure the interpreter to contain fewer or more built-in
398modules by editing the file Modules/Setup. This file is initially
399copied (when the toplevel Makefile makes Modules/Makefile for the
400first time) from Setup.in; if it does not exist yet, make a copy
401yourself. Never edit Setup.in -- always edit Setup. Read the
402comments in the file for information on what kind of edits you can
403make. When you have edited Setup, Makefile and config.c in Modules
404will automatically be rebuilt the next time you run make in the
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000405toplevel directory. (When working inside the Modules directory, use
406"make Makefile; make".)
Guido van Rossum627b2d71993-12-24 10:39:16 +0000407
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000408The default collection of modules should build on any Unix system, but
409many optional modules should work on all modern Unices (e.g. try dbm,
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000410nis, termios, timing, syslog, curses, new, soundex, parser). Often
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000411the quickest way to determine whether a particular module works or not
412is to see if it will build: enable it in Setup, then if you get
413compilation or link errors, disable it -- you're missing support.
414
415On SGI IRIX, there are modules that interface to many SGI specific
416system libraries, e.g. the GL library and the audio hardware.
417
418For SunOS and Solaris, enable module "sunaudiodev" to support the
419audio device.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000420
Guido van Rossum4462e931997-01-22 21:00:32 +0000421In addition to the file Setup, you can also edit the file Setup.local.
422(the makesetup script processes both). You may find it more
423convenient to edit Setup.local and leave Setup alone. Then, when
424installing a new Python version, you can copy your old Setup.local
425file.
426
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000427
428Setting the optimization/debugging options
429------------------------------------------
430
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000431If you want or need to change the optimization/debugging options for
432the C compiler, assign to the OPT variable on the toplevel make
433command; e.g. "make OPT=-g" will build a debugging version of Python
434on most platforms. The default is OPT=-O; a value for OPT in the
435environment when the configure script is run overrides this default
436(likewise for CC; and the initial value for LIBS is used as the base
437set of libraries to link with).
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000438
439
440Testing
441-------
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000442
443To test the interpreter that you have just built, type "make test".
Guido van Rossum6ae5d3d1997-05-14 21:39:05 +0000444This runs the test set twice (once with no compiled files, once with
445the compiled files left by the previous test run). The test set
446produces some output. You can generally ignore the messages about
447skipped tests due to an optional feature that can't be imported (if
448you want to test those modules, edit Modules/Setup to configure them).
449If a messages is printed about a failed test or a traceback or core
Guido van Rossum24df6841997-12-30 04:32:30 +0000450dump is produced, something's wrong. On some Linux systems (those
451that are not yet using glibc 6), test_strftime fails due to a
452non-standard-compliant implementation of strftime() in the C library.
453Please ignore this, or upgrade to glibc version 6.
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000454
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000455IMPORTANT: If the tests fail and you decide to mail a bug report,
456*don't* include the output of "make test". It is useless. Run the
Guido van Rossum6ae5d3d1997-05-14 21:39:05 +0000457test that fails manually, as follows:
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000458
Guido van Rossum6ae5d3d1997-05-14 21:39:05 +0000459 python ../Lib/test/test_whatever.py
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000460
461(substituting the top of the source tree for .. if you built in a
Guido van Rossum6ae5d3d1997-05-14 21:39:05 +0000462different directory). This runs the test in verbose mode.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000463
464
465Installing
466----------
467
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000468To install the Python binary, library modules, shared library modules
469(see below), include files, configuration files, and the manual page,
Guido van Rossum64773801997-11-26 17:07:02 +0000470just type
471
472 make install
473
474This will install all platform-independent files in subdirectories the
475directory given with the --prefix option to configure or the 'prefix'
476Make variable (default /usr/local), and all binary and other
477platform-specific files in subdirectories if the directory given by
478--exec-prefix or the 'exec_prefix' Make variable (defaults to the
479--prefix directory).
480
481All subdirectories created will have Python's version number in their
482name, e.g. the library modules are installed in
483"/usr/local/lib/python1.5/" by default. The Python binary is
484installed as "python1.5" and a hard link named "python" is created.
485The only file not installed with a version number in its name is the
486manual page, installed as "/usr/local/man/man1/python.1" by default.
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000487
Guido van Rossum49523691997-08-15 18:30:14 +0000488If you have a previous installation of a pre-1.5 Python that you don't
Guido van Rossum64773801997-11-26 17:07:02 +0000489want to replace yet, use
490
491 make altinstall
492
493This installs the same set of files as "make install" except it
494doesn't create the hard link to "python1.5" named "python" and it
495doesn't install the manual page at all.
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000496
497The only thing you may have to install manually is the Python mode for
498Emacs. (But then again, more recent versions of Emacs may already
499have it!) This is the file Misc/python-mode.el; follow the
500instructions that came with Emacs for installation of site specific
501files.
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000502
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000503
504Configuration options and variables
505-----------------------------------
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000506
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000507Some special cases are handled by passing options to the configure
508script.
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000509
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000510WARNING: if you rerun the configure script with different options, you
511must run "make clean" before rebuilding. Exceptions to this rule:
512after changing --prefix or --exec-prefix, all you need to do is remove
Guido van Rossumb06df271997-08-05 21:50:20 +0000513Modules/getpath.o.
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000514
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000515--with(out)-gcc: The configure script uses gcc (the GNU C compiler) if
516 it finds it. If you don't want this, or if this compiler is
517 installed but broken on your platform, pass the option
518 --without-gcc. You can also pass "CC=cc" (or whatever the
519 name of the proper C compiler is) in the environment, but the
520 advantage of using --without-gcc is that this option is
521 remembered by the config.status script for its --recheck
522 option.
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000523
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000524--prefix, --exec-prefix: If you want to install the binaries and the
525 Python library somewhere else than in /usr/local/{bin,lib},
526 you can pass the option --prefix=DIRECTORY; the interpreter
527 binary will be installed as DIRECTORY/bin/python and the
528 library files as DIRECTORY/lib/python/*. If you pass
529 --exec-prefix=DIRECTORY (as well) this overrides the
530 installation prefix for architecture-dependent files (like the
531 interpreter binary). Note that --prefix=DIRECTORY also
532 affects the default module search path (sys.path), when
533 Modules/config.c is compiled. Passing make the option
534 prefix=DIRECTORY (and/or exec_prefix=DIRECTORY) overrides the
535 prefix set at configuration time; this may be more convenient
536 than re-running the configure script if you change your mind
537 about the install prefix...
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000538
Guido van Rossumb06df271997-08-05 21:50:20 +0000539--with-readline: This option is no longer supported. To use GNU
540 readline, enable module "readline" in the Modules/Setup file.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000541
Guido van Rossumfaf681a1996-06-20 14:32:08 +0000542--with-thread: On most Unix systems, you can now use multiple threads.
Guido van Rossum4462e931997-01-22 21:00:32 +0000543 To enable this, pass --with-thread. (--with-threads is an
544 alias.) If the library required for threads lives in a
Guido van Rossum8d90f9d1997-05-22 20:13:25 +0000545 peculiar place, you can use --with-thread=DIRECTORY. NOTE:
546 you must also enable the thread module by uncommenting it in
547 the Modules/Setup file. (Threads aren't enabled automatically
548 because there are run-time penalties when support for them is
549 compiled in even if you don't use them.) IMPORTANT: run "make
550 clean" after changing (either enabling or disabling) this
551 option! Note: for DEC Unix use --with-dec-threads instead.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000552
553--with-sgi-dl: On SGI IRIX 4, dynamic loading of extension modules is
554 supported by the "dl" library by Jack Jansen, which is
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000555 ftp'able from ftp://ftp.cwi.nl/pub/dynload/dl-1.6.tar.Z.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000556 This is enabled (after you've ftp'ed and compiled the dl
557 library!) by passing --with-sgi-dl=DIRECTORY where DIRECTORY
558 is the absolute pathname of the dl library. (Don't bother on
559 IRIX 5, it already has dynamic linking using SunOS style
560 shared libraries.) Support for this feature is deprecated.
561
562--with-dl-dld: Dynamic loading of modules is rumoured to be supported
563 on some other systems: VAX (Ultrix), Sun3 (SunOS 3.4), Sequent
564 Symmetry (Dynix), and Atari ST. This is done using a
565 combination of the GNU dynamic loading package
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000566 (ftp://ftp.cwi.nl/pub/dynload/dl-dld-1.1.tar.Z) and an
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000567 emulation of the SGI dl library mentioned above (the emulation
568 can be found at
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000569 ftp://ftp.cwi.nl/pub/dynload/dld-3.2.3.tar.Z). To
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000570 enable this, ftp and compile both libraries, then call the
571 configure passing it the option
572 --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY where DL_DIRECTORY is
573 the absolute pathname of the dl emulation library and
574 DLD_DIRECTORY is the absolute pathname of the GNU dld library.
575 (Don't bother on SunOS 4 or 5, they already have dynamic
576 linking using shared libraries.) Support for this feature is
577 deprecated.
578
579--with-libm, --with-libc: It is possible to specify alternative
580 versions for the Math library (default -lm) and the C library
581 (default the empty string) using the options
582 --with-libm=STRING and --with-libc=STRING, respectively. E.g.
583 if your system requires that you pass -lc_s to the C compiler
584 to use the shared C library, you can pass --with-libc=-lc_s.
585 These libraries are passed after all other libraries, the C
586 library last.
Guido van Rossum3ff96dd1996-07-30 18:05:04 +0000587
588--with-next-archs='arch1 arch2': Under NEXTSTEP, this will build
589 all compiled binaries with the architectures listed. Includes
590 correctly setting the target architecture specific resource
Guido van Rossumcc55c2d1996-10-21 15:14:27 +0000591 directory. (This option is not supported on other platforms.)
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000592
Guido van Rossumd02ba451996-07-31 17:36:01 +0000593--with-libs='libs': Add 'libs' to the LIBS that the python
594 linked against.
595
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000596
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000597Building for multiple architectures (using the VPATH feature)
598-------------------------------------------------------------
599
600If your file system is shared between multiple architectures, it
601usually is not necessary to make copies of the sources for each
602architecture you want to support. If the make program supports the
603VPATH feature, you can create an empty build directory for each
604architecture, and in each directory run the configure script (on the
605appropriate machine with the appropriate options). This creates the
606necessary subdirectories and the Makefiles therein. The Makefiles
607contain a line VPATH=... which points to directory containing the
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000608actual sources. (On SGI systems, use "smake -J1" instead of "make" if
609you use VPATH -- don't try gnumake.)
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000610
611For example, the following is all you need to build a minimal Python
612in /usr/tmp/python (assuming ~guido/src/python is the toplevel
613directory and you want to build in /usr/tmp/python):
614
615 $ mkdir /usr/tmp/python
616 $ cd /usr/tmp/python
617 $ ~guido/src/python/configure
618 [...]
619 $ make
620 [...]
621 $
622
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000623Note that Modules/Makefile copies the original Setup file to the build
624directory if it finds no Setup file there. This means that you can
625edit the Setup file for each architecture independently. For this
626reason, subsequent changes to the original Setup file are not tracked
627automatically, as they might overwrite local changes. To force a copy
628of a changed original Setup file, delete the target Setup file. (The
629makesetup script supports multiple input files, so if you want to be
630fancy you can change the rules to create an empty Setup.local if it
631doesn't exist and run it with arguments $(srcdir)/Setup Setup.local;
632however this assumes that you only need to add modules.)
633
634
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000635Building on non-UNIX systems
636----------------------------
637
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000638Building Python for a PC is now a piece of cake!
Guido van Rossum8d7d4ed1996-07-30 21:41:07 +0000639
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000640Enter the directory "PC" and read the file "readme.txt". Most popular
641non-Unix PC platforms and compilers are supported (Unix ports to the
642PC such as Linux, FreeBSD or Solaris-x86 of course use the standard
643Unix build instructions).
644
645For the Mac, a separate source distribution will be made available,
646for use with the CodeWarrior compiler. If you are interested in Mac
647development, join the PythonMac Special Interest Group
648(http://www.python.org/sigs/pythonmac-sig/, or send email to
649pythonmac-sig-request@python.org).
650
651Of course, there are also binary distributions available for these
652platforms -- see http://www.python.org/python/.
653
654To port Python to a new non-UNIX system, you will have to fake the
655effect of running the configure script manually (for Mac and PC, this
656has already been done for you). A good start is to copy the file
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000657config.h.in to config.h and edit the latter to reflect the actual
658configuration of your system. Most symbols must simply be defined as
6591 only if the corresponding feature is present and can be left alone
660otherwise; however RETSIGTYPE must always be defined, either as int or
661as void, and the *_t type symbols must be defined as some variant of
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000662int if they need to be defined at all.
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000663
664
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000665
666Miscellaneous issues
667====================
668
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000669Documentation
670-------------
671
672All documentation is provided in the subdirectory Doc in the form of
673LaTeX files. In order of importance for new users: Tutorial (tut),
674Library Reference (lib), Language Reference (ref), Extending (ext).
675Especially the Library Reference is of immense value since much of
676Python's power (including the built-in data types and functions!) is
677described here.
678
Guido van Rossumdfcf35d1996-08-26 17:52:09 +0000679To print the documentation from the LaTeX files, chdir into the Doc
680subdirectory, type "make" (let's hope you have LaTeX installed!), and
681send the four resulting PostScript files (tut.ps, lib.ps, ref.ps, and
682ext.ps) to the printer. See the README file there. If you don't have
683LaTeX, you can ftp the PostScript files from the ftp archives (see
684below).
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000685
Guido van Rossumdfcf35d1996-08-26 17:52:09 +0000686All documentation is also available on-line via the Python web site
687(http://www.python.org/, see below). It can also be downloaded
688separately from the ftp archives (see below) in Emacs INFO, HTML or
Guido van Rossum49523691997-08-15 18:30:14 +0000689PostScript form -- see the web site or the FAQ
690(http://grail.cnri.reston.va.us/cgi-bin/faqw.py or
691http://www.python.org/doc/FAQ.html) for more info.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000692
693
694Emacs mode
695----------
696
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000697There's an excellent Emacs editing mode for Python code; see the file
698Misc/python-mode.el. Originally written by the famous Tim Peters, it
699is now maintained by the equally famous Barry Warsaw
700<bwarsaw@cnri.reston.va.us>. The latest version is online at
701ftp://ftp.python.org/pub/emacs/python-mode.el. As you might expect of
702Barry (and even if you don't know what the heck I'm talking about :-),
703a configuration file for his cc-mode.el which selects the style used
704throughout most Python C source files is also provided; see the file
705Misc/ccpy-style.el.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000706
707
Guido van Rossum8d7d4ed1996-07-30 21:41:07 +0000708Web site
709--------
710
711Python's own web site has URL http://www.python.org/. Come visit us!
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000712There are a number of mirrors, listed on the home page -- try a mirror
713that's close you you.
Guido van Rossum8d7d4ed1996-07-30 21:41:07 +0000714
715
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000716Ftp site
717--------
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000718
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000719Python's own ftp site is ftp://ftp.python.org/pub/python/. There are
Guido van Rossum49523691997-08-15 18:30:14 +0000720numerous mirrors; see http://www.python.org/python/Mirrors.html for a
721list of mirror sites.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000722
723
724Newsgroup and mailing list
725--------------------------
726
Guido van Rossumdfcf35d1996-08-26 17:52:09 +0000727There are a newsgroup and a mailing list devoted to Python. The
728newsgroup, comp.lang.python, contains exactly the same messages as the
729mailing list (though not always in the same order, due to the
730mysterious nature of the Usenet news distribution algorithm). To
731subscribe to the mailing list, send mail containing your real name and
732e-mail address to "python-list-request@cwi.nl". Use the same address
733if you want to unsibscribed. (A real person reads these messages, so
734no LISTPROC or Majordomo commands, please, and please be patient --
735normal turn-around time is about one working day.)
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000736
Guido van Rossumdfcf35d1996-08-26 17:52:09 +0000737The Python web site contains a search form that lets you search the
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000738newsgroup archives (and the web site itself). Click on the "search"
Guido van Rossumdfcf35d1996-08-26 17:52:09 +0000739link in the banner menu on any page of http://www.python.org/.
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000740
741
742Bug reports
743-----------
744
Guido van Rossumdfcf35d1996-08-26 17:52:09 +0000745Bugs are best reported to the comp.lang.python newsgroup or the Python
Guido van Rossumcc55c2d1996-10-21 15:14:27 +0000746mailing list -- see the section "Newsgroup and mailing list" above.
Guido van Rossumdfcf35d1996-08-26 17:52:09 +0000747Before posting, check the newsgroup archives (see above) to see if
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000748your bug has already been reported! If you don't want to go public,
Guido van Rossum64773801997-11-26 17:07:02 +0000749send them to me: <guido@python.org>.
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000750
751
752Questions
753---------
754
Guido van Rossum49523691997-08-15 18:30:14 +0000755For help, if you can't find it in the manuals or on the web site, it's
756best to post to the comp.lang.python or the Python mailing list (see
757above). If you specifically don't want to involve the newsgroup or
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000758mailing list, send questions to <python-help@python.org> (a group of
759volunteers which does *not* include me). Because of my work and email
760volume, I'm often be slow in answering questions sent to me directly;
761I prefer to answer questions posted to the newsgroup.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000762
763
764The Tk interface
765----------------
766
767Tk (the user interface component of John Ousterhout's Tcl language) is
768also usable from Python. Since this requires that you first build and
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000769install Tcl/Tk, the Tk interface is not enabled by default. Python
770supports all Tcl/Tk versions from version 7.5/4.1 through 8.0 (and it
771is expected that it will also work with newer versions). Tcl/Tk
Guido van Rossum64773801997-11-26 17:07:02 +00007727.4/4.0 is no longer supported. 8.0 or any later non-alpha non-beta
773release is recommended.
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000774
Guido van Rossum64773801997-11-26 17:07:02 +0000775See http://sunscript.sun.com/ for more info on Tcl/Tk, including the
776on-line manual pages.
777
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000778
779To enable the Python/Tk interface, once you've built and installed
Guido van Rossum64773801997-11-26 17:07:02 +0000780Tcl/Tk, load the file Modules/Setup in your favorite text editor and
781search for the string "_tkinter". Then follow the instructions found
782there. If you have installed Tcl/Tk or X11 in unusual places, you
783will have to edit the first line to fix or add -I and -L options.
784(Also see the general instructions at the top of that file.)
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000785
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000786There is little documentation on how to use Tkinter; however most of
787the Tk manual pages apply quite straightforwardly. Begin with
788fetching the "Tk Lifesaver" document,
789e.g. ftp://ftp.python.org/pub/python/doc/tkinter-doc.tar.gz (a gzipped
790tar file containing a PostScript file) or the on-line version
791http://www.python.org/doc/life-preserver/index.html. Reading the
792Tkinter.py source will reveal most details on how Tkinter calls are
793translated into Tcl code.
794
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000795A more recent introduction to Tkinter programming, by Fredrik Lundh,
796is at http://www.pythonware.com/library/tkinter/introduction/index.htm.
797
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000798There are demos in the Demo/tkinter directory, in the subdirectories
799guido, matt and www (the matt and guido subdirectories have been
800overhauled to use more recent Tkinter coding conventions).
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000801
802Note that there's a Python module called "Tkinter" (capital T) which
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000803lives in Lib/tkinter/Tkinter.py, and a C module called "_tkinter"
804(lower case t and leading underscore) which lives in
805Modules/_tkinter.c. Demos and normal Tk applications only import the
806Python Tkinter module -- only the latter uses the C _tkinter module
807directly. In order to find the C _tkinter module, it must be compiled
808and linked into the Python interpreter -- the _tkinter line in the
809Setup file does this. In order to find the Python Tkinter module,
810sys.path must be set correctly -- the TKPATH assignment in the Setup
811file takes care of this, but only if you install Python properly
812("make install libinstall"). (You can also use dynamic loading for
813the C _tkinter module, in which case you must manually fix up sys.path
814or set $PYTHONPATH for the Python Tkinter module.)
Guido van Rossum84c8c7f1995-08-28 02:44:24 +0000815
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000816
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000817Distribution structure
818----------------------
819
820Most subdirectories have their own README file. Most files have
821comments.
822
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000823Demo/ Demonstration scripts, modules and programs
824Doc/ Documentation (LaTeX sources)
825Grammar/ Input for the parser generator
826Include/ Public header files
827Lib/ Python library modules
828Makefile.in Source from which config.status creates Makefile
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000829Misc/ Miscellaneous useful files
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000830Modules/ Implementation of most built-in modules
831Objects/ Implementation of most built-in object types
Guido van Rossum64773801997-11-26 17:07:02 +0000832PC/ PC porting files (DOS, Windows, OS/2)
833PCbuild/ Directory where you should build for Windows NT/95
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000834Parser/ The parser and tokenizer and their input handling
835Python/ The "compiler" and interpreter
836README The file you're reading now
837Tools/ Some useful programs written in Python
838acconfig.h Additional input for the autoheader program
839config.h.in Source from which config.status creates config.h
840configure Configuration shell script (GNU autoconf output)
841configure.in Configuration specification (GNU autoconf input)
842install-sh Shell script used to install files
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000843
844The following files will (may) be created in the toplevel directory by
845the configuration and build processes:
846
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000847Makefile Build rules
848config.cache cache of configuration variables
849config.h Configuration header
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000850config.log Log from last configure run
851config.status Status from last run of configure script
852libpython1.5.a The library archive
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000853python The executable interpreter
854tags, TAGS Tags files for vi and Emacs
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000855
856
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000857Author's address
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000858================
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000859
860Guido van Rossum
Guido van Rossumfaf681a1996-06-20 14:32:08 +0000861CNRI
8621895 Preston White Drive
Guido van Rossum8d7d4ed1996-07-30 21:41:07 +0000863Reston, VA 20191
Guido van Rossumfaf681a1996-06-20 14:32:08 +0000864USA
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000865
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000866E-mail: guido@cnri.reston.va.us or guido@python.org
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000867
868
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000869
870Copyright notice
871================
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000872
873The Python source is copyrighted, but you can freely use and copy it
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000874as long as you don't change or remove the copyright notice:
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000875
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000876----------------------------------------------------------------------
Guido van Rossumaf5b83e1995-01-04 19:02:35 +0000877Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
878The Netherlands.
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000879
880 All Rights Reserved
881
Guido van Rossumc561e5d1994-08-23 13:52:46 +0000882Permission to use, copy, modify, and distribute this software and its
883documentation for any purpose and without fee is hereby granted,
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000884provided that the above copyright notice appear in all copies and that
Guido van Rossumc561e5d1994-08-23 13:52:46 +0000885both that copyright notice and this permission notice appear in
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000886supporting documentation, and that the names of Stichting Mathematisch
Guido van Rossumf501b4e1996-10-25 14:32:48 +0000887Centrum or CWI or Corporation for National Research Initiatives or
888CNRI not be used in advertising or publicity pertaining to
889distribution of the software without specific, written prior
890permission.
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000891
Guido van Rossumf501b4e1996-10-25 14:32:48 +0000892While CWI is the initial source for this software, a modified version
893is made available by the Corporation for National Research Initiatives
894(CNRI) at the Internet address ftp://ftp.python.org.
895
896STICHTING MATHEMATISCH CENTRUM AND CNRI DISCLAIM ALL WARRANTIES WITH
897REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
898MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH
899CENTRUM OR CNRI BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
900DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
901PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
902TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
903PERFORMANCE OF THIS SOFTWARE.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000904----------------------------------------------------------------------
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000905
906
Guido van Rossumfaf681a1996-06-20 14:32:08 +0000907--Guido van Rossum (home page: http://www.python.org/~guido/)