blob: e5ea8732ff4ac1566bc07f2cfc7b9b52230e3caf [file] [log] [blame]
Guido van Rossum627b2d71993-12-24 10:39:16 +00001This is an ALPHA release of Python 1.0 for UNIX. Currently it builds
2a rather minimal executable and requires that you already have Python
30.9.9 (or at least its library).
4
5Instructions for building:
6
7(1) Run the configure shell script:
8
9 ./configure
10
11This may take a minute or two -- it does a rather thorough
12investigation of your system to find out many compile-time flags. It
13prints messages but does not ask questions. When finished, it will
14create config.status in the current directory, as well as Makefile in
15each of the subdirectories Parser, Objects and Python. Note that
16unless you have the CC shell environment variable set to the name of
17your C compiler, it will attempt to find the GNU C compiler (gcc) and
18use it if it finds it. On some systems a broken gcc may be installed;
19put CC=cc in the environment to override it. On some systems it may
20be interesting to compare both compilers. (Note: the Makefile has
21been rigged in such a way that it will run configure if you haven't
22done so.)
23
24(2) Run Make:
25
26 make
27
Guido van Rossum6085e321993-12-26 18:24:40 +000028This will recursively run Make in each of the Parser, Grammar, Objects
29and Python subdirectories. In Parser it builds an executable "pgen"
30and a library libParser.a. In Grammar it runs Parser/pgen to generate
31graminit.[ch] which are copied to Includes and Python, respectively.
32In Objects it builds a library libObjects.a. In Python it builds a
33library libPython.a and an executable "python".
Guido van Rossum627b2d71993-12-24 10:39:16 +000034
35(3) Test the resulting executable:
36
37 Python/python -c 'import testall'
38
39For now, this will assume that you have a working version of Python
40release 0.9.9 installed in /usr/local (it uses the Python library from
41/usr/local/lib/python) or that your PYTHONPATH shell environment
42variable points to the 0.9.9 Python library.
43
44(4) Optionally: read Extensions/README and try to build a Python with
45all the extensions that make sense on your system. (Note: some
46extensions are not supported yet.)
47
48(5) Give feedback:
49
50 Mail guido@cwi.nl
51
52Please tell me whether the build succeeded or not. If you needed to
53edit *any* file, tell me which file, why and how (send me a diff or a
54copy of the modified file if you can). If you get stuck, please send
55me the error output. Don't forget to mention the operating system,
56compiler and hardware version that you used, e.g. "Solaris 2.2 with
57gcc version cygnus-2.0.2 on a dual processor Sparcstation 10" or "IRIX
585.1 with standard cc on an Indigo XS-24 with R4000 CPU". If you can
59build the core interpreter but get stuck building an extended version,
60let me know which extensions gave problems and how.
61
62--Guido van Rossum, CWI, Amsterdam <Guido.van.Rossum@cwi.nl>
63URL: <http://www.cwi.nl/cwi/people/Guido.van.Rossum.html>