blob: 519c543e0dd5fda9cd48d276422cdfd959704e75 [file] [log] [blame]
Guido van Rossum91447632000-04-11 17:11:09 +00001This is Python version 1.6
2==========================
3
4There are various alpha and beta versions -- these are distinguishable
5through Include/patchlevel.h or by the name of the top-level directory
6and the tar file.
Guido van Rossum79808261997-12-11 18:01:47 +00007
8
Guido van Rossum8d7d4ed1996-07-30 21:41:07 +00009What's new in this release?
10---------------------------
Guido van Rossum3ff96dd1996-07-30 18:05:04 +000011
Guido van Rossumd0a42e22000-03-31 20:16:45 +000012See http://www.python.org/1.6/.
Guido van Rossum64773801997-11-26 17:07:02 +000013
Guido van Rossum64773801997-11-26 17:07:02 +000014
15If you don't read instructions
16------------------------------
17
18Congratulations on getting this far. :-)
19
20To start building right away (on UNIX): type "./configure" in the
21current directory and when it finishes, type "make". The section
22Build Instructions below is still recommended reading. :-)
Guido van Rossum3ff96dd1996-07-30 18:05:04 +000023
24
Guido van Rossum91cb9d21995-04-10 11:47:38 +000025What is Python anyway?
26----------------------
27
28Python is an interpreted object-oriented programming language, and is
Guido van Rossumc0be2f51997-10-08 05:05:28 +000029often compared to Tcl, Perl, Java or Scheme. To find out more, point
30your browser to http://www.python.org/.
31
32
33A modest plug
34-------------
35
36************************************************************************
37* Without your support, I won't be able to continue to work on Python! *
38************************************************************************
39
40If you use Python, please consider joining the Python Software
41Activity (PSA). See http://www.python.org/psa/.
42
43Organizations that make heavy use of Python are especially encouraged
Guido van Rossumde64eaf1998-10-17 19:44:20 +000044to become corporate members -- or better still, to join the Python
45Consortium (see http://www.python.org/consortium/).
Guido van Rossum91cb9d21995-04-10 11:47:38 +000046
47
Guido van Rossumf501b4e1996-10-25 14:32:48 +000048How do I learn Python?
49----------------------
50
Fred Drake0e6444c1999-05-17 19:35:01 +000051The official tutorial is still a good place to start; see
Guido van Rossumd0a42e22000-03-31 20:16:45 +000052http://www.python.org/doc/ for online and downloadable versions, as
53well as a list of other introductions, and reference documentation.
Guido van Rossumf501b4e1996-10-25 14:32:48 +000054
Guido van Rossumd0a42e22000-03-31 20:16:45 +000055There's a quickly growing set of books on Python. See
56http://www.python.org/psa/bookstore/ for a list.
Guido van Rossum8d90f9d1997-05-22 20:13:25 +000057
Guido van Rossumf501b4e1996-10-25 14:32:48 +000058
Guido van Rossum91cb9d21995-04-10 11:47:38 +000059Copyright issues
60----------------
61
62Python is COPYRIGHTED but free to use for all. See the full copyright
Guido van Rossum64773801997-11-26 17:07:02 +000063notice at the end of this file and in the file Misc/COPYRIGHT.
Guido van Rossum91cb9d21995-04-10 11:47:38 +000064
65The Python distribution is *not* affected by the GNU Public Licence
66(GPL). There are interfaces to some GNU code but these are entirely
Guido van Rossum64773801997-11-26 17:07:02 +000067optional and no GNU code is distributed with Python.
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 +000070Build instructions
Guido van Rossum91cb9d21995-04-10 11:47:38 +000071==================
Guido van Rossum627b2d71993-12-24 10:39:16 +000072
Guido van Rossum6d9cc801996-08-01 17:31:22 +000073Before you can build Python, you must first configure it.
74Fortunately, the configuration and build process has been streamlined
75for most Unix installations, so all you have to do is type a few
76commands, optionally edit one file, and sit back. There are some
77platforms where things are not quite as smooth; see the platform
78specific notes below. If you want to build for multiple platforms
79sharing the same source tree, see the section on VPATH below.
Guido van Rossum627b2d71993-12-24 10:39:16 +000080
Guido van Rossum6d9cc801996-08-01 17:31:22 +000081You start by running the script "./configure", which figures out your
82system configuration and creates several Makefiles. (It takes a
83minute or two -- please be patient!) When it's done, you are ready to
84run make. You may want to pass options to the configure script -- see
85the section below on configuration options and variables.
86
87To build Python, you normally type "make" in the toplevel directory.
88This will recursively run make in each of the subdirectories Parser,
89Objects, Python and Modules, creating a library file in each one. The
90executable of the interpreter is built in the Modules subdirectory and
91moved up here when it is built. If you want or need to, you can also
92chdir into each subdirectory in turn and run make there manually (do
93the Modules subdirectory last!).
94
95Once you have built an interpreter, see the subsections below on
96testing, configuring additional modules, and installation. If you run
97in trouble, see the next section.
Guido van Rossum627b2d71993-12-24 10:39:16 +000098
Guido van Rossum0a516c91994-09-12 10:58:40 +000099
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000100Troubleshooting
101---------------
Guido van Rossum627b2d71993-12-24 10:39:16 +0000102
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000103See also the platform specific notes in the next section.
104
Guido van Rossumfaf681a1996-06-20 14:32:08 +0000105If recursive makes fail, try invoking make as "make MAKE=make".
106
Guido van Rossum49523691997-08-15 18:30:14 +0000107If you run into other trouble, see section 3 of the FAQ
108(http://grail.cnri.reston.va.us/cgi-bin/faqw.py or
109http://www.python.org/doc/FAQ.html) for hints on what can go wrong,
110and how to fix it.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000111
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000112If you rerun the configure script with different options, remove all
113object files by running "make clean" before rebuilding. Believe it or
114not, "make clean" sometimes helps to clean up other inexplicable
115problems as well. Try it before sending in a bug report!
116
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000117If the configure script fails or doesn't seem to find things that
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000118should be there, inspect the config.log file. When you fix a
119configure problem, be sure to remove config.cache!
120
121If you get a warning for every file about the -Olimit option being no
122longer supported, you can ignore it. There's no foolproof way to know
123whether this option is needed; all I can do is test whether it is
124accepted without error. On some systems, e.g. older SGI compilers, it
125is essential for performance (specifically when compiling ceval.c,
126which has more basic blocks than the default limit of 1000). If the
127warning bothers you, edit the Makefile to remove "-Olimit 1500" from
128the OPT variable.
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000129
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000130
131Platform specific notes
132-----------------------
133
Guido van Rossum0447a321995-10-08 01:22:33 +0000134(Some of these may no longer apply. If you find you can build Python
135on these platforms without the special directions mentioned here, let
136me know so I can remove them!)
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000137
Guido van Rossumc0be2f51997-10-08 05:05:28 +000013864-bit platforms: The modules audioop, imageop and rgbimg don't work.
139 Don't try to enable them in the Modules/Setup file. They
140 contain code that is quite wordsize sensitive. (If you have a
141 fix, let me know!)
142
Guido van Rossum4462e931997-01-22 21:00:32 +0000143Solaris: When using Sun's C compiler with threads, at least on Solaris
144 2.5.1, you need to add the "-mt" compiler option (the simplest
145 way is probably to specify the compiler with this option as
146 the "CC" environment variable when running the configure
147 script).
148
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000149Linux: On Linux version 1.x, once you've built Python, use it to run
150 the regen script in the Lib/linux1 directory. Apparently
151 the files as distributed don't match the system headers on
152 some Linux versions. (The "h2py" command refers to
153 Tools/scripts/h2py.py.) The modules distributed for Linux 2.x
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000154 should be okay. Shared library support now works by default
Guido van Rossum4462e931997-01-22 21:00:32 +0000155 on ELF-based x86 Linux systems. (Note: when you change the
156 status of a module from static to shared, you must remove its
157 .o file or do a "make clean".)
158
Fred Drake61280911997-12-08 14:10:40 +0000159 Under RedHat Linux 5.0, if upgraded from a previous version,
160 remove the LinuxThreads packages. This is needed because
161 LinuxThreads conflicts with the new thread support provided by
162 glibc. Before running Python's configure script, use the
163 following commands as root (version numbers may differ; these
164 are from a stock 4.2 install):
165
166 % rpm -qa | grep ^linuxthread
167 linuxthreads-0.5-1
168 linuxthreads-devel-0.5-1
169 % rpm -e linuxthreads linuxthreads-devel
170
171 While Python only needs this to be done to allow thread
172 support to be included, the conflicts these packages create
173 with the new glibc may cause other packages which use threads
174 to fail as well, so their removal is a good idea regardless of
175 how you configure python.
176
Guido van Rossumfe23ad71999-04-12 19:01:45 +0000177 More recently, a problem with threads and fork() was tracked
178 down to a bug in the pthreads code in glibc version 2.0.5;
179 glibc version 2.0.7 solves the problem. This causes the
180 popen2 test to fail; problem and solution reported by Pablo
181 Bleyer.
182
Fred Drake61280911997-12-08 14:10:40 +0000183 Also under RedHat Linux 5.0, the crypt module now needs the
184 -lcrypt option. Uncomment this flag in Modules/Setup, or
185 comment out the crypt module in the same file.
186
Guido van Rossum59230501999-06-21 20:51:46 +0000187FreeBSD 3.x and probably platforms with NCurses that use libmytinfo or
188 similar: When using cursesmodule, the linking is not done in
189 the correct order with the defaults. Remove "-ltermcap" from
190 the readline entry in Setup, and use as curses entry: "curses
191 cursesmodule.c -lmytinfo -lncurses -ltermcap" - "mytinfo" (so
192 called on FreeBSD) should be the name of the auxiliary library
193 required on your platform. Normally, it would be linked
194 automatically, but not necessarily in the correct order.
195
Guido van Rossum6ae5d3d1997-05-14 21:39:05 +0000196DEC Unix: When enabling threads, use --with-dec-threads, not
Guido van Rossum9ac9a261998-02-16 22:19:21 +0000197 --with-thread. When using GCC, it is possible to get an
198 internal compiler error if optimization is used. This was
199 reported for GCC 2.7.2.3 on selectmodule.c. Manually compile
200 the affected file without optimization to solve the problem.
Guido van Rossum8eca2c21996-02-14 18:37:46 +0000201
Guido van Rossume1cdb161999-04-10 16:04:07 +0000202DEC Ultrix: compile with GCC to avoid bugs in the native compiler,
203 and pass SHELL=/bin/sh5 to Make when installing.
204
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000205AIX: A complete overhaul of the shared library support is now in
Guido van Rossumcbfcb171997-10-20 22:57:00 +0000206 place. See Misc/AIX-NOTES for some notes on how it's done.
Guido van Rossum9ac9a261998-02-16 22:19:21 +0000207 (The optimizer bug reported at this place in previous releases
208 has been worked around by a minimal code change.)
Guido van Rossumed7f9e21999-11-16 16:03:03 +0000209 In addition, Gary Duzan has a hint for C++ users: to enable
210 full C++ module support, set CC="xlC" (or CC="xlC_r" for thread
211 support in AIX 4.2.1).
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000212
Guido van Rossum59a88f41999-04-12 18:16:09 +0000213HP-UX: Please read the file Misc/HPUX-NOTES for shared libraries.
214 When using threading, you may have to add -D_REENTRANT to the
215 OPT variable in the top-level Makefile; reported by Pat Knight
216 this seems to make a difference (at least for HP-UX 10.20)
217 even though config.h defines it.
Guido van Rossum2094e041998-05-14 15:47:35 +0000218
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000219Minix: When using ack, use "CC=cc AR=aal RANLIB=: ./configure"!
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000220
Guido van Rossuma16e2751998-04-13 20:14:05 +0000221SCO: The following only apply to SCO 3; Python builds out of the box
222 on SCO 5 (or so I've heard).
223
224 1) Everything works much better if you add -U__STDC__ to the
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000225 defs. This is because all the SCO header files are broken.
Guido van Rossum64773801997-11-26 17:07:02 +0000226 Anything that isn't mentioned in the C standard is
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000227 conditionally excluded when __STDC__ is defined.
228
229 2) Due to the U.S. export restrictions, SCO broke the crypt
230 stuff out into a separate library, libcrypt_i.a so the LIBS
231 needed be set to:
232
233 LIBS=' -lsocket -lcrypt_i'
234
Guido van Rossuma16e2751998-04-13 20:14:05 +0000235SunOS 4.x: When using the standard "cc" compiler, certain modules may
Guido van Rossum64773801997-11-26 17:07:02 +0000236 not be compilable because they use non-K&R syntax. You should
237 be able to get a basic Python interpreter by commenting out
238 such modules in the Modules/Setup file, but I really recommend
239 using gcc.
240
241 When using the SunPro C compiler, you may want to use the
242 '-Xa' option instead of '-Xc', to enable some needed non-ANSI
243 Sunisms.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000244
Guido van Rossumcc55c2d1996-10-21 15:14:27 +0000245NeXT: To build fat binaries, use the --with-next-archs switch
246 described below.
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000247
Guido van Rossumb7f454d1997-12-02 19:44:31 +0000248QNX: Chris Herborth (chrish@qnx.com) writes:
249 configure works best if you use GNU bash; a port is available on
250 ftp.qnx.com in /usr/free. I used the following process to build,
Guido van Rossumd4493421998-12-22 16:37:01 +0000251 test and install Python 1.5.x under QNX:
Guido van Rossumb7f454d1997-12-02 19:44:31 +0000252
Guido van Rossumec95c7b1998-08-04 17:59:56 +0000253 1) CONFIG_SHELL=/usr/local/bin/bash CC=cc RANLIB=: \
254 ./configure --verbose --without-gcc --with-libm=""
Guido van Rossumb7f454d1997-12-02 19:44:31 +0000255
256 2) copy Modules/Setup.in to Modules/Setup; edit Modules/Setup to
257 activate everything that makes sense for your system... tested
258 here at QNX with the following modules:
259
Guido van Rossum6fa49e21998-08-11 17:31:39 +0000260 array, audioop, binascii, cPickle, cStringIO, cmath,
261 crypt, curses, errno, fcntl, gdbm, grp, imageop,
262 _locale, math, md5, new, operator, parser, pcre,
263 posix, pwd, readline, regex, reop, rgbimg, rotor,
264 select, signal, socket, soundex, strop, struct,
Guido van Rossumd4493421998-12-22 16:37:01 +0000265 syslog, termios, time, timing, zlib, audioop, imageop, rgbimg
Guido van Rossumb7f454d1997-12-02 19:44:31 +0000266
Guido van Rossumec95c7b1998-08-04 17:59:56 +0000267 3) make SHELL=/usr/local/bin/bash
268
269 or, if you feel the need for speed:
270
271 make SHELL=/usr/local/bin/bash OPT="-5 -Oil+nrt"
Guido van Rossumb7f454d1997-12-02 19:44:31 +0000272
Guido van Rossumec95c7b1998-08-04 17:59:56 +0000273 4) make SHELL=/usr/local/bin/bash test
274
Guido van Rossum6fa49e21998-08-11 17:31:39 +0000275 Using GNU readline 2.2 seems to behave strangely, but I
276 think that's a problem with my readline 2.2 port. :-\
Guido van Rossumec95c7b1998-08-04 17:59:56 +0000277
278 5) make SHELL=/usr/local/bin/bash install
Guido van Rossumb7f454d1997-12-02 19:44:31 +0000279
Guido van Rossum6fa49e21998-08-11 17:31:39 +0000280 If you get SIGSEGVs while running Python (I haven't yet, but
281 I've only run small programs and the test cases), you're
282 probably running out of stack; the default 32k could be a
283 little tight. To increase the stack size, edit the Makefile
284 in the Modules directory to read: LDFLAGS = -N 48k
Guido van Rossum40d63581997-08-14 19:45:30 +0000285
Guido van Rossumec95c7b1998-08-04 17:59:56 +0000286BeOS: Chris Herborth (chrish@qnx.com) writes:
287 See BeOS/README for notes about compiling/installing Python on
Guido van Rossum6fa49e21998-08-11 17:31:39 +0000288 BeOS R3 or later. Note that only the PowerPC platform is
Guido van Rossumd4493421998-12-22 16:37:01 +0000289 supported for R3; both PowerPC and x86 are supported for R4.
Guido van Rossumec95c7b1998-08-04 17:59:56 +0000290
Guido van Rossum1bf0bf41997-08-20 23:50:51 +0000291Cray T3E: Konrad Hinsen writes:
Guido van Rossum6fa49e21998-08-11 17:31:39 +0000292 1) Don't use gcc. It compiles Python/graminit.c into something
293 that the Cray assembler doesn't like. Cray's cc seems to work
294 fine.
295 2) Uncomment modules md5 (won't compile) and audioop (will
296 crash the interpreter during the test suite).
297 If you run the test suite, two tests will fail (rotate and
298 binascii), but these are not the modules you'd expect to need
299 on a Cray.
Guido van Rossum1bf0bf41997-08-20 23:50:51 +0000300
Guido van Rossum0078aaf1997-08-21 03:05:11 +0000301SGI: SGI's standard "make" utility (/bin/make or /usr/bin/make)
302 does not check whether a command actually changed the file it
303 is supposed to build. This means that whenever you say "make"
304 it will redo the link step. The remedy is to use SGI's much
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000305 smarter "smake " utility (/usr/sbin/smake), or GNU make. If
306 you set the first line of the Makefile to #!/usr/sbin/smake
307 smake will be invoked by make (likewise for GNU make).
Guido van Rossum0078aaf1997-08-21 03:05:11 +0000308
Guido van Rossum9ac9a261998-02-16 22:19:21 +0000309 A bug in the MIPSpro 7.1 compiler's optimizer seems to break
310 Modules/pypcre.c. The short term solution is to compile it
Guido van Rossum0dd010a1998-06-30 16:58:58 +0000311 without optimization. The bug is fixed in version 7.2.1 of
312 the compiler.
Guido van Rossum9ac9a261998-02-16 22:19:21 +0000313
Guido van Rossumf5ade401999-01-11 16:45:44 +0000314 A bug in gcc-2.8.1 sets sys.maxint to -1 which *also* seems to
315 break Modules/pypcre.c. The egcs versions of gcc fix this
Guido van Rossum583b0191999-01-11 16:47:30 +0000316 problem. Or use configure --without-gcc to compile with SGI's
317 compiler, if you have it. (Raj Srinivasan, Kelvin Chu)
Guido van Rossumf5ade401999-01-11 16:45:44 +0000318
Guido van Rossum64773801997-11-26 17:07:02 +0000319OS/2: If you are running Warp3 or Warp4 and have IBM's VisualAge C/C++
320 compiler installed, just change into the pc\os2vacpp directory
321 and type NMAKE. Threading and sockets are supported by default
322 in the resulting binaries of PYTHON15.DLL and PYTHON.EXE.
323
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000324
Guido van Rossumdc8a3cb1998-05-12 15:29:18 +0000325Configuring threads
326-------------------
327
328The main switch to configure threads is to run the configure script
329(see below) with the --with-thread switch (on DEC, use
330--with-dec-threads). Unfortunately, on some platforms, additional
331compiler and/or linker options are required. Below is a table of
332those options, collected by Bill Janssen. I would love to automate
333this process more, but the information below is not enough to write a
334patch for the configure.in file, so manual intervention is required.
335If you patch the configure.in file and are confident that the patch
336works, please send me the patch. (Don't bother patching the configure
337script itself -- it is regenerated each the configure.in file
338changes.)
339
340Compiler switches for threads
341.............................
342
343 OS/Compiler/threads Switches for use with threads
344 (POSIX is draft 10, DCE is draft 4) (1) compile only (2) compile & link
345
346 SunOS 5.{1-5}/{gcc,SunPro cc}/solaris (1) -D_REENTRANT (2) -mt
347 SunOS 5.5/{gcc,SunPro cc}/POSIX (1) -D_REENTRANT
348 DEC OSF/1 3.x/cc/DCE (1) -D_REENTRANT (2) -threads
349 (butenhof@zko.dec.com)
350 Digital UNIX 4.x/cc/DCE (1) -D_REENTRANT (2) -threads
351 (butenhof@zko.dec.com)
352 Digital UNIX 4.x/cc/POSIX (1) -D_REENTRANT (2) -pthread
353 (butenhof@zko.dec.com)
354 AIX 4.1.4/cc_r/d7 (nothing)
355 (buhrt@iquest.net)
356 AIX 4.1.4/cc_r4/DCE (nothing)
357 (buhrt@iquest.net)
358 IRIX 6.2/cc/POSIX (nothing)
359 (robertl@cwi.nl)
360
361
362Linker (ld) libraries and flags for threads
363...........................................
364
365 OS/threads Libraries/switches for use with threads
366
367 SunOS 5.{1-5}/solaris -lthread
368 SunOS 5.5/POSIX -lpthread
369 DEC OSF/1 3.x/DCE -lpthreads -lmach -lc_r -lc
370 (butenhof@zko.dec.com)
371 Digital UNIX 4.x/DCE -lpthreads -lpthread -lmach -lexc -lc
372 (butenhof@zko.dec.com)
373 Digital UNIX 4.x/POSIX -lpthread -lmach -lexc -lc
374 (butenhof@zko.dec.com)
375 AIX 4.1.4/{draft7,DCE} (nothing)
376 (buhrt@iquest.net)
377 IRIX 6.2/POSIX -lpthread
378 (jph@emilia.engr.sgi.com)
379
380
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000381Configuring additional built-in modules
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000382---------------------------------------
Guido van Rossum19e0c261995-01-17 16:36:34 +0000383
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000384You can configure the interpreter to contain fewer or more built-in
385modules by editing the file Modules/Setup. This file is initially
386copied (when the toplevel Makefile makes Modules/Makefile for the
387first time) from Setup.in; if it does not exist yet, make a copy
388yourself. Never edit Setup.in -- always edit Setup. Read the
389comments in the file for information on what kind of edits you can
390make. When you have edited Setup, Makefile and config.c in Modules
391will automatically be rebuilt the next time you run make in the
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000392toplevel directory. (When working inside the Modules directory, use
393"make Makefile; make".)
Guido van Rossum627b2d71993-12-24 10:39:16 +0000394
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000395The default collection of modules should build on any Unix system, but
396many optional modules should work on all modern Unices (e.g. try dbm,
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000397nis, termios, timing, syslog, curses, new, soundex, parser). Often
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000398the quickest way to determine whether a particular module works or not
399is to see if it will build: enable it in Setup, then if you get
400compilation or link errors, disable it -- you're missing support.
401
402On SGI IRIX, there are modules that interface to many SGI specific
403system libraries, e.g. the GL library and the audio hardware.
404
405For SunOS and Solaris, enable module "sunaudiodev" to support the
406audio device.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000407
Guido van Rossum4462e931997-01-22 21:00:32 +0000408In addition to the file Setup, you can also edit the file Setup.local.
409(the makesetup script processes both). You may find it more
410convenient to edit Setup.local and leave Setup alone. Then, when
411installing a new Python version, you can copy your old Setup.local
412file.
413
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000414
415Setting the optimization/debugging options
416------------------------------------------
417
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000418If you want or need to change the optimization/debugging options for
419the C compiler, assign to the OPT variable on the toplevel make
420command; e.g. "make OPT=-g" will build a debugging version of Python
421on most platforms. The default is OPT=-O; a value for OPT in the
422environment when the configure script is run overrides this default
423(likewise for CC; and the initial value for LIBS is used as the base
424set of libraries to link with).
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000425
426
427Testing
428-------
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000429
430To test the interpreter that you have just built, type "make test".
Guido van Rossum6ae5d3d1997-05-14 21:39:05 +0000431This runs the test set twice (once with no compiled files, once with
432the compiled files left by the previous test run). The test set
433produces some output. You can generally ignore the messages about
434skipped tests due to an optional feature that can't be imported (if
435you want to test those modules, edit Modules/Setup to configure them).
436If a messages is printed about a failed test or a traceback or core
Guido van Rossum24df6841997-12-30 04:32:30 +0000437dump is produced, something's wrong. On some Linux systems (those
438that are not yet using glibc 6), test_strftime fails due to a
439non-standard-compliant implementation of strftime() in the C library.
440Please ignore this, or upgrade to glibc version 6.
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000441
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000442IMPORTANT: If the tests fail and you decide to mail a bug report,
443*don't* include the output of "make test". It is useless. Run the
Guido van Rossum6ae5d3d1997-05-14 21:39:05 +0000444test that fails manually, as follows:
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000445
Guido van Rossum6ae5d3d1997-05-14 21:39:05 +0000446 python ../Lib/test/test_whatever.py
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000447
448(substituting the top of the source tree for .. if you built in a
Guido van Rossum6ae5d3d1997-05-14 21:39:05 +0000449different directory). This runs the test in verbose mode.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000450
451
452Installing
453----------
454
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000455To install the Python binary, library modules, shared library modules
456(see below), include files, configuration files, and the manual page,
Guido van Rossum64773801997-11-26 17:07:02 +0000457just type
458
459 make install
460
461This will install all platform-independent files in subdirectories the
462directory given with the --prefix option to configure or the 'prefix'
463Make variable (default /usr/local), and all binary and other
464platform-specific files in subdirectories if the directory given by
465--exec-prefix or the 'exec_prefix' Make variable (defaults to the
466--prefix directory).
467
468All subdirectories created will have Python's version number in their
469name, e.g. the library modules are installed in
Guido van Rossumd0a42e22000-03-31 20:16:45 +0000470"/usr/local/lib/python1.6/" by default. The Python binary is
471installed as "python1.6" and a hard link named "python" is created.
Guido van Rossum64773801997-11-26 17:07:02 +0000472The only file not installed with a version number in its name is the
473manual page, installed as "/usr/local/man/man1/python.1" by default.
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000474
Guido van Rossumd0a42e22000-03-31 20:16:45 +0000475If you have a previous installation of a pre-1.6 Python that you don't
Guido van Rossum64773801997-11-26 17:07:02 +0000476want to replace yet, use
477
478 make altinstall
479
480This installs the same set of files as "make install" except it
Guido van Rossumd0a42e22000-03-31 20:16:45 +0000481doesn't create the hard link to "python1.6" named "python" and it
Guido van Rossum64773801997-11-26 17:07:02 +0000482doesn't install the manual page at all.
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000483
484The only thing you may have to install manually is the Python mode for
485Emacs. (But then again, more recent versions of Emacs may already
486have it!) This is the file Misc/python-mode.el; follow the
487instructions that came with Emacs for installation of site specific
488files.
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000489
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000490
491Configuration options and variables
492-----------------------------------
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000493
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000494Some special cases are handled by passing options to the configure
495script.
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000496
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000497WARNING: if you rerun the configure script with different options, you
498must run "make clean" before rebuilding. Exceptions to this rule:
499after changing --prefix or --exec-prefix, all you need to do is remove
Guido van Rossumb06df271997-08-05 21:50:20 +0000500Modules/getpath.o.
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000501
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000502--with(out)-gcc: The configure script uses gcc (the GNU C compiler) if
503 it finds it. If you don't want this, or if this compiler is
504 installed but broken on your platform, pass the option
505 --without-gcc. You can also pass "CC=cc" (or whatever the
506 name of the proper C compiler is) in the environment, but the
507 advantage of using --without-gcc is that this option is
508 remembered by the config.status script for its --recheck
509 option.
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000510
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000511--prefix, --exec-prefix: If you want to install the binaries and the
512 Python library somewhere else than in /usr/local/{bin,lib},
513 you can pass the option --prefix=DIRECTORY; the interpreter
514 binary will be installed as DIRECTORY/bin/python and the
515 library files as DIRECTORY/lib/python/*. If you pass
516 --exec-prefix=DIRECTORY (as well) this overrides the
517 installation prefix for architecture-dependent files (like the
518 interpreter binary). Note that --prefix=DIRECTORY also
519 affects the default module search path (sys.path), when
520 Modules/config.c is compiled. Passing make the option
521 prefix=DIRECTORY (and/or exec_prefix=DIRECTORY) overrides the
522 prefix set at configuration time; this may be more convenient
523 than re-running the configure script if you change your mind
524 about the install prefix...
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000525
Guido van Rossumb06df271997-08-05 21:50:20 +0000526--with-readline: This option is no longer supported. To use GNU
527 readline, enable module "readline" in the Modules/Setup file.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000528
Guido van Rossumfaf681a1996-06-20 14:32:08 +0000529--with-thread: On most Unix systems, you can now use multiple threads.
Guido van Rossum4462e931997-01-22 21:00:32 +0000530 To enable this, pass --with-thread. (--with-threads is an
531 alias.) If the library required for threads lives in a
Guido van Rossum8d90f9d1997-05-22 20:13:25 +0000532 peculiar place, you can use --with-thread=DIRECTORY. NOTE:
533 you must also enable the thread module by uncommenting it in
534 the Modules/Setup file. (Threads aren't enabled automatically
535 because there are run-time penalties when support for them is
536 compiled in even if you don't use them.) IMPORTANT: run "make
537 clean" after changing (either enabling or disabling) this
Guido van Rossum0e13da91998-02-22 04:36:34 +0000538 option, or you will get link errors! Note: for DEC Unix use
539 --with-dec-threads instead.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000540
541--with-sgi-dl: On SGI IRIX 4, dynamic loading of extension modules is
542 supported by the "dl" library by Jack Jansen, which is
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000543 ftp'able from ftp://ftp.cwi.nl/pub/dynload/dl-1.6.tar.Z.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000544 This is enabled (after you've ftp'ed and compiled the dl
545 library!) by passing --with-sgi-dl=DIRECTORY where DIRECTORY
546 is the absolute pathname of the dl library. (Don't bother on
547 IRIX 5, it already has dynamic linking using SunOS style
548 shared libraries.) Support for this feature is deprecated.
549
550--with-dl-dld: Dynamic loading of modules is rumoured to be supported
551 on some other systems: VAX (Ultrix), Sun3 (SunOS 3.4), Sequent
552 Symmetry (Dynix), and Atari ST. This is done using a
553 combination of the GNU dynamic loading package
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000554 (ftp://ftp.cwi.nl/pub/dynload/dl-dld-1.1.tar.Z) and an
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000555 emulation of the SGI dl library mentioned above (the emulation
556 can be found at
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000557 ftp://ftp.cwi.nl/pub/dynload/dld-3.2.3.tar.Z). To
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000558 enable this, ftp and compile both libraries, then call the
559 configure passing it the option
560 --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY where DL_DIRECTORY is
561 the absolute pathname of the dl emulation library and
562 DLD_DIRECTORY is the absolute pathname of the GNU dld library.
563 (Don't bother on SunOS 4 or 5, they already have dynamic
564 linking using shared libraries.) Support for this feature is
565 deprecated.
566
567--with-libm, --with-libc: It is possible to specify alternative
568 versions for the Math library (default -lm) and the C library
569 (default the empty string) using the options
570 --with-libm=STRING and --with-libc=STRING, respectively. E.g.
571 if your system requires that you pass -lc_s to the C compiler
572 to use the shared C library, you can pass --with-libc=-lc_s.
573 These libraries are passed after all other libraries, the C
574 library last.
Guido van Rossum3ff96dd1996-07-30 18:05:04 +0000575
576--with-next-archs='arch1 arch2': Under NEXTSTEP, this will build
577 all compiled binaries with the architectures listed. Includes
578 correctly setting the target architecture specific resource
Guido van Rossumcc55c2d1996-10-21 15:14:27 +0000579 directory. (This option is not supported on other platforms.)
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000580
Guido van Rossumd02ba451996-07-31 17:36:01 +0000581--with-libs='libs': Add 'libs' to the LIBS that the python
582 linked against.
583
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000584
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000585Building for multiple architectures (using the VPATH feature)
586-------------------------------------------------------------
587
588If your file system is shared between multiple architectures, it
589usually is not necessary to make copies of the sources for each
590architecture you want to support. If the make program supports the
591VPATH feature, you can create an empty build directory for each
592architecture, and in each directory run the configure script (on the
593appropriate machine with the appropriate options). This creates the
594necessary subdirectories and the Makefiles therein. The Makefiles
595contain a line VPATH=... which points to directory containing the
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000596actual sources. (On SGI systems, use "smake -J1" instead of "make" if
597you use VPATH -- don't try gnumake.)
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000598
599For example, the following is all you need to build a minimal Python
600in /usr/tmp/python (assuming ~guido/src/python is the toplevel
601directory and you want to build in /usr/tmp/python):
602
603 $ mkdir /usr/tmp/python
604 $ cd /usr/tmp/python
605 $ ~guido/src/python/configure
606 [...]
607 $ make
608 [...]
609 $
610
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000611Note that Modules/Makefile copies the original Setup file to the build
612directory if it finds no Setup file there. This means that you can
613edit the Setup file for each architecture independently. For this
614reason, subsequent changes to the original Setup file are not tracked
615automatically, as they might overwrite local changes. To force a copy
616of a changed original Setup file, delete the target Setup file. (The
617makesetup script supports multiple input files, so if you want to be
618fancy you can change the rules to create an empty Setup.local if it
619doesn't exist and run it with arguments $(srcdir)/Setup Setup.local;
620however this assumes that you only need to add modules.)
621
622
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000623Building on non-UNIX systems
624----------------------------
625
Guido van Rossum31ae2071999-04-12 14:47:30 +0000626For Windows 95/98 or NT, assuming you have MS VC++ 5.0 or 6.0, the
627project files are in PCbuild, the workspace is pcbuild.dsw. (The
628project files are for VC++ 5.0, but VC++ 6.0 will convert them for
629you -- start VC++ and then use Open Workspace.)
Guido van Rossum8d7d4ed1996-07-30 21:41:07 +0000630
Guido van Rossum31ae2071999-04-12 14:47:30 +0000631For other non-Unix Windows compilers, in particular Windows 3.1 and
632for OS/2, enter the directory "PC" and read the file "readme.txt".
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000633
634For the Mac, a separate source distribution will be made available,
635for use with the CodeWarrior compiler. If you are interested in Mac
636development, join the PythonMac Special Interest Group
637(http://www.python.org/sigs/pythonmac-sig/, or send email to
638pythonmac-sig-request@python.org).
639
640Of course, there are also binary distributions available for these
641platforms -- see http://www.python.org/python/.
642
643To port Python to a new non-UNIX system, you will have to fake the
644effect of running the configure script manually (for Mac and PC, this
645has already been done for you). A good start is to copy the file
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000646config.h.in to config.h and edit the latter to reflect the actual
647configuration of your system. Most symbols must simply be defined as
6481 only if the corresponding feature is present and can be left alone
649otherwise; however RETSIGTYPE must always be defined, either as int or
650as void, and the *_t type symbols must be defined as some variant of
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000651int if they need to be defined at all.
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000652
653
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000654
655Miscellaneous issues
656====================
657
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000658Documentation
659-------------
660
Fred Drake0e6444c1999-05-17 19:35:01 +0000661All documentation is provided online in a variety of formats. In
662order of importance for new users: Tutorial, Library Reference,
663Language Reference, Extending & Embedding, and the Python/C API.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000664Especially the Library Reference is of immense value since much of
665Python's power (including the built-in data types and functions!) is
Fred Drake0e6444c1999-05-17 19:35:01 +0000666described there.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000667
Fred Drake0e6444c1999-05-17 19:35:01 +0000668All documentation is also available online via the Python web site
669(http://www.python.org/, see below). It is available online for
670occaissional reference, or can be downloaded in many formats for
671faster access. The documents are available in HTML, PostScript, PDF,
672HTML Help, and LaTeX; the LaTeX version is primarily for documentation
673authors or people with special formatting requirements.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000674
675
676Emacs mode
677----------
678
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000679There's an excellent Emacs editing mode for Python code; see the file
680Misc/python-mode.el. Originally written by the famous Tim Peters, it
681is now maintained by the equally famous Barry Warsaw
Barry Warsawfe216b71998-05-29 20:56:34 +0000682<bwarsaw@cnri.reston.va.us>. The latest version, along with various
683other contributed Python-related Emacs goodies, is online at
684<http://www.python.org/emacs/python-mode>. And if you are planning to
685edit the Python C code, please pick up the latest version of CC Mode
686<http://www.python.org/emacs/cc-mode>; it contains a "python" style
687used throughout most of the Python C source files.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000688
689
Guido van Rossum8d7d4ed1996-07-30 21:41:07 +0000690Web site
691--------
692
693Python's own web site has URL http://www.python.org/. Come visit us!
Guido van Rossuma16e2751998-04-13 20:14:05 +0000694There are a number of mirrors, and a list of mirrors is accessible
695from the home page -- try a mirror that's close you you.
Guido van Rossum8d7d4ed1996-07-30 21:41:07 +0000696
697
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000698Ftp site
699--------
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000700
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000701Python's own ftp site is ftp://ftp.python.org/pub/python/. There are
Guido van Rossuma16e2751998-04-13 20:14:05 +0000702numerous mirrors; the list of mirrors is accessible from
703http://www.python.org/.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000704
705
Guido van Rossuma16e2751998-04-13 20:14:05 +0000706Newsgroups
707----------
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000708
Guido van Rossuma16e2751998-04-13 20:14:05 +0000709Read comp.lang.python, a high-volume discussion newsgroup about
710Python, or comp.lang.python.announce, a low-volume moderated newsgroup
711for Python-related announcements. These are also accessible as
712mailing lists, see the next item.
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000713
Guido van Rossuma16e2751998-04-13 20:14:05 +0000714Archives are accessible via Deja News; the Python website has a
715query form for the archives at http://www.python.org/search/.
716
717
718Mailing lists
719-------------
720
721See http://www.python.org/psa/MailingLists.html for an overview of the
722many Python related mailing lists.
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000723
724
725Bug reports
726-----------
727
Guido van Rossuma16e2751998-04-13 20:14:05 +0000728Bugs are best reported to the comp.lang.python newsgroup (or the
729Python mailing list) -- see the section "Newsgroups" above. Before
730posting, check the newsgroup archives (see above) to see if your bug
731has already been reported! If you don't want to go public, send them
732to me: <guido@python.org>.
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000733
734
735Questions
736---------
737
Guido van Rossum49523691997-08-15 18:30:14 +0000738For help, if you can't find it in the manuals or on the web site, it's
739best to post to the comp.lang.python or the Python mailing list (see
740above). If you specifically don't want to involve the newsgroup or
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000741mailing list, send questions to <python-help@python.org> (a group of
742volunteers which does *not* include me). Because of my work and email
743volume, I'm often be slow in answering questions sent to me directly;
744I prefer to answer questions posted to the newsgroup.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000745
746
747The Tk interface
748----------------
749
750Tk (the user interface component of John Ousterhout's Tcl language) is
751also usable from Python. Since this requires that you first build and
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000752install Tcl/Tk, the Tk interface is not enabled by default. Python
753supports all Tcl/Tk versions from version 7.5/4.1 through 8.0 (and it
754is expected that it will also work with newer versions). Tcl/Tk
Guido van Rossum64773801997-11-26 17:07:02 +00007557.4/4.0 is no longer supported. 8.0 or any later non-alpha non-beta
756release is recommended.
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000757
Guido van Rossum64773801997-11-26 17:07:02 +0000758See http://sunscript.sun.com/ for more info on Tcl/Tk, including the
759on-line manual pages.
760
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000761
762To enable the Python/Tk interface, once you've built and installed
Guido van Rossum64773801997-11-26 17:07:02 +0000763Tcl/Tk, load the file Modules/Setup in your favorite text editor and
764search for the string "_tkinter". Then follow the instructions found
765there. If you have installed Tcl/Tk or X11 in unusual places, you
766will have to edit the first line to fix or add -I and -L options.
767(Also see the general instructions at the top of that file.)
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000768
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000769There is little documentation on how to use Tkinter; however most of
770the Tk manual pages apply quite straightforwardly. Begin with
771fetching the "Tk Lifesaver" document,
772e.g. ftp://ftp.python.org/pub/python/doc/tkinter-doc.tar.gz (a gzipped
773tar file containing a PostScript file) or the on-line version
774http://www.python.org/doc/life-preserver/index.html. Reading the
775Tkinter.py source will reveal most details on how Tkinter calls are
776translated into Tcl code.
777
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000778A more recent introduction to Tkinter programming, by Fredrik Lundh,
779is at http://www.pythonware.com/library/tkinter/introduction/index.htm.
780
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000781There are demos in the Demo/tkinter directory, in the subdirectories
782guido, matt and www (the matt and guido subdirectories have been
783overhauled to use more recent Tkinter coding conventions).
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000784
785Note that there's a Python module called "Tkinter" (capital T) which
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000786lives in Lib/tkinter/Tkinter.py, and a C module called "_tkinter"
787(lower case t and leading underscore) which lives in
788Modules/_tkinter.c. Demos and normal Tk applications only import the
789Python Tkinter module -- only the latter uses the C _tkinter module
790directly. In order to find the C _tkinter module, it must be compiled
791and linked into the Python interpreter -- the _tkinter line in the
792Setup file does this. In order to find the Python Tkinter module,
793sys.path must be set correctly -- the TKPATH assignment in the Setup
794file takes care of this, but only if you install Python properly
795("make install libinstall"). (You can also use dynamic loading for
796the C _tkinter module, in which case you must manually fix up sys.path
797or set $PYTHONPATH for the Python Tkinter module.)
Guido van Rossum84c8c7f1995-08-28 02:44:24 +0000798
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000799
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000800Distribution structure
801----------------------
802
803Most subdirectories have their own README file. Most files have
804comments.
805
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000806Demo/ Demonstration scripts, modules and programs
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000807Grammar/ Input for the parser generator
808Include/ Public header files
809Lib/ Python library modules
810Makefile.in Source from which config.status creates Makefile
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000811Misc/ Miscellaneous useful files
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000812Modules/ Implementation of most built-in modules
813Objects/ Implementation of most built-in object types
Guido van Rossum64773801997-11-26 17:07:02 +0000814PC/ PC porting files (DOS, Windows, OS/2)
815PCbuild/ Directory where you should build for Windows NT/95
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000816Parser/ The parser and tokenizer and their input handling
817Python/ The "compiler" and interpreter
818README The file you're reading now
819Tools/ Some useful programs written in Python
820acconfig.h Additional input for the autoheader program
821config.h.in Source from which config.status creates config.h
822configure Configuration shell script (GNU autoconf output)
823configure.in Configuration specification (GNU autoconf input)
824install-sh Shell script used to install files
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000825
826The following files will (may) be created in the toplevel directory by
827the configuration and build processes:
828
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000829Makefile Build rules
830config.cache cache of configuration variables
831config.h Configuration header
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000832config.log Log from last configure run
833config.status Status from last run of configure script
Guido van Rossumd0a42e22000-03-31 20:16:45 +0000834libpython1.6.a The library archive
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000835python The executable interpreter
836tags, TAGS Tags files for vi and Emacs
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000837
838
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000839Author's address
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000840================
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000841
842Guido van Rossum
Guido van Rossumfaf681a1996-06-20 14:32:08 +0000843CNRI
8441895 Preston White Drive
Guido van Rossum8d7d4ed1996-07-30 21:41:07 +0000845Reston, VA 20191
Guido van Rossumfaf681a1996-06-20 14:32:08 +0000846USA
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000847
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000848E-mail: guido@cnri.reston.va.us or guido@python.org
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000849
850
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000851
852Copyright notice
853================
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000854
855The Python source is copyrighted, but you can freely use and copy it
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000856as long as you don't change or remove the copyright notice:
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000857
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000858----------------------------------------------------------------------
Guido van Rossumaf5b83e1995-01-04 19:02:35 +0000859Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
860The Netherlands.
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000861
862 All Rights Reserved
863
Guido van Rossumc561e5d1994-08-23 13:52:46 +0000864Permission to use, copy, modify, and distribute this software and its
865documentation for any purpose and without fee is hereby granted,
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000866provided that the above copyright notice appear in all copies and that
Guido van Rossumc561e5d1994-08-23 13:52:46 +0000867both that copyright notice and this permission notice appear in
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000868supporting documentation, and that the names of Stichting Mathematisch
Guido van Rossumf501b4e1996-10-25 14:32:48 +0000869Centrum or CWI or Corporation for National Research Initiatives or
870CNRI not be used in advertising or publicity pertaining to
871distribution of the software without specific, written prior
872permission.
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000873
Guido van Rossumf501b4e1996-10-25 14:32:48 +0000874While CWI is the initial source for this software, a modified version
875is made available by the Corporation for National Research Initiatives
876(CNRI) at the Internet address ftp://ftp.python.org.
877
878STICHTING MATHEMATISCH CENTRUM AND CNRI DISCLAIM ALL WARRANTIES WITH
879REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
880MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH
881CENTRUM OR CNRI BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
882DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
883PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
884TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
885PERFORMANCE OF THIS SOFTWARE.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000886----------------------------------------------------------------------
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000887
888
Guido van Rossumfaf681a1996-06-20 14:32:08 +0000889--Guido van Rossum (home page: http://www.python.org/~guido/)