blob: 69b89ddc85143a620765e481ba377934b4ad84ff [file] [log] [blame]
Guido van Rossumd0a42e22000-03-31 20:16:45 +00001This is Python version 1.6 -- released March 31, 2000
2=====================================================
Guido van Rossum79808261997-12-11 18:01:47 +00003
4
Guido van Rossum8d7d4ed1996-07-30 21:41:07 +00005What's new in this release?
6---------------------------
Guido van Rossum3ff96dd1996-07-30 18:05:04 +00007
Guido van Rossumd0a42e22000-03-31 20:16:45 +00008See http://www.python.org/1.6/.
Guido van Rossum64773801997-11-26 17:07:02 +00009
Guido van Rossum64773801997-11-26 17:07:02 +000010
11If you don't read instructions
12------------------------------
13
14Congratulations on getting this far. :-)
15
16To start building right away (on UNIX): type "./configure" in the
17current directory and when it finishes, type "make". The section
18Build Instructions below is still recommended reading. :-)
Guido van Rossum3ff96dd1996-07-30 18:05:04 +000019
20
Guido van Rossum91cb9d21995-04-10 11:47:38 +000021What is Python anyway?
22----------------------
23
24Python is an interpreted object-oriented programming language, and is
Guido van Rossumc0be2f51997-10-08 05:05:28 +000025often compared to Tcl, Perl, Java or Scheme. To find out more, point
26your browser to http://www.python.org/.
27
28
29A modest plug
30-------------
31
32************************************************************************
33* Without your support, I won't be able to continue to work on Python! *
34************************************************************************
35
36If you use Python, please consider joining the Python Software
37Activity (PSA). See http://www.python.org/psa/.
38
39Organizations that make heavy use of Python are especially encouraged
Guido van Rossumde64eaf1998-10-17 19:44:20 +000040to become corporate members -- or better still, to join the Python
41Consortium (see http://www.python.org/consortium/).
Guido van Rossum91cb9d21995-04-10 11:47:38 +000042
43
Guido van Rossumf501b4e1996-10-25 14:32:48 +000044How do I learn Python?
45----------------------
46
Fred Drake0e6444c1999-05-17 19:35:01 +000047The official tutorial is still a good place to start; see
Guido van Rossumd0a42e22000-03-31 20:16:45 +000048http://www.python.org/doc/ for online and downloadable versions, as
49well as a list of other introductions, and reference documentation.
Guido van Rossumf501b4e1996-10-25 14:32:48 +000050
Guido van Rossumd0a42e22000-03-31 20:16:45 +000051There's a quickly growing set of books on Python. See
52http://www.python.org/psa/bookstore/ for a list.
Guido van Rossum8d90f9d1997-05-22 20:13:25 +000053
Guido van Rossumf501b4e1996-10-25 14:32:48 +000054
Guido van Rossum91cb9d21995-04-10 11:47:38 +000055Copyright issues
56----------------
57
58Python is COPYRIGHTED but free to use for all. See the full copyright
Guido van Rossum64773801997-11-26 17:07:02 +000059notice at the end of this file and in the file Misc/COPYRIGHT.
Guido van Rossum91cb9d21995-04-10 11:47:38 +000060
61The Python distribution is *not* affected by the GNU Public Licence
62(GPL). There are interfaces to some GNU code but these are entirely
Guido van Rossum64773801997-11-26 17:07:02 +000063optional and no GNU code is distributed with Python.
Guido van Rossum91cb9d21995-04-10 11:47:38 +000064
Guido van Rossum627b2d71993-12-24 10:39:16 +000065
Guido van Rossum433c8ad1994-08-01 12:07:07 +000066Build instructions
Guido van Rossum91cb9d21995-04-10 11:47:38 +000067==================
Guido van Rossum627b2d71993-12-24 10:39:16 +000068
Guido van Rossum6d9cc801996-08-01 17:31:22 +000069Before you can build Python, you must first configure it.
70Fortunately, the configuration and build process has been streamlined
71for most Unix installations, so all you have to do is type a few
72commands, optionally edit one file, and sit back. There are some
73platforms where things are not quite as smooth; see the platform
74specific notes below. If you want to build for multiple platforms
75sharing the same source tree, see the section on VPATH below.
Guido van Rossum627b2d71993-12-24 10:39:16 +000076
Guido van Rossum6d9cc801996-08-01 17:31:22 +000077You start by running the script "./configure", which figures out your
78system configuration and creates several Makefiles. (It takes a
79minute or two -- please be patient!) When it's done, you are ready to
80run make. You may want to pass options to the configure script -- see
81the section below on configuration options and variables.
82
83To build Python, you normally type "make" in the toplevel directory.
84This will recursively run make in each of the subdirectories Parser,
85Objects, Python and Modules, creating a library file in each one. The
86executable of the interpreter is built in the Modules subdirectory and
87moved up here when it is built. If you want or need to, you can also
88chdir into each subdirectory in turn and run make there manually (do
89the Modules subdirectory last!).
90
91Once you have built an interpreter, see the subsections below on
92testing, configuring additional modules, and installation. If you run
93in trouble, see the next section.
Guido van Rossum627b2d71993-12-24 10:39:16 +000094
Guido van Rossum0a516c91994-09-12 10:58:40 +000095
Guido van Rossum91cb9d21995-04-10 11:47:38 +000096Troubleshooting
97---------------
Guido van Rossum627b2d71993-12-24 10:39:16 +000098
Guido van Rossum6d9cc801996-08-01 17:31:22 +000099See also the platform specific notes in the next section.
100
Guido van Rossumfaf681a1996-06-20 14:32:08 +0000101If recursive makes fail, try invoking make as "make MAKE=make".
102
Guido van Rossum49523691997-08-15 18:30:14 +0000103If you run into other trouble, see section 3 of the FAQ
104(http://grail.cnri.reston.va.us/cgi-bin/faqw.py or
105http://www.python.org/doc/FAQ.html) for hints on what can go wrong,
106and how to fix it.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000107
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000108If you rerun the configure script with different options, remove all
109object files by running "make clean" before rebuilding. Believe it or
110not, "make clean" sometimes helps to clean up other inexplicable
111problems as well. Try it before sending in a bug report!
112
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000113If the configure script fails or doesn't seem to find things that
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000114should be there, inspect the config.log file. When you fix a
115configure problem, be sure to remove config.cache!
116
117If you get a warning for every file about the -Olimit option being no
118longer supported, you can ignore it. There's no foolproof way to know
119whether this option is needed; all I can do is test whether it is
120accepted without error. On some systems, e.g. older SGI compilers, it
121is essential for performance (specifically when compiling ceval.c,
122which has more basic blocks than the default limit of 1000). If the
123warning bothers you, edit the Makefile to remove "-Olimit 1500" from
124the OPT variable.
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000125
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000126
127Platform specific notes
128-----------------------
129
Guido van Rossum0447a321995-10-08 01:22:33 +0000130(Some of these may no longer apply. If you find you can build Python
131on these platforms without the special directions mentioned here, let
132me know so I can remove them!)
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000133
Guido van Rossumc0be2f51997-10-08 05:05:28 +000013464-bit platforms: The modules audioop, imageop and rgbimg don't work.
135 Don't try to enable them in the Modules/Setup file. They
136 contain code that is quite wordsize sensitive. (If you have a
137 fix, let me know!)
138
Guido van Rossum4462e931997-01-22 21:00:32 +0000139Solaris: When using Sun's C compiler with threads, at least on Solaris
140 2.5.1, you need to add the "-mt" compiler option (the simplest
141 way is probably to specify the compiler with this option as
142 the "CC" environment variable when running the configure
143 script).
144
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000145Linux: On Linux version 1.x, once you've built Python, use it to run
146 the regen script in the Lib/linux1 directory. Apparently
147 the files as distributed don't match the system headers on
148 some Linux versions. (The "h2py" command refers to
149 Tools/scripts/h2py.py.) The modules distributed for Linux 2.x
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000150 should be okay. Shared library support now works by default
Guido van Rossum4462e931997-01-22 21:00:32 +0000151 on ELF-based x86 Linux systems. (Note: when you change the
152 status of a module from static to shared, you must remove its
153 .o file or do a "make clean".)
154
Fred Drake61280911997-12-08 14:10:40 +0000155 Under RedHat Linux 5.0, if upgraded from a previous version,
156 remove the LinuxThreads packages. This is needed because
157 LinuxThreads conflicts with the new thread support provided by
158 glibc. Before running Python's configure script, use the
159 following commands as root (version numbers may differ; these
160 are from a stock 4.2 install):
161
162 % rpm -qa | grep ^linuxthread
163 linuxthreads-0.5-1
164 linuxthreads-devel-0.5-1
165 % rpm -e linuxthreads linuxthreads-devel
166
167 While Python only needs this to be done to allow thread
168 support to be included, the conflicts these packages create
169 with the new glibc may cause other packages which use threads
170 to fail as well, so their removal is a good idea regardless of
171 how you configure python.
172
Guido van Rossumfe23ad71999-04-12 19:01:45 +0000173 More recently, a problem with threads and fork() was tracked
174 down to a bug in the pthreads code in glibc version 2.0.5;
175 glibc version 2.0.7 solves the problem. This causes the
176 popen2 test to fail; problem and solution reported by Pablo
177 Bleyer.
178
Fred Drake61280911997-12-08 14:10:40 +0000179 Also under RedHat Linux 5.0, the crypt module now needs the
180 -lcrypt option. Uncomment this flag in Modules/Setup, or
181 comment out the crypt module in the same file.
182
Guido van Rossum59230501999-06-21 20:51:46 +0000183FreeBSD 3.x and probably platforms with NCurses that use libmytinfo or
184 similar: When using cursesmodule, the linking is not done in
185 the correct order with the defaults. Remove "-ltermcap" from
186 the readline entry in Setup, and use as curses entry: "curses
187 cursesmodule.c -lmytinfo -lncurses -ltermcap" - "mytinfo" (so
188 called on FreeBSD) should be the name of the auxiliary library
189 required on your platform. Normally, it would be linked
190 automatically, but not necessarily in the correct order.
191
Guido van Rossum6ae5d3d1997-05-14 21:39:05 +0000192DEC Unix: When enabling threads, use --with-dec-threads, not
Guido van Rossum9ac9a261998-02-16 22:19:21 +0000193 --with-thread. When using GCC, it is possible to get an
194 internal compiler error if optimization is used. This was
195 reported for GCC 2.7.2.3 on selectmodule.c. Manually compile
196 the affected file without optimization to solve the problem.
Guido van Rossum8eca2c21996-02-14 18:37:46 +0000197
Guido van Rossume1cdb161999-04-10 16:04:07 +0000198DEC Ultrix: compile with GCC to avoid bugs in the native compiler,
199 and pass SHELL=/bin/sh5 to Make when installing.
200
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000201AIX: A complete overhaul of the shared library support is now in
Guido van Rossumcbfcb171997-10-20 22:57:00 +0000202 place. See Misc/AIX-NOTES for some notes on how it's done.
Guido van Rossum9ac9a261998-02-16 22:19:21 +0000203 (The optimizer bug reported at this place in previous releases
204 has been worked around by a minimal code change.)
Guido van Rossumed7f9e21999-11-16 16:03:03 +0000205 In addition, Gary Duzan has a hint for C++ users: to enable
206 full C++ module support, set CC="xlC" (or CC="xlC_r" for thread
207 support in AIX 4.2.1).
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000208
Guido van Rossum59a88f41999-04-12 18:16:09 +0000209HP-UX: Please read the file Misc/HPUX-NOTES for shared libraries.
210 When using threading, you may have to add -D_REENTRANT to the
211 OPT variable in the top-level Makefile; reported by Pat Knight
212 this seems to make a difference (at least for HP-UX 10.20)
213 even though config.h defines it.
Guido van Rossum2094e041998-05-14 15:47:35 +0000214
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000215Minix: When using ack, use "CC=cc AR=aal RANLIB=: ./configure"!
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000216
Guido van Rossuma16e2751998-04-13 20:14:05 +0000217SCO: The following only apply to SCO 3; Python builds out of the box
218 on SCO 5 (or so I've heard).
219
220 1) Everything works much better if you add -U__STDC__ to the
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000221 defs. This is because all the SCO header files are broken.
Guido van Rossum64773801997-11-26 17:07:02 +0000222 Anything that isn't mentioned in the C standard is
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000223 conditionally excluded when __STDC__ is defined.
224
225 2) Due to the U.S. export restrictions, SCO broke the crypt
226 stuff out into a separate library, libcrypt_i.a so the LIBS
227 needed be set to:
228
229 LIBS=' -lsocket -lcrypt_i'
230
Guido van Rossuma16e2751998-04-13 20:14:05 +0000231SunOS 4.x: When using the standard "cc" compiler, certain modules may
Guido van Rossum64773801997-11-26 17:07:02 +0000232 not be compilable because they use non-K&R syntax. You should
233 be able to get a basic Python interpreter by commenting out
234 such modules in the Modules/Setup file, but I really recommend
235 using gcc.
236
237 When using the SunPro C compiler, you may want to use the
238 '-Xa' option instead of '-Xc', to enable some needed non-ANSI
239 Sunisms.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000240
Guido van Rossumcc55c2d1996-10-21 15:14:27 +0000241NeXT: To build fat binaries, use the --with-next-archs switch
242 described below.
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000243
Guido van Rossumb7f454d1997-12-02 19:44:31 +0000244QNX: Chris Herborth (chrish@qnx.com) writes:
245 configure works best if you use GNU bash; a port is available on
246 ftp.qnx.com in /usr/free. I used the following process to build,
Guido van Rossumd4493421998-12-22 16:37:01 +0000247 test and install Python 1.5.x under QNX:
Guido van Rossumb7f454d1997-12-02 19:44:31 +0000248
Guido van Rossumec95c7b1998-08-04 17:59:56 +0000249 1) CONFIG_SHELL=/usr/local/bin/bash CC=cc RANLIB=: \
250 ./configure --verbose --without-gcc --with-libm=""
Guido van Rossumb7f454d1997-12-02 19:44:31 +0000251
252 2) copy Modules/Setup.in to Modules/Setup; edit Modules/Setup to
253 activate everything that makes sense for your system... tested
254 here at QNX with the following modules:
255
Guido van Rossum6fa49e21998-08-11 17:31:39 +0000256 array, audioop, binascii, cPickle, cStringIO, cmath,
257 crypt, curses, errno, fcntl, gdbm, grp, imageop,
258 _locale, math, md5, new, operator, parser, pcre,
259 posix, pwd, readline, regex, reop, rgbimg, rotor,
260 select, signal, socket, soundex, strop, struct,
Guido van Rossumd4493421998-12-22 16:37:01 +0000261 syslog, termios, time, timing, zlib, audioop, imageop, rgbimg
Guido van Rossumb7f454d1997-12-02 19:44:31 +0000262
Guido van Rossumec95c7b1998-08-04 17:59:56 +0000263 3) make SHELL=/usr/local/bin/bash
264
265 or, if you feel the need for speed:
266
267 make SHELL=/usr/local/bin/bash OPT="-5 -Oil+nrt"
Guido van Rossumb7f454d1997-12-02 19:44:31 +0000268
Guido van Rossumec95c7b1998-08-04 17:59:56 +0000269 4) make SHELL=/usr/local/bin/bash test
270
Guido van Rossum6fa49e21998-08-11 17:31:39 +0000271 Using GNU readline 2.2 seems to behave strangely, but I
272 think that's a problem with my readline 2.2 port. :-\
Guido van Rossumec95c7b1998-08-04 17:59:56 +0000273
274 5) make SHELL=/usr/local/bin/bash install
Guido van Rossumb7f454d1997-12-02 19:44:31 +0000275
Guido van Rossum6fa49e21998-08-11 17:31:39 +0000276 If you get SIGSEGVs while running Python (I haven't yet, but
277 I've only run small programs and the test cases), you're
278 probably running out of stack; the default 32k could be a
279 little tight. To increase the stack size, edit the Makefile
280 in the Modules directory to read: LDFLAGS = -N 48k
Guido van Rossum40d63581997-08-14 19:45:30 +0000281
Guido van Rossumec95c7b1998-08-04 17:59:56 +0000282BeOS: Chris Herborth (chrish@qnx.com) writes:
283 See BeOS/README for notes about compiling/installing Python on
Guido van Rossum6fa49e21998-08-11 17:31:39 +0000284 BeOS R3 or later. Note that only the PowerPC platform is
Guido van Rossumd4493421998-12-22 16:37:01 +0000285 supported for R3; both PowerPC and x86 are supported for R4.
Guido van Rossumec95c7b1998-08-04 17:59:56 +0000286
Guido van Rossum1bf0bf41997-08-20 23:50:51 +0000287Cray T3E: Konrad Hinsen writes:
Guido van Rossum6fa49e21998-08-11 17:31:39 +0000288 1) Don't use gcc. It compiles Python/graminit.c into something
289 that the Cray assembler doesn't like. Cray's cc seems to work
290 fine.
291 2) Uncomment modules md5 (won't compile) and audioop (will
292 crash the interpreter during the test suite).
293 If you run the test suite, two tests will fail (rotate and
294 binascii), but these are not the modules you'd expect to need
295 on a Cray.
Guido van Rossum1bf0bf41997-08-20 23:50:51 +0000296
Guido van Rossum0078aaf1997-08-21 03:05:11 +0000297SGI: SGI's standard "make" utility (/bin/make or /usr/bin/make)
298 does not check whether a command actually changed the file it
299 is supposed to build. This means that whenever you say "make"
300 it will redo the link step. The remedy is to use SGI's much
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000301 smarter "smake " utility (/usr/sbin/smake), or GNU make. If
302 you set the first line of the Makefile to #!/usr/sbin/smake
303 smake will be invoked by make (likewise for GNU make).
Guido van Rossum0078aaf1997-08-21 03:05:11 +0000304
Guido van Rossum9ac9a261998-02-16 22:19:21 +0000305 A bug in the MIPSpro 7.1 compiler's optimizer seems to break
306 Modules/pypcre.c. The short term solution is to compile it
Guido van Rossum0dd010a1998-06-30 16:58:58 +0000307 without optimization. The bug is fixed in version 7.2.1 of
308 the compiler.
Guido van Rossum9ac9a261998-02-16 22:19:21 +0000309
Guido van Rossumf5ade401999-01-11 16:45:44 +0000310 A bug in gcc-2.8.1 sets sys.maxint to -1 which *also* seems to
311 break Modules/pypcre.c. The egcs versions of gcc fix this
Guido van Rossum583b0191999-01-11 16:47:30 +0000312 problem. Or use configure --without-gcc to compile with SGI's
313 compiler, if you have it. (Raj Srinivasan, Kelvin Chu)
Guido van Rossumf5ade401999-01-11 16:45:44 +0000314
Guido van Rossum64773801997-11-26 17:07:02 +0000315OS/2: If you are running Warp3 or Warp4 and have IBM's VisualAge C/C++
316 compiler installed, just change into the pc\os2vacpp directory
317 and type NMAKE. Threading and sockets are supported by default
318 in the resulting binaries of PYTHON15.DLL and PYTHON.EXE.
319
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000320
Guido van Rossumdc8a3cb1998-05-12 15:29:18 +0000321Configuring threads
322-------------------
323
324The main switch to configure threads is to run the configure script
325(see below) with the --with-thread switch (on DEC, use
326--with-dec-threads). Unfortunately, on some platforms, additional
327compiler and/or linker options are required. Below is a table of
328those options, collected by Bill Janssen. I would love to automate
329this process more, but the information below is not enough to write a
330patch for the configure.in file, so manual intervention is required.
331If you patch the configure.in file and are confident that the patch
332works, please send me the patch. (Don't bother patching the configure
333script itself -- it is regenerated each the configure.in file
334changes.)
335
336Compiler switches for threads
337.............................
338
339 OS/Compiler/threads Switches for use with threads
340 (POSIX is draft 10, DCE is draft 4) (1) compile only (2) compile & link
341
342 SunOS 5.{1-5}/{gcc,SunPro cc}/solaris (1) -D_REENTRANT (2) -mt
343 SunOS 5.5/{gcc,SunPro cc}/POSIX (1) -D_REENTRANT
344 DEC OSF/1 3.x/cc/DCE (1) -D_REENTRANT (2) -threads
345 (butenhof@zko.dec.com)
346 Digital UNIX 4.x/cc/DCE (1) -D_REENTRANT (2) -threads
347 (butenhof@zko.dec.com)
348 Digital UNIX 4.x/cc/POSIX (1) -D_REENTRANT (2) -pthread
349 (butenhof@zko.dec.com)
350 AIX 4.1.4/cc_r/d7 (nothing)
351 (buhrt@iquest.net)
352 AIX 4.1.4/cc_r4/DCE (nothing)
353 (buhrt@iquest.net)
354 IRIX 6.2/cc/POSIX (nothing)
355 (robertl@cwi.nl)
356
357
358Linker (ld) libraries and flags for threads
359...........................................
360
361 OS/threads Libraries/switches for use with threads
362
363 SunOS 5.{1-5}/solaris -lthread
364 SunOS 5.5/POSIX -lpthread
365 DEC OSF/1 3.x/DCE -lpthreads -lmach -lc_r -lc
366 (butenhof@zko.dec.com)
367 Digital UNIX 4.x/DCE -lpthreads -lpthread -lmach -lexc -lc
368 (butenhof@zko.dec.com)
369 Digital UNIX 4.x/POSIX -lpthread -lmach -lexc -lc
370 (butenhof@zko.dec.com)
371 AIX 4.1.4/{draft7,DCE} (nothing)
372 (buhrt@iquest.net)
373 IRIX 6.2/POSIX -lpthread
374 (jph@emilia.engr.sgi.com)
375
376
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000377Configuring additional built-in modules
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000378---------------------------------------
Guido van Rossum19e0c261995-01-17 16:36:34 +0000379
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000380You can configure the interpreter to contain fewer or more built-in
381modules by editing the file Modules/Setup. This file is initially
382copied (when the toplevel Makefile makes Modules/Makefile for the
383first time) from Setup.in; if it does not exist yet, make a copy
384yourself. Never edit Setup.in -- always edit Setup. Read the
385comments in the file for information on what kind of edits you can
386make. When you have edited Setup, Makefile and config.c in Modules
387will automatically be rebuilt the next time you run make in the
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000388toplevel directory. (When working inside the Modules directory, use
389"make Makefile; make".)
Guido van Rossum627b2d71993-12-24 10:39:16 +0000390
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000391The default collection of modules should build on any Unix system, but
392many optional modules should work on all modern Unices (e.g. try dbm,
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000393nis, termios, timing, syslog, curses, new, soundex, parser). Often
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000394the quickest way to determine whether a particular module works or not
395is to see if it will build: enable it in Setup, then if you get
396compilation or link errors, disable it -- you're missing support.
397
398On SGI IRIX, there are modules that interface to many SGI specific
399system libraries, e.g. the GL library and the audio hardware.
400
401For SunOS and Solaris, enable module "sunaudiodev" to support the
402audio device.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000403
Guido van Rossum4462e931997-01-22 21:00:32 +0000404In addition to the file Setup, you can also edit the file Setup.local.
405(the makesetup script processes both). You may find it more
406convenient to edit Setup.local and leave Setup alone. Then, when
407installing a new Python version, you can copy your old Setup.local
408file.
409
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000410
411Setting the optimization/debugging options
412------------------------------------------
413
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000414If you want or need to change the optimization/debugging options for
415the C compiler, assign to the OPT variable on the toplevel make
416command; e.g. "make OPT=-g" will build a debugging version of Python
417on most platforms. The default is OPT=-O; a value for OPT in the
418environment when the configure script is run overrides this default
419(likewise for CC; and the initial value for LIBS is used as the base
420set of libraries to link with).
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000421
422
423Testing
424-------
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000425
426To test the interpreter that you have just built, type "make test".
Guido van Rossum6ae5d3d1997-05-14 21:39:05 +0000427This runs the test set twice (once with no compiled files, once with
428the compiled files left by the previous test run). The test set
429produces some output. You can generally ignore the messages about
430skipped tests due to an optional feature that can't be imported (if
431you want to test those modules, edit Modules/Setup to configure them).
432If a messages is printed about a failed test or a traceback or core
Guido van Rossum24df6841997-12-30 04:32:30 +0000433dump is produced, something's wrong. On some Linux systems (those
434that are not yet using glibc 6), test_strftime fails due to a
435non-standard-compliant implementation of strftime() in the C library.
436Please ignore this, or upgrade to glibc version 6.
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000437
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000438IMPORTANT: If the tests fail and you decide to mail a bug report,
439*don't* include the output of "make test". It is useless. Run the
Guido van Rossum6ae5d3d1997-05-14 21:39:05 +0000440test that fails manually, as follows:
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000441
Guido van Rossum6ae5d3d1997-05-14 21:39:05 +0000442 python ../Lib/test/test_whatever.py
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000443
444(substituting the top of the source tree for .. if you built in a
Guido van Rossum6ae5d3d1997-05-14 21:39:05 +0000445different directory). This runs the test in verbose mode.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000446
447
448Installing
449----------
450
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000451To install the Python binary, library modules, shared library modules
452(see below), include files, configuration files, and the manual page,
Guido van Rossum64773801997-11-26 17:07:02 +0000453just type
454
455 make install
456
457This will install all platform-independent files in subdirectories the
458directory given with the --prefix option to configure or the 'prefix'
459Make variable (default /usr/local), and all binary and other
460platform-specific files in subdirectories if the directory given by
461--exec-prefix or the 'exec_prefix' Make variable (defaults to the
462--prefix directory).
463
464All subdirectories created will have Python's version number in their
465name, e.g. the library modules are installed in
Guido van Rossumd0a42e22000-03-31 20:16:45 +0000466"/usr/local/lib/python1.6/" by default. The Python binary is
467installed as "python1.6" and a hard link named "python" is created.
Guido van Rossum64773801997-11-26 17:07:02 +0000468The only file not installed with a version number in its name is the
469manual page, installed as "/usr/local/man/man1/python.1" by default.
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000470
Guido van Rossumd0a42e22000-03-31 20:16:45 +0000471If you have a previous installation of a pre-1.6 Python that you don't
Guido van Rossum64773801997-11-26 17:07:02 +0000472want to replace yet, use
473
474 make altinstall
475
476This installs the same set of files as "make install" except it
Guido van Rossumd0a42e22000-03-31 20:16:45 +0000477doesn't create the hard link to "python1.6" named "python" and it
Guido van Rossum64773801997-11-26 17:07:02 +0000478doesn't install the manual page at all.
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000479
480The only thing you may have to install manually is the Python mode for
481Emacs. (But then again, more recent versions of Emacs may already
482have it!) This is the file Misc/python-mode.el; follow the
483instructions that came with Emacs for installation of site specific
484files.
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000485
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000486
487Configuration options and variables
488-----------------------------------
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000489
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000490Some special cases are handled by passing options to the configure
491script.
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000492
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000493WARNING: if you rerun the configure script with different options, you
494must run "make clean" before rebuilding. Exceptions to this rule:
495after changing --prefix or --exec-prefix, all you need to do is remove
Guido van Rossumb06df271997-08-05 21:50:20 +0000496Modules/getpath.o.
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000497
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000498--with(out)-gcc: The configure script uses gcc (the GNU C compiler) if
499 it finds it. If you don't want this, or if this compiler is
500 installed but broken on your platform, pass the option
501 --without-gcc. You can also pass "CC=cc" (or whatever the
502 name of the proper C compiler is) in the environment, but the
503 advantage of using --without-gcc is that this option is
504 remembered by the config.status script for its --recheck
505 option.
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000506
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000507--prefix, --exec-prefix: If you want to install the binaries and the
508 Python library somewhere else than in /usr/local/{bin,lib},
509 you can pass the option --prefix=DIRECTORY; the interpreter
510 binary will be installed as DIRECTORY/bin/python and the
511 library files as DIRECTORY/lib/python/*. If you pass
512 --exec-prefix=DIRECTORY (as well) this overrides the
513 installation prefix for architecture-dependent files (like the
514 interpreter binary). Note that --prefix=DIRECTORY also
515 affects the default module search path (sys.path), when
516 Modules/config.c is compiled. Passing make the option
517 prefix=DIRECTORY (and/or exec_prefix=DIRECTORY) overrides the
518 prefix set at configuration time; this may be more convenient
519 than re-running the configure script if you change your mind
520 about the install prefix...
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000521
Guido van Rossumb06df271997-08-05 21:50:20 +0000522--with-readline: This option is no longer supported. To use GNU
523 readline, enable module "readline" in the Modules/Setup file.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000524
Guido van Rossumfaf681a1996-06-20 14:32:08 +0000525--with-thread: On most Unix systems, you can now use multiple threads.
Guido van Rossum4462e931997-01-22 21:00:32 +0000526 To enable this, pass --with-thread. (--with-threads is an
527 alias.) If the library required for threads lives in a
Guido van Rossum8d90f9d1997-05-22 20:13:25 +0000528 peculiar place, you can use --with-thread=DIRECTORY. NOTE:
529 you must also enable the thread module by uncommenting it in
530 the Modules/Setup file. (Threads aren't enabled automatically
531 because there are run-time penalties when support for them is
532 compiled in even if you don't use them.) IMPORTANT: run "make
533 clean" after changing (either enabling or disabling) this
Guido van Rossum0e13da91998-02-22 04:36:34 +0000534 option, or you will get link errors! Note: for DEC Unix use
535 --with-dec-threads instead.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000536
537--with-sgi-dl: On SGI IRIX 4, dynamic loading of extension modules is
538 supported by the "dl" library by Jack Jansen, which is
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000539 ftp'able from ftp://ftp.cwi.nl/pub/dynload/dl-1.6.tar.Z.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000540 This is enabled (after you've ftp'ed and compiled the dl
541 library!) by passing --with-sgi-dl=DIRECTORY where DIRECTORY
542 is the absolute pathname of the dl library. (Don't bother on
543 IRIX 5, it already has dynamic linking using SunOS style
544 shared libraries.) Support for this feature is deprecated.
545
546--with-dl-dld: Dynamic loading of modules is rumoured to be supported
547 on some other systems: VAX (Ultrix), Sun3 (SunOS 3.4), Sequent
548 Symmetry (Dynix), and Atari ST. This is done using a
549 combination of the GNU dynamic loading package
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000550 (ftp://ftp.cwi.nl/pub/dynload/dl-dld-1.1.tar.Z) and an
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000551 emulation of the SGI dl library mentioned above (the emulation
552 can be found at
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000553 ftp://ftp.cwi.nl/pub/dynload/dld-3.2.3.tar.Z). To
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000554 enable this, ftp and compile both libraries, then call the
555 configure passing it the option
556 --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY where DL_DIRECTORY is
557 the absolute pathname of the dl emulation library and
558 DLD_DIRECTORY is the absolute pathname of the GNU dld library.
559 (Don't bother on SunOS 4 or 5, they already have dynamic
560 linking using shared libraries.) Support for this feature is
561 deprecated.
562
563--with-libm, --with-libc: It is possible to specify alternative
564 versions for the Math library (default -lm) and the C library
565 (default the empty string) using the options
566 --with-libm=STRING and --with-libc=STRING, respectively. E.g.
567 if your system requires that you pass -lc_s to the C compiler
568 to use the shared C library, you can pass --with-libc=-lc_s.
569 These libraries are passed after all other libraries, the C
570 library last.
Guido van Rossum3ff96dd1996-07-30 18:05:04 +0000571
572--with-next-archs='arch1 arch2': Under NEXTSTEP, this will build
573 all compiled binaries with the architectures listed. Includes
574 correctly setting the target architecture specific resource
Guido van Rossumcc55c2d1996-10-21 15:14:27 +0000575 directory. (This option is not supported on other platforms.)
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000576
Guido van Rossumd02ba451996-07-31 17:36:01 +0000577--with-libs='libs': Add 'libs' to the LIBS that the python
578 linked against.
579
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000580
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000581Building for multiple architectures (using the VPATH feature)
582-------------------------------------------------------------
583
584If your file system is shared between multiple architectures, it
585usually is not necessary to make copies of the sources for each
586architecture you want to support. If the make program supports the
587VPATH feature, you can create an empty build directory for each
588architecture, and in each directory run the configure script (on the
589appropriate machine with the appropriate options). This creates the
590necessary subdirectories and the Makefiles therein. The Makefiles
591contain a line VPATH=... which points to directory containing the
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000592actual sources. (On SGI systems, use "smake -J1" instead of "make" if
593you use VPATH -- don't try gnumake.)
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000594
595For example, the following is all you need to build a minimal Python
596in /usr/tmp/python (assuming ~guido/src/python is the toplevel
597directory and you want to build in /usr/tmp/python):
598
599 $ mkdir /usr/tmp/python
600 $ cd /usr/tmp/python
601 $ ~guido/src/python/configure
602 [...]
603 $ make
604 [...]
605 $
606
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000607Note that Modules/Makefile copies the original Setup file to the build
608directory if it finds no Setup file there. This means that you can
609edit the Setup file for each architecture independently. For this
610reason, subsequent changes to the original Setup file are not tracked
611automatically, as they might overwrite local changes. To force a copy
612of a changed original Setup file, delete the target Setup file. (The
613makesetup script supports multiple input files, so if you want to be
614fancy you can change the rules to create an empty Setup.local if it
615doesn't exist and run it with arguments $(srcdir)/Setup Setup.local;
616however this assumes that you only need to add modules.)
617
618
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000619Building on non-UNIX systems
620----------------------------
621
Guido van Rossum31ae2071999-04-12 14:47:30 +0000622For Windows 95/98 or NT, assuming you have MS VC++ 5.0 or 6.0, the
623project files are in PCbuild, the workspace is pcbuild.dsw. (The
624project files are for VC++ 5.0, but VC++ 6.0 will convert them for
625you -- start VC++ and then use Open Workspace.)
Guido van Rossum8d7d4ed1996-07-30 21:41:07 +0000626
Guido van Rossum31ae2071999-04-12 14:47:30 +0000627For other non-Unix Windows compilers, in particular Windows 3.1 and
628for OS/2, enter the directory "PC" and read the file "readme.txt".
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000629
630For the Mac, a separate source distribution will be made available,
631for use with the CodeWarrior compiler. If you are interested in Mac
632development, join the PythonMac Special Interest Group
633(http://www.python.org/sigs/pythonmac-sig/, or send email to
634pythonmac-sig-request@python.org).
635
636Of course, there are also binary distributions available for these
637platforms -- see http://www.python.org/python/.
638
639To port Python to a new non-UNIX system, you will have to fake the
640effect of running the configure script manually (for Mac and PC, this
641has already been done for you). A good start is to copy the file
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000642config.h.in to config.h and edit the latter to reflect the actual
643configuration of your system. Most symbols must simply be defined as
6441 only if the corresponding feature is present and can be left alone
645otherwise; however RETSIGTYPE must always be defined, either as int or
646as void, and the *_t type symbols must be defined as some variant of
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000647int if they need to be defined at all.
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000648
649
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000650
651Miscellaneous issues
652====================
653
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000654Documentation
655-------------
656
Fred Drake0e6444c1999-05-17 19:35:01 +0000657All documentation is provided online in a variety of formats. In
658order of importance for new users: Tutorial, Library Reference,
659Language Reference, Extending & Embedding, and the Python/C API.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000660Especially the Library Reference is of immense value since much of
661Python's power (including the built-in data types and functions!) is
Fred Drake0e6444c1999-05-17 19:35:01 +0000662described there.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000663
Fred Drake0e6444c1999-05-17 19:35:01 +0000664All documentation is also available online via the Python web site
665(http://www.python.org/, see below). It is available online for
666occaissional reference, or can be downloaded in many formats for
667faster access. The documents are available in HTML, PostScript, PDF,
668HTML Help, and LaTeX; the LaTeX version is primarily for documentation
669authors or people with special formatting requirements.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000670
671
672Emacs mode
673----------
674
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000675There's an excellent Emacs editing mode for Python code; see the file
676Misc/python-mode.el. Originally written by the famous Tim Peters, it
677is now maintained by the equally famous Barry Warsaw
Barry Warsawfe216b71998-05-29 20:56:34 +0000678<bwarsaw@cnri.reston.va.us>. The latest version, along with various
679other contributed Python-related Emacs goodies, is online at
680<http://www.python.org/emacs/python-mode>. And if you are planning to
681edit the Python C code, please pick up the latest version of CC Mode
682<http://www.python.org/emacs/cc-mode>; it contains a "python" style
683used throughout most of the Python C source files.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000684
685
Guido van Rossum8d7d4ed1996-07-30 21:41:07 +0000686Web site
687--------
688
689Python's own web site has URL http://www.python.org/. Come visit us!
Guido van Rossuma16e2751998-04-13 20:14:05 +0000690There are a number of mirrors, and a list of mirrors is accessible
691from the home page -- try a mirror that's close you you.
Guido van Rossum8d7d4ed1996-07-30 21:41:07 +0000692
693
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000694Ftp site
695--------
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000696
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000697Python's own ftp site is ftp://ftp.python.org/pub/python/. There are
Guido van Rossuma16e2751998-04-13 20:14:05 +0000698numerous mirrors; the list of mirrors is accessible from
699http://www.python.org/.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000700
701
Guido van Rossuma16e2751998-04-13 20:14:05 +0000702Newsgroups
703----------
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000704
Guido van Rossuma16e2751998-04-13 20:14:05 +0000705Read comp.lang.python, a high-volume discussion newsgroup about
706Python, or comp.lang.python.announce, a low-volume moderated newsgroup
707for Python-related announcements. These are also accessible as
708mailing lists, see the next item.
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000709
Guido van Rossuma16e2751998-04-13 20:14:05 +0000710Archives are accessible via Deja News; the Python website has a
711query form for the archives at http://www.python.org/search/.
712
713
714Mailing lists
715-------------
716
717See http://www.python.org/psa/MailingLists.html for an overview of the
718many Python related mailing lists.
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000719
720
721Bug reports
722-----------
723
Guido van Rossuma16e2751998-04-13 20:14:05 +0000724Bugs are best reported to the comp.lang.python newsgroup (or the
725Python mailing list) -- see the section "Newsgroups" above. Before
726posting, check the newsgroup archives (see above) to see if your bug
727has already been reported! If you don't want to go public, send them
728to me: <guido@python.org>.
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000729
730
731Questions
732---------
733
Guido van Rossum49523691997-08-15 18:30:14 +0000734For help, if you can't find it in the manuals or on the web site, it's
735best to post to the comp.lang.python or the Python mailing list (see
736above). If you specifically don't want to involve the newsgroup or
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000737mailing list, send questions to <python-help@python.org> (a group of
738volunteers which does *not* include me). Because of my work and email
739volume, I'm often be slow in answering questions sent to me directly;
740I prefer to answer questions posted to the newsgroup.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000741
742
743The Tk interface
744----------------
745
746Tk (the user interface component of John Ousterhout's Tcl language) is
747also usable from Python. Since this requires that you first build and
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000748install Tcl/Tk, the Tk interface is not enabled by default. Python
749supports all Tcl/Tk versions from version 7.5/4.1 through 8.0 (and it
750is expected that it will also work with newer versions). Tcl/Tk
Guido van Rossum64773801997-11-26 17:07:02 +00007517.4/4.0 is no longer supported. 8.0 or any later non-alpha non-beta
752release is recommended.
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000753
Guido van Rossum64773801997-11-26 17:07:02 +0000754See http://sunscript.sun.com/ for more info on Tcl/Tk, including the
755on-line manual pages.
756
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000757
758To enable the Python/Tk interface, once you've built and installed
Guido van Rossum64773801997-11-26 17:07:02 +0000759Tcl/Tk, load the file Modules/Setup in your favorite text editor and
760search for the string "_tkinter". Then follow the instructions found
761there. If you have installed Tcl/Tk or X11 in unusual places, you
762will have to edit the first line to fix or add -I and -L options.
763(Also see the general instructions at the top of that file.)
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000764
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000765There is little documentation on how to use Tkinter; however most of
766the Tk manual pages apply quite straightforwardly. Begin with
767fetching the "Tk Lifesaver" document,
768e.g. ftp://ftp.python.org/pub/python/doc/tkinter-doc.tar.gz (a gzipped
769tar file containing a PostScript file) or the on-line version
770http://www.python.org/doc/life-preserver/index.html. Reading the
771Tkinter.py source will reveal most details on how Tkinter calls are
772translated into Tcl code.
773
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000774A more recent introduction to Tkinter programming, by Fredrik Lundh,
775is at http://www.pythonware.com/library/tkinter/introduction/index.htm.
776
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000777There are demos in the Demo/tkinter directory, in the subdirectories
778guido, matt and www (the matt and guido subdirectories have been
779overhauled to use more recent Tkinter coding conventions).
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000780
781Note that there's a Python module called "Tkinter" (capital T) which
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000782lives in Lib/tkinter/Tkinter.py, and a C module called "_tkinter"
783(lower case t and leading underscore) which lives in
784Modules/_tkinter.c. Demos and normal Tk applications only import the
785Python Tkinter module -- only the latter uses the C _tkinter module
786directly. In order to find the C _tkinter module, it must be compiled
787and linked into the Python interpreter -- the _tkinter line in the
788Setup file does this. In order to find the Python Tkinter module,
789sys.path must be set correctly -- the TKPATH assignment in the Setup
790file takes care of this, but only if you install Python properly
791("make install libinstall"). (You can also use dynamic loading for
792the C _tkinter module, in which case you must manually fix up sys.path
793or set $PYTHONPATH for the Python Tkinter module.)
Guido van Rossum84c8c7f1995-08-28 02:44:24 +0000794
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000795
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000796Distribution structure
797----------------------
798
799Most subdirectories have their own README file. Most files have
800comments.
801
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000802Demo/ Demonstration scripts, modules and programs
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000803Grammar/ Input for the parser generator
804Include/ Public header files
805Lib/ Python library modules
806Makefile.in Source from which config.status creates Makefile
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000807Misc/ Miscellaneous useful files
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000808Modules/ Implementation of most built-in modules
809Objects/ Implementation of most built-in object types
Guido van Rossum64773801997-11-26 17:07:02 +0000810PC/ PC porting files (DOS, Windows, OS/2)
811PCbuild/ Directory where you should build for Windows NT/95
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000812Parser/ The parser and tokenizer and their input handling
813Python/ The "compiler" and interpreter
814README The file you're reading now
815Tools/ Some useful programs written in Python
816acconfig.h Additional input for the autoheader program
817config.h.in Source from which config.status creates config.h
818configure Configuration shell script (GNU autoconf output)
819configure.in Configuration specification (GNU autoconf input)
820install-sh Shell script used to install files
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000821
822The following files will (may) be created in the toplevel directory by
823the configuration and build processes:
824
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000825Makefile Build rules
826config.cache cache of configuration variables
827config.h Configuration header
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000828config.log Log from last configure run
829config.status Status from last run of configure script
Guido van Rossumd0a42e22000-03-31 20:16:45 +0000830libpython1.6.a The library archive
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000831python The executable interpreter
832tags, TAGS Tags files for vi and Emacs
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000833
834
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000835Author's address
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000836================
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000837
838Guido van Rossum
Guido van Rossumfaf681a1996-06-20 14:32:08 +0000839CNRI
8401895 Preston White Drive
Guido van Rossum8d7d4ed1996-07-30 21:41:07 +0000841Reston, VA 20191
Guido van Rossumfaf681a1996-06-20 14:32:08 +0000842USA
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000843
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000844E-mail: guido@cnri.reston.va.us or guido@python.org
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000845
846
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000847
848Copyright notice
849================
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000850
851The Python source is copyrighted, but you can freely use and copy it
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000852as long as you don't change or remove the copyright notice:
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000853
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000854----------------------------------------------------------------------
Guido van Rossumaf5b83e1995-01-04 19:02:35 +0000855Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
856The Netherlands.
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000857
858 All Rights Reserved
859
Guido van Rossumc561e5d1994-08-23 13:52:46 +0000860Permission to use, copy, modify, and distribute this software and its
861documentation for any purpose and without fee is hereby granted,
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000862provided that the above copyright notice appear in all copies and that
Guido van Rossumc561e5d1994-08-23 13:52:46 +0000863both that copyright notice and this permission notice appear in
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000864supporting documentation, and that the names of Stichting Mathematisch
Guido van Rossumf501b4e1996-10-25 14:32:48 +0000865Centrum or CWI or Corporation for National Research Initiatives or
866CNRI not be used in advertising or publicity pertaining to
867distribution of the software without specific, written prior
868permission.
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000869
Guido van Rossumf501b4e1996-10-25 14:32:48 +0000870While CWI is the initial source for this software, a modified version
871is made available by the Corporation for National Research Initiatives
872(CNRI) at the Internet address ftp://ftp.python.org.
873
874STICHTING MATHEMATISCH CENTRUM AND CNRI DISCLAIM ALL WARRANTIES WITH
875REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
876MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH
877CENTRUM OR CNRI BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
878DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
879PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
880TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
881PERFORMANCE OF THIS SOFTWARE.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000882----------------------------------------------------------------------
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000883
884
Guido van Rossumfaf681a1996-06-20 14:32:08 +0000885--Guido van Rossum (home page: http://www.python.org/~guido/)