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