blob: 7bdca0985d9be40af2833fe782d680bb674f3dae [file] [log] [blame]
Guido van Rossum901454e2000-06-29 22:28:44 +00001This is Python version 2.0
Guido van Rossum91447632000-04-11 17:11:09 +00002==========================
3
Guido van Rossum901454e2000-06-29 22:28:44 +00004There are various beta versions -- these are distinguishable through
5Include/patchlevel.h or by the name of the top-level directory and the
6tar 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 Rossum901454e2000-06-29 22:28:44 +000012See http://www.pythonlabs.com/.
13
14
15Why is it called version 2.0?
16-----------------------------
17
18While Pythoneers have grown fond of Python's exceedingly slow version
19incrementing, that same quality makes parts of the rest of the world
20think that Python is barely out of its first alpha test. Especially
21enterprise customers are often fearful of anything that's version 1.x!
22The new version number also clearly marks departure of Python's core
23development teal from CNRI to join BeOpen.com.
24
25Previously, the version number 2.0 was associated with a mythical and
26elusive incompatible future release. That release (still ways off,
27and not as incompatible as people fear!) is now referred to as Python
283000.
Guido van Rossum64773801997-11-26 17:07:02 +000029
Guido van Rossum64773801997-11-26 17:07:02 +000030
31If you don't read instructions
32------------------------------
33
34Congratulations on getting this far. :-)
35
36To start building right away (on UNIX): type "./configure" in the
37current directory and when it finishes, type "make". The section
38Build Instructions below is still recommended reading. :-)
Guido van Rossum3ff96dd1996-07-30 18:05:04 +000039
40
Guido van Rossum91cb9d21995-04-10 11:47:38 +000041What is Python anyway?
42----------------------
43
44Python is an interpreted object-oriented programming language, and is
Guido van Rossumc0be2f51997-10-08 05:05:28 +000045often compared to Tcl, Perl, Java or Scheme. To find out more, point
46your browser to http://www.python.org/.
47
48
49A modest plug
50-------------
51
52************************************************************************
53* Without your support, I won't be able to continue to work on Python! *
54************************************************************************
55
56If you use Python, please consider joining the Python Software
57Activity (PSA). See http://www.python.org/psa/.
58
59Organizations that make heavy use of Python are especially encouraged
Guido van Rossumde64eaf1998-10-17 19:44:20 +000060to become corporate members -- or better still, to join the Python
61Consortium (see http://www.python.org/consortium/).
Guido van Rossum91cb9d21995-04-10 11:47:38 +000062
63
Guido van Rossumf501b4e1996-10-25 14:32:48 +000064How do I learn Python?
65----------------------
66
Fred Drake0e6444c1999-05-17 19:35:01 +000067The official tutorial is still a good place to start; see
Guido van Rossumd0a42e22000-03-31 20:16:45 +000068http://www.python.org/doc/ for online and downloadable versions, as
69well as a list of other introductions, and reference documentation.
Guido van Rossumf501b4e1996-10-25 14:32:48 +000070
Guido van Rossumd0a42e22000-03-31 20:16:45 +000071There's a quickly growing set of books on Python. See
72http://www.python.org/psa/bookstore/ for a list.
Guido van Rossum8d90f9d1997-05-22 20:13:25 +000073
Guido van Rossumf501b4e1996-10-25 14:32:48 +000074
Guido van Rossum91cb9d21995-04-10 11:47:38 +000075Copyright issues
76----------------
77
78Python is COPYRIGHTED but free to use for all. See the full copyright
Guido van Rossum64773801997-11-26 17:07:02 +000079notice at the end of this file and in the file Misc/COPYRIGHT.
Guido van Rossum91cb9d21995-04-10 11:47:38 +000080
81The Python distribution is *not* affected by the GNU Public Licence
82(GPL). There are interfaces to some GNU code but these are entirely
Guido van Rossum64773801997-11-26 17:07:02 +000083optional and no GNU code is distributed with Python.
Guido van Rossum91cb9d21995-04-10 11:47:38 +000084
Guido van Rossum627b2d71993-12-24 10:39:16 +000085
Guido van Rossum901454e2000-06-29 22:28:44 +000086
Guido van Rossum433c8ad1994-08-01 12:07:07 +000087Build instructions
Guido van Rossum91cb9d21995-04-10 11:47:38 +000088==================
Guido van Rossum627b2d71993-12-24 10:39:16 +000089
Guido van Rossum6d9cc801996-08-01 17:31:22 +000090Before you can build Python, you must first configure it.
91Fortunately, the configuration and build process has been streamlined
92for most Unix installations, so all you have to do is type a few
93commands, optionally edit one file, and sit back. There are some
94platforms where things are not quite as smooth; see the platform
95specific notes below. If you want to build for multiple platforms
96sharing the same source tree, see the section on VPATH below.
Guido van Rossum627b2d71993-12-24 10:39:16 +000097
Guido van Rossum6d9cc801996-08-01 17:31:22 +000098You start by running the script "./configure", which figures out your
99system configuration and creates several Makefiles. (It takes a
100minute or two -- please be patient!) When it's done, you are ready to
101run make. You may want to pass options to the configure script -- see
102the section below on configuration options and variables.
103
104To build Python, you normally type "make" in the toplevel directory.
105This will recursively run make in each of the subdirectories Parser,
106Objects, Python and Modules, creating a library file in each one. The
107executable of the interpreter is built in the Modules subdirectory and
108moved up here when it is built. If you want or need to, you can also
109chdir into each subdirectory in turn and run make there manually (do
110the Modules subdirectory last!).
111
112Once you have built an interpreter, see the subsections below on
113testing, configuring additional modules, and installation. If you run
114in trouble, see the next section.
Guido van Rossum627b2d71993-12-24 10:39:16 +0000115
Guido van Rossum0a516c91994-09-12 10:58:40 +0000116
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000117Troubleshooting
118---------------
Guido van Rossum627b2d71993-12-24 10:39:16 +0000119
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000120See also the platform specific notes in the next section.
121
Guido van Rossumfaf681a1996-06-20 14:32:08 +0000122If recursive makes fail, try invoking make as "make MAKE=make".
123
Guido van Rossum49523691997-08-15 18:30:14 +0000124If you run into other trouble, see section 3 of the FAQ
Guido van Rossum901454e2000-06-29 22:28:44 +0000125(http://www.python.org/cgi-bin/faqw.py or
Guido van Rossum49523691997-08-15 18:30:14 +0000126http://www.python.org/doc/FAQ.html) for hints on what can go wrong,
127and how to fix it.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000128
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000129If you rerun the configure script with different options, remove all
130object files by running "make clean" before rebuilding. Believe it or
131not, "make clean" sometimes helps to clean up other inexplicable
132problems as well. Try it before sending in a bug report!
133
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000134If the configure script fails or doesn't seem to find things that
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000135should be there, inspect the config.log file. When you fix a
136configure problem, be sure to remove config.cache!
137
138If you get a warning for every file about the -Olimit option being no
139longer supported, you can ignore it. There's no foolproof way to know
140whether this option is needed; all I can do is test whether it is
141accepted without error. On some systems, e.g. older SGI compilers, it
142is essential for performance (specifically when compiling ceval.c,
143which has more basic blocks than the default limit of 1000). If the
144warning bothers you, edit the Makefile to remove "-Olimit 1500" from
145the OPT variable.
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000146
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000147
148Platform specific notes
149-----------------------
150
Guido van Rossum0447a321995-10-08 01:22:33 +0000151(Some of these may no longer apply. If you find you can build Python
152on these platforms without the special directions mentioned here, let
153me know so I can remove them!)
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000154
Guido van Rossumc0be2f51997-10-08 05:05:28 +000015564-bit platforms: The modules audioop, imageop and rgbimg don't work.
156 Don't try to enable them in the Modules/Setup file. They
157 contain code that is quite wordsize sensitive. (If you have a
158 fix, let me know!)
159
Guido van Rossum4462e931997-01-22 21:00:32 +0000160Solaris: When using Sun's C compiler with threads, at least on Solaris
161 2.5.1, you need to add the "-mt" compiler option (the simplest
162 way is probably to specify the compiler with this option as
163 the "CC" environment variable when running the configure
164 script).
165
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000166Linux: On Linux version 1.x, once you've built Python, use it to run
167 the regen script in the Lib/linux1 directory. Apparently
168 the files as distributed don't match the system headers on
169 some Linux versions. (The "h2py" command refers to
170 Tools/scripts/h2py.py.) The modules distributed for Linux 2.x
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000171 should be okay. Shared library support now works by default
Guido van Rossum4462e931997-01-22 21:00:32 +0000172 on ELF-based x86 Linux systems. (Note: when you change the
173 status of a module from static to shared, you must remove its
174 .o file or do a "make clean".)
175
Fred Drake61280911997-12-08 14:10:40 +0000176 Under RedHat Linux 5.0, if upgraded from a previous version,
177 remove the LinuxThreads packages. This is needed because
178 LinuxThreads conflicts with the new thread support provided by
179 glibc. Before running Python's configure script, use the
180 following commands as root (version numbers may differ; these
181 are from a stock 4.2 install):
182
183 % rpm -qa | grep ^linuxthread
184 linuxthreads-0.5-1
185 linuxthreads-devel-0.5-1
186 % rpm -e linuxthreads linuxthreads-devel
187
188 While Python only needs this to be done to allow thread
189 support to be included, the conflicts these packages create
190 with the new glibc may cause other packages which use threads
191 to fail as well, so their removal is a good idea regardless of
192 how you configure python.
193
Guido van Rossumfe23ad71999-04-12 19:01:45 +0000194 More recently, a problem with threads and fork() was tracked
195 down to a bug in the pthreads code in glibc version 2.0.5;
196 glibc version 2.0.7 solves the problem. This causes the
197 popen2 test to fail; problem and solution reported by Pablo
198 Bleyer.
199
Fred Drake61280911997-12-08 14:10:40 +0000200 Also under RedHat Linux 5.0, the crypt module now needs the
201 -lcrypt option. Uncomment this flag in Modules/Setup, or
202 comment out the crypt module in the same file.
203
Guido van Rossum59230501999-06-21 20:51:46 +0000204FreeBSD 3.x and probably platforms with NCurses that use libmytinfo or
205 similar: When using cursesmodule, the linking is not done in
206 the correct order with the defaults. Remove "-ltermcap" from
207 the readline entry in Setup, and use as curses entry: "curses
208 cursesmodule.c -lmytinfo -lncurses -ltermcap" - "mytinfo" (so
209 called on FreeBSD) should be the name of the auxiliary library
210 required on your platform. Normally, it would be linked
211 automatically, but not necessarily in the correct order.
212
Guido van Rossum6ae5d3d1997-05-14 21:39:05 +0000213DEC Unix: When enabling threads, use --with-dec-threads, not
Guido van Rossum9ac9a261998-02-16 22:19:21 +0000214 --with-thread. When using GCC, it is possible to get an
215 internal compiler error if optimization is used. This was
216 reported for GCC 2.7.2.3 on selectmodule.c. Manually compile
217 the affected file without optimization to solve the problem.
Guido van Rossum8eca2c21996-02-14 18:37:46 +0000218
Guido van Rossume1cdb161999-04-10 16:04:07 +0000219DEC Ultrix: compile with GCC to avoid bugs in the native compiler,
220 and pass SHELL=/bin/sh5 to Make when installing.
221
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000222AIX: A complete overhaul of the shared library support is now in
Guido van Rossumcbfcb171997-10-20 22:57:00 +0000223 place. See Misc/AIX-NOTES for some notes on how it's done.
Guido van Rossum9ac9a261998-02-16 22:19:21 +0000224 (The optimizer bug reported at this place in previous releases
225 has been worked around by a minimal code change.)
Guido van Rossumed7f9e21999-11-16 16:03:03 +0000226 In addition, Gary Duzan has a hint for C++ users: to enable
227 full C++ module support, set CC="xlC" (or CC="xlC_r" for thread
228 support in AIX 4.2.1).
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000229
Guido van Rossum59a88f41999-04-12 18:16:09 +0000230HP-UX: Please read the file Misc/HPUX-NOTES for shared libraries.
231 When using threading, you may have to add -D_REENTRANT to the
232 OPT variable in the top-level Makefile; reported by Pat Knight
233 this seems to make a difference (at least for HP-UX 10.20)
234 even though config.h defines it.
Guido van Rossum2094e041998-05-14 15:47:35 +0000235
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000236Minix: When using ack, use "CC=cc AR=aal RANLIB=: ./configure"!
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000237
Guido van Rossuma16e2751998-04-13 20:14:05 +0000238SCO: The following only apply to SCO 3; Python builds out of the box
239 on SCO 5 (or so I've heard).
240
241 1) Everything works much better if you add -U__STDC__ to the
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000242 defs. This is because all the SCO header files are broken.
Guido van Rossum64773801997-11-26 17:07:02 +0000243 Anything that isn't mentioned in the C standard is
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000244 conditionally excluded when __STDC__ is defined.
245
246 2) Due to the U.S. export restrictions, SCO broke the crypt
247 stuff out into a separate library, libcrypt_i.a so the LIBS
248 needed be set to:
249
250 LIBS=' -lsocket -lcrypt_i'
251
Guido van Rossuma16e2751998-04-13 20:14:05 +0000252SunOS 4.x: When using the standard "cc" compiler, certain modules may
Guido van Rossum64773801997-11-26 17:07:02 +0000253 not be compilable because they use non-K&R syntax. You should
254 be able to get a basic Python interpreter by commenting out
255 such modules in the Modules/Setup file, but I really recommend
256 using gcc.
257
258 When using the SunPro C compiler, you may want to use the
259 '-Xa' option instead of '-Xc', to enable some needed non-ANSI
260 Sunisms.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000261
Guido van Rossumcc55c2d1996-10-21 15:14:27 +0000262NeXT: To build fat binaries, use the --with-next-archs switch
263 described below.
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000264
Guido van Rossumb7f454d1997-12-02 19:44:31 +0000265QNX: Chris Herborth (chrish@qnx.com) writes:
266 configure works best if you use GNU bash; a port is available on
267 ftp.qnx.com in /usr/free. I used the following process to build,
Guido van Rossumd4493421998-12-22 16:37:01 +0000268 test and install Python 1.5.x under QNX:
Guido van Rossumb7f454d1997-12-02 19:44:31 +0000269
Guido van Rossumec95c7b1998-08-04 17:59:56 +0000270 1) CONFIG_SHELL=/usr/local/bin/bash CC=cc RANLIB=: \
271 ./configure --verbose --without-gcc --with-libm=""
Guido van Rossumb7f454d1997-12-02 19:44:31 +0000272
273 2) copy Modules/Setup.in to Modules/Setup; edit Modules/Setup to
274 activate everything that makes sense for your system... tested
275 here at QNX with the following modules:
276
Guido van Rossum6fa49e21998-08-11 17:31:39 +0000277 array, audioop, binascii, cPickle, cStringIO, cmath,
278 crypt, curses, errno, fcntl, gdbm, grp, imageop,
279 _locale, math, md5, new, operator, parser, pcre,
280 posix, pwd, readline, regex, reop, rgbimg, rotor,
281 select, signal, socket, soundex, strop, struct,
Guido van Rossumd4493421998-12-22 16:37:01 +0000282 syslog, termios, time, timing, zlib, audioop, imageop, rgbimg
Guido van Rossumb7f454d1997-12-02 19:44:31 +0000283
Guido van Rossumec95c7b1998-08-04 17:59:56 +0000284 3) make SHELL=/usr/local/bin/bash
285
286 or, if you feel the need for speed:
287
288 make SHELL=/usr/local/bin/bash OPT="-5 -Oil+nrt"
Guido van Rossumb7f454d1997-12-02 19:44:31 +0000289
Guido van Rossumec95c7b1998-08-04 17:59:56 +0000290 4) make SHELL=/usr/local/bin/bash test
291
Guido van Rossum6fa49e21998-08-11 17:31:39 +0000292 Using GNU readline 2.2 seems to behave strangely, but I
293 think that's a problem with my readline 2.2 port. :-\
Guido van Rossumec95c7b1998-08-04 17:59:56 +0000294
295 5) make SHELL=/usr/local/bin/bash install
Guido van Rossumb7f454d1997-12-02 19:44:31 +0000296
Guido van Rossum6fa49e21998-08-11 17:31:39 +0000297 If you get SIGSEGVs while running Python (I haven't yet, but
298 I've only run small programs and the test cases), you're
299 probably running out of stack; the default 32k could be a
300 little tight. To increase the stack size, edit the Makefile
301 in the Modules directory to read: LDFLAGS = -N 48k
Guido van Rossum40d63581997-08-14 19:45:30 +0000302
Guido van Rossumec95c7b1998-08-04 17:59:56 +0000303BeOS: Chris Herborth (chrish@qnx.com) writes:
304 See BeOS/README for notes about compiling/installing Python on
Guido van Rossum6fa49e21998-08-11 17:31:39 +0000305 BeOS R3 or later. Note that only the PowerPC platform is
Guido van Rossumd4493421998-12-22 16:37:01 +0000306 supported for R3; both PowerPC and x86 are supported for R4.
Guido van Rossumec95c7b1998-08-04 17:59:56 +0000307
Guido van Rossum1bf0bf41997-08-20 23:50:51 +0000308Cray T3E: Konrad Hinsen writes:
Guido van Rossum6fa49e21998-08-11 17:31:39 +0000309 1) Don't use gcc. It compiles Python/graminit.c into something
310 that the Cray assembler doesn't like. Cray's cc seems to work
311 fine.
312 2) Uncomment modules md5 (won't compile) and audioop (will
313 crash the interpreter during the test suite).
314 If you run the test suite, two tests will fail (rotate and
315 binascii), but these are not the modules you'd expect to need
316 on a Cray.
Guido van Rossum1bf0bf41997-08-20 23:50:51 +0000317
Guido van Rossum0078aaf1997-08-21 03:05:11 +0000318SGI: SGI's standard "make" utility (/bin/make or /usr/bin/make)
319 does not check whether a command actually changed the file it
320 is supposed to build. This means that whenever you say "make"
321 it will redo the link step. The remedy is to use SGI's much
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000322 smarter "smake " utility (/usr/sbin/smake), or GNU make. If
323 you set the first line of the Makefile to #!/usr/sbin/smake
324 smake will be invoked by make (likewise for GNU make).
Guido van Rossum0078aaf1997-08-21 03:05:11 +0000325
Guido van Rossum9ac9a261998-02-16 22:19:21 +0000326 A bug in the MIPSpro 7.1 compiler's optimizer seems to break
327 Modules/pypcre.c. The short term solution is to compile it
Guido van Rossum0dd010a1998-06-30 16:58:58 +0000328 without optimization. The bug is fixed in version 7.2.1 of
329 the compiler.
Guido van Rossum9ac9a261998-02-16 22:19:21 +0000330
Guido van Rossumf5ade401999-01-11 16:45:44 +0000331 A bug in gcc-2.8.1 sets sys.maxint to -1 which *also* seems to
332 break Modules/pypcre.c. The egcs versions of gcc fix this
Guido van Rossum583b0191999-01-11 16:47:30 +0000333 problem. Or use configure --without-gcc to compile with SGI's
334 compiler, if you have it. (Raj Srinivasan, Kelvin Chu)
Guido van Rossumf5ade401999-01-11 16:45:44 +0000335
Guido van Rossum64773801997-11-26 17:07:02 +0000336OS/2: If you are running Warp3 or Warp4 and have IBM's VisualAge C/C++
337 compiler installed, just change into the pc\os2vacpp directory
338 and type NMAKE. Threading and sockets are supported by default
339 in the resulting binaries of PYTHON15.DLL and PYTHON.EXE.
340
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000341
Guido van Rossumdc8a3cb1998-05-12 15:29:18 +0000342Configuring threads
343-------------------
344
345The main switch to configure threads is to run the configure script
346(see below) with the --with-thread switch (on DEC, use
347--with-dec-threads). Unfortunately, on some platforms, additional
348compiler and/or linker options are required. Below is a table of
349those options, collected by Bill Janssen. I would love to automate
350this process more, but the information below is not enough to write a
351patch for the configure.in file, so manual intervention is required.
352If you patch the configure.in file and are confident that the patch
353works, please send me the patch. (Don't bother patching the configure
354script itself -- it is regenerated each the configure.in file
355changes.)
356
357Compiler switches for threads
358.............................
359
360 OS/Compiler/threads Switches for use with threads
361 (POSIX is draft 10, DCE is draft 4) (1) compile only (2) compile & link
362
363 SunOS 5.{1-5}/{gcc,SunPro cc}/solaris (1) -D_REENTRANT (2) -mt
364 SunOS 5.5/{gcc,SunPro cc}/POSIX (1) -D_REENTRANT
365 DEC OSF/1 3.x/cc/DCE (1) -D_REENTRANT (2) -threads
366 (butenhof@zko.dec.com)
367 Digital UNIX 4.x/cc/DCE (1) -D_REENTRANT (2) -threads
368 (butenhof@zko.dec.com)
369 Digital UNIX 4.x/cc/POSIX (1) -D_REENTRANT (2) -pthread
370 (butenhof@zko.dec.com)
371 AIX 4.1.4/cc_r/d7 (nothing)
372 (buhrt@iquest.net)
373 AIX 4.1.4/cc_r4/DCE (nothing)
374 (buhrt@iquest.net)
375 IRIX 6.2/cc/POSIX (nothing)
376 (robertl@cwi.nl)
377
378
379Linker (ld) libraries and flags for threads
380...........................................
381
382 OS/threads Libraries/switches for use with threads
383
384 SunOS 5.{1-5}/solaris -lthread
385 SunOS 5.5/POSIX -lpthread
386 DEC OSF/1 3.x/DCE -lpthreads -lmach -lc_r -lc
387 (butenhof@zko.dec.com)
388 Digital UNIX 4.x/DCE -lpthreads -lpthread -lmach -lexc -lc
389 (butenhof@zko.dec.com)
390 Digital UNIX 4.x/POSIX -lpthread -lmach -lexc -lc
391 (butenhof@zko.dec.com)
392 AIX 4.1.4/{draft7,DCE} (nothing)
393 (buhrt@iquest.net)
394 IRIX 6.2/POSIX -lpthread
395 (jph@emilia.engr.sgi.com)
396
397
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000398Configuring additional built-in modules
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000399---------------------------------------
Guido van Rossum19e0c261995-01-17 16:36:34 +0000400
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000401You can configure the interpreter to contain fewer or more built-in
402modules by editing the file Modules/Setup. This file is initially
403copied (when the toplevel Makefile makes Modules/Makefile for the
404first time) from Setup.in; if it does not exist yet, make a copy
405yourself. Never edit Setup.in -- always edit Setup. Read the
406comments in the file for information on what kind of edits you can
407make. When you have edited Setup, Makefile and config.c in Modules
408will automatically be rebuilt the next time you run make in the
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000409toplevel directory. (When working inside the Modules directory, use
410"make Makefile; make".)
Guido van Rossum627b2d71993-12-24 10:39:16 +0000411
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000412The default collection of modules should build on any Unix system, but
413many optional modules should work on all modern Unices (e.g. try dbm,
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000414nis, termios, timing, syslog, curses, new, soundex, parser). Often
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000415the quickest way to determine whether a particular module works or not
416is to see if it will build: enable it in Setup, then if you get
417compilation or link errors, disable it -- you're missing support.
418
419On SGI IRIX, there are modules that interface to many SGI specific
420system libraries, e.g. the GL library and the audio hardware.
421
422For SunOS and Solaris, enable module "sunaudiodev" to support the
423audio device.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000424
Guido van Rossum4462e931997-01-22 21:00:32 +0000425In addition to the file Setup, you can also edit the file Setup.local.
426(the makesetup script processes both). You may find it more
427convenient to edit Setup.local and leave Setup alone. Then, when
428installing a new Python version, you can copy your old Setup.local
429file.
430
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000431
432Setting the optimization/debugging options
433------------------------------------------
434
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000435If you want or need to change the optimization/debugging options for
436the C compiler, assign to the OPT variable on the toplevel make
437command; e.g. "make OPT=-g" will build a debugging version of Python
438on most platforms. The default is OPT=-O; a value for OPT in the
439environment when the configure script is run overrides this default
440(likewise for CC; and the initial value for LIBS is used as the base
441set of libraries to link with).
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000442
443
444Testing
445-------
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000446
447To test the interpreter that you have just built, type "make test".
Guido van Rossum6ae5d3d1997-05-14 21:39:05 +0000448This runs the test set twice (once with no compiled files, once with
449the compiled files left by the previous test run). The test set
450produces some output. You can generally ignore the messages about
451skipped tests due to an optional feature that can't be imported (if
452you want to test those modules, edit Modules/Setup to configure them).
453If a messages is printed about a failed test or a traceback or core
Guido van Rossum24df6841997-12-30 04:32:30 +0000454dump is produced, something's wrong. On some Linux systems (those
455that are not yet using glibc 6), test_strftime fails due to a
456non-standard-compliant implementation of strftime() in the C library.
457Please ignore this, or upgrade to glibc version 6.
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000458
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000459IMPORTANT: If the tests fail and you decide to mail a bug report,
460*don't* include the output of "make test". It is useless. Run the
Guido van Rossum6ae5d3d1997-05-14 21:39:05 +0000461test that fails manually, as follows:
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000462
Guido van Rossum6ae5d3d1997-05-14 21:39:05 +0000463 python ../Lib/test/test_whatever.py
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000464
465(substituting the top of the source tree for .. if you built in a
Guido van Rossum6ae5d3d1997-05-14 21:39:05 +0000466different directory). This runs the test in verbose mode.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000467
468
469Installing
470----------
471
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000472To install the Python binary, library modules, shared library modules
473(see below), include files, configuration files, and the manual page,
Guido van Rossum64773801997-11-26 17:07:02 +0000474just type
475
476 make install
477
478This will install all platform-independent files in subdirectories the
479directory given with the --prefix option to configure or the 'prefix'
480Make variable (default /usr/local), and all binary and other
481platform-specific files in subdirectories if the directory given by
482--exec-prefix or the 'exec_prefix' Make variable (defaults to the
483--prefix directory).
484
485All subdirectories created will have Python's version number in their
486name, e.g. the library modules are installed in
Guido van Rossum901454e2000-06-29 22:28:44 +0000487"/usr/local/lib/python2.0/" by default. The Python binary is
488installed as "python2.0" and a hard link named "python" is created.
Guido van Rossum64773801997-11-26 17:07:02 +0000489The only file not installed with a version number in its name is the
490manual page, installed as "/usr/local/man/man1/python.1" by default.
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000491
Guido van Rossum901454e2000-06-29 22:28:44 +0000492If you have a previous installation of a pre-2.0 Python that you don't
Guido van Rossum64773801997-11-26 17:07:02 +0000493want to replace yet, use
494
495 make altinstall
496
497This installs the same set of files as "make install" except it
Guido van Rossum901454e2000-06-29 22:28:44 +0000498doesn't create the hard link to "python2.0" named "python" and it
Guido van Rossum64773801997-11-26 17:07:02 +0000499doesn't install the manual page at all.
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000500
501The only thing you may have to install manually is the Python mode for
502Emacs. (But then again, more recent versions of Emacs may already
503have it!) This is the file Misc/python-mode.el; follow the
504instructions that came with Emacs for installation of site specific
505files.
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000506
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000507
508Configuration options and variables
509-----------------------------------
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000510
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000511Some special cases are handled by passing options to the configure
512script.
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000513
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000514WARNING: if you rerun the configure script with different options, you
515must run "make clean" before rebuilding. Exceptions to this rule:
516after changing --prefix or --exec-prefix, all you need to do is remove
Guido van Rossumb06df271997-08-05 21:50:20 +0000517Modules/getpath.o.
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000518
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000519--with(out)-gcc: The configure script uses gcc (the GNU C compiler) if
520 it finds it. If you don't want this, or if this compiler is
521 installed but broken on your platform, pass the option
522 --without-gcc. You can also pass "CC=cc" (or whatever the
523 name of the proper C compiler is) in the environment, but the
524 advantage of using --without-gcc is that this option is
525 remembered by the config.status script for its --recheck
526 option.
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000527
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000528--prefix, --exec-prefix: If you want to install the binaries and the
529 Python library somewhere else than in /usr/local/{bin,lib},
530 you can pass the option --prefix=DIRECTORY; the interpreter
531 binary will be installed as DIRECTORY/bin/python and the
532 library files as DIRECTORY/lib/python/*. If you pass
533 --exec-prefix=DIRECTORY (as well) this overrides the
534 installation prefix for architecture-dependent files (like the
535 interpreter binary). Note that --prefix=DIRECTORY also
536 affects the default module search path (sys.path), when
537 Modules/config.c is compiled. Passing make the option
538 prefix=DIRECTORY (and/or exec_prefix=DIRECTORY) overrides the
539 prefix set at configuration time; this may be more convenient
540 than re-running the configure script if you change your mind
541 about the install prefix...
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000542
Guido van Rossumb06df271997-08-05 21:50:20 +0000543--with-readline: This option is no longer supported. To use GNU
544 readline, enable module "readline" in the Modules/Setup file.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000545
Guido van Rossumfaf681a1996-06-20 14:32:08 +0000546--with-thread: On most Unix systems, you can now use multiple threads.
Guido van Rossum4462e931997-01-22 21:00:32 +0000547 To enable this, pass --with-thread. (--with-threads is an
548 alias.) If the library required for threads lives in a
Guido van Rossum8d90f9d1997-05-22 20:13:25 +0000549 peculiar place, you can use --with-thread=DIRECTORY. NOTE:
550 you must also enable the thread module by uncommenting it in
551 the Modules/Setup file. (Threads aren't enabled automatically
552 because there are run-time penalties when support for them is
553 compiled in even if you don't use them.) IMPORTANT: run "make
554 clean" after changing (either enabling or disabling) this
Guido van Rossum0e13da91998-02-22 04:36:34 +0000555 option, or you will get link errors! Note: for DEC Unix use
556 --with-dec-threads instead.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000557
558--with-sgi-dl: On SGI IRIX 4, dynamic loading of extension modules is
559 supported by the "dl" library by Jack Jansen, which is
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000560 ftp'able from ftp://ftp.cwi.nl/pub/dynload/dl-1.6.tar.Z.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000561 This is enabled (after you've ftp'ed and compiled the dl
562 library!) by passing --with-sgi-dl=DIRECTORY where DIRECTORY
563 is the absolute pathname of the dl library. (Don't bother on
564 IRIX 5, it already has dynamic linking using SunOS style
565 shared libraries.) Support for this feature is deprecated.
566
567--with-dl-dld: Dynamic loading of modules is rumoured to be supported
568 on some other systems: VAX (Ultrix), Sun3 (SunOS 3.4), Sequent
569 Symmetry (Dynix), and Atari ST. This is done using a
570 combination of the GNU dynamic loading package
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000571 (ftp://ftp.cwi.nl/pub/dynload/dl-dld-1.1.tar.Z) and an
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000572 emulation of the SGI dl library mentioned above (the emulation
573 can be found at
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000574 ftp://ftp.cwi.nl/pub/dynload/dld-3.2.3.tar.Z). To
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000575 enable this, ftp and compile both libraries, then call the
576 configure passing it the option
577 --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY where DL_DIRECTORY is
578 the absolute pathname of the dl emulation library and
579 DLD_DIRECTORY is the absolute pathname of the GNU dld library.
580 (Don't bother on SunOS 4 or 5, they already have dynamic
581 linking using shared libraries.) Support for this feature is
582 deprecated.
583
584--with-libm, --with-libc: It is possible to specify alternative
585 versions for the Math library (default -lm) and the C library
586 (default the empty string) using the options
587 --with-libm=STRING and --with-libc=STRING, respectively. E.g.
588 if your system requires that you pass -lc_s to the C compiler
589 to use the shared C library, you can pass --with-libc=-lc_s.
590 These libraries are passed after all other libraries, the C
591 library last.
Guido van Rossum3ff96dd1996-07-30 18:05:04 +0000592
593--with-next-archs='arch1 arch2': Under NEXTSTEP, this will build
594 all compiled binaries with the architectures listed. Includes
595 correctly setting the target architecture specific resource
Guido van Rossumcc55c2d1996-10-21 15:14:27 +0000596 directory. (This option is not supported on other platforms.)
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000597
Guido van Rossumd02ba451996-07-31 17:36:01 +0000598--with-libs='libs': Add 'libs' to the LIBS that the python
599 linked against.
600
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000601
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000602Building for multiple architectures (using the VPATH feature)
603-------------------------------------------------------------
604
605If your file system is shared between multiple architectures, it
606usually is not necessary to make copies of the sources for each
607architecture you want to support. If the make program supports the
608VPATH feature, you can create an empty build directory for each
609architecture, and in each directory run the configure script (on the
610appropriate machine with the appropriate options). This creates the
611necessary subdirectories and the Makefiles therein. The Makefiles
612contain a line VPATH=... which points to directory containing the
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000613actual sources. (On SGI systems, use "smake -J1" instead of "make" if
614you use VPATH -- don't try gnumake.)
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000615
616For example, the following is all you need to build a minimal Python
617in /usr/tmp/python (assuming ~guido/src/python is the toplevel
618directory and you want to build in /usr/tmp/python):
619
620 $ mkdir /usr/tmp/python
621 $ cd /usr/tmp/python
622 $ ~guido/src/python/configure
623 [...]
624 $ make
625 [...]
626 $
627
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000628Note that Modules/Makefile copies the original Setup file to the build
629directory if it finds no Setup file there. This means that you can
630edit the Setup file for each architecture independently. For this
631reason, subsequent changes to the original Setup file are not tracked
632automatically, as they might overwrite local changes. To force a copy
633of a changed original Setup file, delete the target Setup file. (The
634makesetup script supports multiple input files, so if you want to be
635fancy you can change the rules to create an empty Setup.local if it
636doesn't exist and run it with arguments $(srcdir)/Setup Setup.local;
637however this assumes that you only need to add modules.)
638
639
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000640Building on non-UNIX systems
641----------------------------
642
Guido van Rossum31ae2071999-04-12 14:47:30 +0000643For Windows 95/98 or NT, assuming you have MS VC++ 5.0 or 6.0, the
644project files are in PCbuild, the workspace is pcbuild.dsw. (The
645project files are for VC++ 5.0, but VC++ 6.0 will convert them for
646you -- start VC++ and then use Open Workspace.)
Guido van Rossum8d7d4ed1996-07-30 21:41:07 +0000647
Guido van Rossum31ae2071999-04-12 14:47:30 +0000648For other non-Unix Windows compilers, in particular Windows 3.1 and
649for OS/2, enter the directory "PC" and read the file "readme.txt".
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000650
651For the Mac, a separate source distribution will be made available,
652for use with the CodeWarrior compiler. If you are interested in Mac
653development, join the PythonMac Special Interest Group
654(http://www.python.org/sigs/pythonmac-sig/, or send email to
655pythonmac-sig-request@python.org).
656
657Of course, there are also binary distributions available for these
658platforms -- see http://www.python.org/python/.
659
660To port Python to a new non-UNIX system, you will have to fake the
661effect of running the configure script manually (for Mac and PC, this
662has already been done for you). A good start is to copy the file
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000663config.h.in to config.h and edit the latter to reflect the actual
664configuration of your system. Most symbols must simply be defined as
6651 only if the corresponding feature is present and can be left alone
666otherwise; however RETSIGTYPE must always be defined, either as int or
667as void, and the *_t type symbols must be defined as some variant of
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000668int if they need to be defined at all.
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000669
670
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000671
672Miscellaneous issues
673====================
674
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000675Documentation
676-------------
677
Fred Drake0e6444c1999-05-17 19:35:01 +0000678All documentation is provided online in a variety of formats. In
679order of importance for new users: Tutorial, Library Reference,
680Language Reference, Extending & Embedding, and the Python/C API.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000681Especially the Library Reference is of immense value since much of
682Python's power (including the built-in data types and functions!) is
Fred Drake0e6444c1999-05-17 19:35:01 +0000683described there.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000684
Fred Drake0e6444c1999-05-17 19:35:01 +0000685All documentation is also available online via the Python web site
686(http://www.python.org/, see below). It is available online for
687occaissional reference, or can be downloaded in many formats for
688faster access. The documents are available in HTML, PostScript, PDF,
689HTML Help, and LaTeX; the LaTeX version is primarily for documentation
690authors or people with special formatting requirements.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000691
692
693Emacs mode
694----------
695
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000696There's an excellent Emacs editing mode for Python code; see the file
697Misc/python-mode.el. Originally written by the famous Tim Peters, it
698is now maintained by the equally famous Barry Warsaw
Guido van Rossum901454e2000-06-29 22:28:44 +0000699<bwarsaw@python.org>. The latest version, along with various
Barry Warsawfe216b71998-05-29 20:56:34 +0000700other contributed Python-related Emacs goodies, is online at
701<http://www.python.org/emacs/python-mode>. And if you are planning to
702edit the Python C code, please pick up the latest version of CC Mode
703<http://www.python.org/emacs/cc-mode>; it contains a "python" style
704used throughout most of the Python C source files.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000705
706
Guido van Rossum8d7d4ed1996-07-30 21:41:07 +0000707Web site
708--------
709
710Python's own web site has URL http://www.python.org/. Come visit us!
Guido van Rossuma16e2751998-04-13 20:14:05 +0000711There are a number of mirrors, and a list of mirrors is accessible
712from the home page -- try a mirror that's close you you.
Guido van Rossum8d7d4ed1996-07-30 21:41:07 +0000713
714
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000715Ftp site
716--------
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000717
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000718Python's own ftp site is ftp://ftp.python.org/pub/python/. There are
Guido van Rossuma16e2751998-04-13 20:14:05 +0000719numerous mirrors; the list of mirrors is accessible from
720http://www.python.org/.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000721
722
Guido van Rossuma16e2751998-04-13 20:14:05 +0000723Newsgroups
724----------
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000725
Guido van Rossuma16e2751998-04-13 20:14:05 +0000726Read comp.lang.python, a high-volume discussion newsgroup about
727Python, or comp.lang.python.announce, a low-volume moderated newsgroup
728for Python-related announcements. These are also accessible as
729mailing lists, see the next item.
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000730
Guido van Rossuma16e2751998-04-13 20:14:05 +0000731Archives are accessible via Deja News; the Python website has a
732query form for the archives at http://www.python.org/search/.
733
734
735Mailing lists
736-------------
737
738See http://www.python.org/psa/MailingLists.html for an overview of the
739many Python related mailing lists.
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000740
741
742Bug reports
743-----------
744
Guido van Rossuma16e2751998-04-13 20:14:05 +0000745Bugs are best reported to the comp.lang.python newsgroup (or the
746Python mailing list) -- see the section "Newsgroups" above. Before
747posting, check the newsgroup archives (see above) to see if your bug
748has already been reported! If you don't want to go public, send them
749to me: <guido@python.org>.
Guido van Rossumd0fe8451996-08-26 03:02:37 +0000750
751
752Questions
753---------
754
Guido van Rossum49523691997-08-15 18:30:14 +0000755For help, if you can't find it in the manuals or on the web site, it's
756best to post to the comp.lang.python or the Python mailing list (see
757above). If you specifically don't want to involve the newsgroup or
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000758mailing list, send questions to <python-help@python.org> (a group of
759volunteers which does *not* include me). Because of my work and email
760volume, I'm often be slow in answering questions sent to me directly;
761I prefer to answer questions posted to the newsgroup.
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000762
763
764The Tk interface
765----------------
766
767Tk (the user interface component of John Ousterhout's Tcl language) is
768also usable from Python. Since this requires that you first build and
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000769install Tcl/Tk, the Tk interface is not enabled by default. Python
770supports all Tcl/Tk versions from version 7.5/4.1 through 8.0 (and it
771is expected that it will also work with newer versions). Tcl/Tk
Guido van Rossum64773801997-11-26 17:07:02 +00007727.4/4.0 is no longer supported. 8.0 or any later non-alpha non-beta
773release is recommended.
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000774
Guido van Rossum64773801997-11-26 17:07:02 +0000775See http://sunscript.sun.com/ for more info on Tcl/Tk, including the
776on-line manual pages.
777
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000778
779To enable the Python/Tk interface, once you've built and installed
Guido van Rossum64773801997-11-26 17:07:02 +0000780Tcl/Tk, load the file Modules/Setup in your favorite text editor and
781search for the string "_tkinter". Then follow the instructions found
782there. If you have installed Tcl/Tk or X11 in unusual places, you
783will have to edit the first line to fix or add -I and -L options.
784(Also see the general instructions at the top of that file.)
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000785
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000786There is little documentation on how to use Tkinter; however most of
787the Tk manual pages apply quite straightforwardly. Begin with
788fetching the "Tk Lifesaver" document,
789e.g. ftp://ftp.python.org/pub/python/doc/tkinter-doc.tar.gz (a gzipped
790tar file containing a PostScript file) or the on-line version
791http://www.python.org/doc/life-preserver/index.html. Reading the
792Tkinter.py source will reveal most details on how Tkinter calls are
793translated into Tcl code.
794
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000795A more recent introduction to Tkinter programming, by Fredrik Lundh,
796is at http://www.pythonware.com/library/tkinter/introduction/index.htm.
797
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000798There are demos in the Demo/tkinter directory, in the subdirectories
799guido, matt and www (the matt and guido subdirectories have been
800overhauled to use more recent Tkinter coding conventions).
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000801
802Note that there's a Python module called "Tkinter" (capital T) which
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000803lives in Lib/tkinter/Tkinter.py, and a C module called "_tkinter"
804(lower case t and leading underscore) which lives in
805Modules/_tkinter.c. Demos and normal Tk applications only import the
806Python Tkinter module -- only the latter uses the C _tkinter module
807directly. In order to find the C _tkinter module, it must be compiled
808and linked into the Python interpreter -- the _tkinter line in the
809Setup file does this. In order to find the Python Tkinter module,
810sys.path must be set correctly -- the TKPATH assignment in the Setup
811file takes care of this, but only if you install Python properly
812("make install libinstall"). (You can also use dynamic loading for
813the C _tkinter module, in which case you must manually fix up sys.path
814or set $PYTHONPATH for the Python Tkinter module.)
Guido van Rossum84c8c7f1995-08-28 02:44:24 +0000815
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000816
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000817Distribution structure
818----------------------
819
820Most subdirectories have their own README file. Most files have
821comments.
822
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000823Demo/ Demonstration scripts, modules and programs
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000824Grammar/ Input for the parser generator
825Include/ Public header files
826Lib/ Python library modules
827Makefile.in Source from which config.status creates Makefile
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000828Misc/ Miscellaneous useful files
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000829Modules/ Implementation of most built-in modules
830Objects/ Implementation of most built-in object types
Guido van Rossum64773801997-11-26 17:07:02 +0000831PC/ PC porting files (DOS, Windows, OS/2)
832PCbuild/ Directory where you should build for Windows NT/95
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000833Parser/ The parser and tokenizer and their input handling
834Python/ The "compiler" and interpreter
835README The file you're reading now
836Tools/ Some useful programs written in Python
837acconfig.h Additional input for the autoheader program
838config.h.in Source from which config.status creates config.h
839configure Configuration shell script (GNU autoconf output)
840configure.in Configuration specification (GNU autoconf input)
841install-sh Shell script used to install files
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000842
843The following files will (may) be created in the toplevel directory by
844the configuration and build processes:
845
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000846Makefile Build rules
847config.cache cache of configuration variables
848config.h Configuration header
Guido van Rossumc0be2f51997-10-08 05:05:28 +0000849config.log Log from last configure run
850config.status Status from last run of configure script
Guido van Rossum901454e2000-06-29 22:28:44 +0000851libpython2.0.a The library archive
Guido van Rossum6d9cc801996-08-01 17:31:22 +0000852python The executable interpreter
853tags, TAGS Tags files for vi and Emacs
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000854
855
Guido van Rossum901454e2000-06-29 22:28:44 +0000856
857How to reach the author
858=======================
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000859
860Guido van Rossum
Guido van Rossum901454e2000-06-29 22:28:44 +0000861BeOpen.com
862160 Saratoga Avenue, Suite 46
863Santa Clara, CA 95051
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000864
Guido van Rossum901454e2000-06-29 22:28:44 +0000865E-mail: guido@beopen.com or guido@python.org
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000866
867
Guido van Rossum91cb9d21995-04-10 11:47:38 +0000868
869Copyright notice
870================
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000871
872The Python source is copyrighted, but you can freely use and copy it
Guido van Rossum901454e2000-06-29 22:28:44 +0000873as long as you don't change or remove the copyright notice. The
874copyright notice is found in the Misc/COPYRIGHT file.
Guido van Rossum433c8ad1994-08-01 12:07:07 +0000875
876
Guido van Rossumfaf681a1996-06-20 14:32:08 +0000877--Guido van Rossum (home page: http://www.python.org/~guido/)