Guido van Rossum | 3ff96dd | 1996-07-30 18:05:04 +0000 | [diff] [blame] | 1 | This is Python release 1.4 beta 2 |
Guido van Rossum | faf681a | 1996-06-20 14:32:08 +0000 | [diff] [blame] | 2 | ================================= |
| 3 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 4 | It's a beta release. Use this if you want to help me iron the last |
| 5 | wrinkles out of the distribution before I release the real version |
| 6 | 1.4. In particular, I'm interested in porting experiences to Unix |
| 7 | boxes. Python should build out of the box using "./configure; make". |
Guido van Rossum | faf681a | 1996-06-20 14:32:08 +0000 | [diff] [blame] | 8 | Also try running configue with the --with-thread and --with-readline |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 9 | options (described below). AIX users: please try the new shared |
| 10 | library support! |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12 | |
Guido van Rossum | 8d7d4ed | 1996-07-30 21:41:07 +0000 | [diff] [blame] | 13 | What's new in this release? |
| 14 | --------------------------- |
Guido van Rossum | 3ff96dd | 1996-07-30 18:05:04 +0000 | [diff] [blame] | 15 | |
Guido van Rossum | 8d7d4ed | 1996-07-30 21:41:07 +0000 | [diff] [blame] | 16 | A list of things that changed since 1.4 beta 1 can be found in |
| 17 | Misc/NEWS. This file will eventually be updated to also list what's |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 18 | new since to 1.3; in the mean time, you can have a look at |
| 19 | http://www.python.org/workshops/1996-06/future.html (though there are |
| 20 | some minor deviations from what was promised there, as usual). |
Guido van Rossum | 3ff96dd | 1996-07-30 18:05:04 +0000 | [diff] [blame] | 21 | |
| 22 | |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 23 | What is Python anyway? |
| 24 | ---------------------- |
| 25 | |
| 26 | Python is an interpreted object-oriented programming language, and is |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 27 | often compared to Tcl, Perl, Scheme or Java. For a quick summary of |
| 28 | what Python can mean for a UNIX/C programmer, read Misc/BLURB.LUTZ. |
| 29 | If you have web access, point your browser to |
| 30 | http://www.python.org. |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 31 | |
| 32 | |
| 33 | If you don't read instructions |
| 34 | ------------------------------ |
| 35 | |
| 36 | Congratulations on getting this far. :-) |
| 37 | |
| 38 | To start building right away (on UNIX): type "./configure" in the |
| 39 | current directory and when it finishes, type "make". The section |
| 40 | Build Instructions below is still recommended reading. :-) |
| 41 | |
| 42 | |
| 43 | Copyright issues |
| 44 | ---------------- |
| 45 | |
| 46 | Python is COPYRIGHTED but free to use for all. See the full copyright |
| 47 | notice at the end of this file. |
| 48 | |
| 49 | The Python distribution is *not* affected by the GNU Public Licence |
| 50 | (GPL). There are interfaces to some GNU code but these are entirely |
| 51 | optional and no GNU code is distributed with Python. For all these |
| 52 | packages, GPL-free public domain versions also exist. |
| 53 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 54 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 55 | |
Guido van Rossum | ff84049 | 1995-09-18 22:02:47 +0000 | [diff] [blame] | 56 | A modest plug |
| 57 | ============= |
| 58 | |
Guido van Rossum | 0447a32 | 1995-10-08 01:22:33 +0000 | [diff] [blame] | 59 | ************************************************************************* |
Guido van Rossum | 3ff96dd | 1996-07-30 18:05:04 +0000 | [diff] [blame] | 60 | * * |
Guido van Rossum | 8d7d4ed | 1996-07-30 21:41:07 +0000 | [diff] [blame] | 61 | * If you use Python, please consider joining the Python Software * |
| 62 | * Activity (PSA). See http://www.python.org/psa/. * |
| 63 | * * |
| 64 | * Organizations making heavy use of Python are especially invited * |
| 65 | * to become corporate members! * |
Guido van Rossum | 3ff96dd | 1996-07-30 18:05:04 +0000 | [diff] [blame] | 66 | * * |
Guido van Rossum | 0447a32 | 1995-10-08 01:22:33 +0000 | [diff] [blame] | 67 | ************************************************************************* |
Guido van Rossum | ff84049 | 1995-09-18 22:02:47 +0000 | [diff] [blame] | 68 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 69 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 70 | |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 71 | Build instructions |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 72 | ================== |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 73 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 74 | Before you can build Python, you must first configure it. |
| 75 | Fortunately, the configuration and build process has been streamlined |
| 76 | for most Unix installations, so all you have to do is type a few |
| 77 | commands, optionally edit one file, and sit back. There are some |
| 78 | platforms where things are not quite as smooth; see the platform |
| 79 | specific notes below. If you want to build for multiple platforms |
| 80 | sharing the same source tree, see the section on VPATH below. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 81 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 82 | You start by running the script "./configure", which figures out your |
| 83 | system configuration and creates several Makefiles. (It takes a |
| 84 | minute or two -- please be patient!) When it's done, you are ready to |
| 85 | run make. You may want to pass options to the configure script -- see |
| 86 | the section below on configuration options and variables. |
| 87 | |
| 88 | To build Python, you normally type "make" in the toplevel directory. |
| 89 | This will recursively run make in each of the subdirectories Parser, |
| 90 | Objects, Python and Modules, creating a library file in each one. The |
| 91 | executable of the interpreter is built in the Modules subdirectory and |
| 92 | moved up here when it is built. If you want or need to, you can also |
| 93 | chdir into each subdirectory in turn and run make there manually (do |
| 94 | the Modules subdirectory last!). |
| 95 | |
| 96 | Once you have built an interpreter, see the subsections below on |
| 97 | testing, configuring additional modules, and installation. If you run |
| 98 | in trouble, see the next section. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 99 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 100 | |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 101 | Troubleshooting |
| 102 | --------------- |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 103 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 104 | See also the platform specific notes in the next section. |
| 105 | |
Guido van Rossum | faf681a | 1996-06-20 14:32:08 +0000 | [diff] [blame] | 106 | If recursive makes fail, try invoking make as "make MAKE=make". |
| 107 | |
| 108 | If you run into other trouble, see section 3 of the FAQ (file |
| 109 | Misc/FAQ) for hints on what can go wrong, and how to fix it. |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 110 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 111 | If you rerun the configure script with different options, remove all |
| 112 | object files by running "make clean" before rebuilding. Believe it or |
| 113 | not, "make clean" sometimes helps to clean up other inexplicable |
| 114 | problems as well. Try it before sending in a bug report! |
| 115 | |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 116 | |
| 117 | Platform specific notes |
| 118 | ----------------------- |
| 119 | |
Guido van Rossum | 0447a32 | 1995-10-08 01:22:33 +0000 | [diff] [blame] | 120 | (Some of these may no longer apply. If you find you can build Python |
| 121 | on these platforms without the special directions mentioned here, let |
| 122 | me know so I can remove them!) |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 123 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 124 | Linux: On Linux version 1.x, once you've built Python, use it to run |
| 125 | the regen script in the Lib/linux1 directory. Apparently |
| 126 | the files as distributed don't match the system headers on |
| 127 | some Linux versions. (The "h2py" command refers to |
| 128 | Tools/scripts/h2py.py.) The modules distributed for Linux 2.x |
| 129 | should be okay. |
Guido van Rossum | 8eca2c2 | 1996-02-14 18:37:46 +0000 | [diff] [blame] | 130 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 131 | AIX: The notes in Misc/AIX-NOTES probably no longer apply. A |
| 132 | complete overhaul of the shared library support is now in |
| 133 | place, the only thing that's missing is a bit of explanation. |
| 134 | Search for AIX in Modules/Setup(.in) for a clue. |
| 135 | |
Guido van Rossum | a3b4b61 | 1996-07-21 02:48:16 +0000 | [diff] [blame] | 136 | WARNING! In some versions of AIX, you get errors about |
| 137 | Invalid Indent when running the Python test set. This appears |
| 138 | to be a bug in the AIX compiler. Rebuild Parser/tokenizer.c |
| 139 | using OPT="" or OPT=-g, or use gcc. |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 140 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 141 | HP-UX: Read the file Misc/HPUX-NOTES if you want to be able to |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 142 | use shared libraries for dynamically loaded modules. |
| 143 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 144 | Minix: When using ack, use "CC=cc AR=aal RANLIB=: ./configure"! |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 145 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 146 | SCO: 1) Everything works much better if you add -U__STDC__ to the |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 147 | defs. This is because all the SCO header files are broken. |
| 148 | Anything that isn't mentioned in the C standard it's |
| 149 | conditionally excluded when __STDC__ is defined. |
| 150 | |
| 151 | 2) Due to the U.S. export restrictions, SCO broke the crypt |
| 152 | stuff out into a separate library, libcrypt_i.a so the LIBS |
| 153 | needed be set to: |
| 154 | |
| 155 | LIBS=' -lsocket -lcrypt_i' |
| 156 | |
Guido van Rossum | a3b4b61 | 1996-07-21 02:48:16 +0000 | [diff] [blame] | 157 | 3) According to at least one report, the above apply only to |
| 158 | SCO 3 -- Python builds out of the box on SCO 5. |
| 159 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 160 | SunOS: On SunOS 4.x, when using the native "cc" compiler, you have to |
| 161 | disable modules "cmath" and "operator" in Modules/Setup (see |
| 162 | the next section) and edit the various Makefiles to add |
| 163 | "-DWITHOUT_COMPLEX" to the CFLAGS variable, in order to |
| 164 | overcome the limitation to pre-ANSI C. (Or, of course, you |
| 165 | could get gcc :-). |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 166 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 167 | NeXT: Some more changes are in the works, but were submitted too |
| 168 | late to make it to beta2. You may want to remove "-Wall" from |
| 169 | the OPT variable, for instance, unless you are a masochist. |
| 170 | |
| 171 | |
| 172 | Configuring additional built-in modules |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 173 | --------------------------------------- |
Guido van Rossum | 19e0c26 | 1995-01-17 16:36:34 +0000 | [diff] [blame] | 174 | |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 175 | You can configure the interpreter to contain fewer or more built-in |
| 176 | modules by editing the file Modules/Setup. This file is initially |
| 177 | copied (when the toplevel Makefile makes Modules/Makefile for the |
| 178 | first time) from Setup.in; if it does not exist yet, make a copy |
| 179 | yourself. Never edit Setup.in -- always edit Setup. Read the |
| 180 | comments in the file for information on what kind of edits you can |
| 181 | make. When you have edited Setup, Makefile and config.c in Modules |
| 182 | will automatically be rebuilt the next time you run make in the |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 183 | toplevel directory. (When working inside the Modules directory, use |
| 184 | "make Makefile; make".) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 185 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 186 | The default collection of modules should build on any Unix system, but |
| 187 | many optional modules should work on all modern Unices (e.g. try dbm, |
| 188 | mis, termios, timing, syslog, curses, new, soundex, parser). Often |
| 189 | the quickest way to determine whether a particular module works or not |
| 190 | is to see if it will build: enable it in Setup, then if you get |
| 191 | compilation or link errors, disable it -- you're missing support. |
| 192 | |
| 193 | On SGI IRIX, there are modules that interface to many SGI specific |
| 194 | system libraries, e.g. the GL library and the audio hardware. |
| 195 | |
| 196 | For SunOS and Solaris, enable module "sunaudiodev" to support the |
| 197 | audio device. |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 198 | |
| 199 | |
| 200 | Setting the optimization/debugging options |
| 201 | ------------------------------------------ |
| 202 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 203 | If you want or need to change the optimization/debugging options for |
| 204 | the C compiler, assign to the OPT variable on the toplevel make |
| 205 | command; e.g. "make OPT=-g" will build a debugging version of Python |
| 206 | on most platforms. The default is OPT=-O; a value for OPT in the |
| 207 | environment when the configure script is run overrides this default |
| 208 | (likewise for CC; and the initial value for LIBS is used as the base |
| 209 | set of libraries to link with). |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 210 | |
| 211 | |
| 212 | Testing |
| 213 | ------- |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 214 | |
| 215 | To test the interpreter that you have just built, type "make test". |
| 216 | This runs the test set silently, twice (once with no compiled files, |
| 217 | once with the compiled files left by the previous test run). Each |
| 218 | test run should print "All tests OK." and nothing more. (The test set |
| 219 | does not test the built-in modules, but will find most other problems |
| 220 | with the interpreter.) |
| 221 | |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 222 | IMPORTANT: If the tests fail and you decide to mail a bug report, |
| 223 | *don't* include the output of "make test". It is useless. Run the |
| 224 | following command instead: |
| 225 | |
| 226 | PYTHONPATH=../Lib:../Lib/test:./Modules ./python -c 'import testall' |
| 227 | |
| 228 | (substituting the top of the source tree for .. if you built in a |
| 229 | different directory). This gives the output of the tests and shows |
| 230 | which test failed. |
| 231 | |
| 232 | |
| 233 | Installing |
| 234 | ---------- |
| 235 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 236 | Installing Python was never this easy! |
Guido van Rossum | 8d7d4ed | 1996-07-30 21:41:07 +0000 | [diff] [blame] | 237 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 238 | To install the Python binary, library modules, shared library modules |
| 239 | (see below), include files, configuration files, and the manual page, |
| 240 | just type "make install". This will install all platform-independent |
| 241 | files in subdirectories the directory given with the --prefix option |
| 242 | to configure or the 'prefix' Make variable (default /usr/local), and |
| 243 | all binary and other platform-specific files in subdirectories if the |
| 244 | directory given by --exec-prefix or the 'exec_prefix' Make variable |
| 245 | (defaults to the --prefix directory). All subdirectories created will |
| 246 | have Python's version number in their name, e.g. the library modules |
| 247 | are installed in "/usr/local/lib/python1.4/" by default. The Python |
| 248 | binary is installed as "python1.4" and a hard link named "python" is |
| 249 | created. The only file not installed with a version number in its |
| 250 | name is the manual page, installed as "/usr/local/man/man1/python.1" |
| 251 | by default. |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 252 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 253 | If you have a previous installation of a pre-1.4 Python that you don't |
| 254 | want to replace yet, use "make altinstall". This installs the same |
| 255 | set of files as "make install" except it doesn't create the hard link |
| 256 | to "python1.4" named "python" and it doesn't install the manual page |
| 257 | at all. |
| 258 | |
| 259 | The only thing you may have to install manually is the Python mode for |
| 260 | Emacs. (But then again, more recent versions of Emacs may already |
| 261 | have it!) This is the file Misc/python-mode.el; follow the |
| 262 | instructions that came with Emacs for installation of site specific |
| 263 | files. |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 264 | |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 265 | |
| 266 | Configuration options and variables |
| 267 | ----------------------------------- |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 268 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 269 | Some special cases are handled by passing options to the configure |
| 270 | script. |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 271 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 272 | WARNING: if you rerun the configure script with different options, you |
| 273 | must run "make clean" before rebuilding. Exceptions to this rule: |
| 274 | after changing --prefix or --exec-prefix, all you need to do is remove |
| 275 | Modules/getpath.o; after changing --with-readline, just remove |
| 276 | Parser/myreadline.o. |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 277 | |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 278 | --with(out)-gcc: The configure script uses gcc (the GNU C compiler) if |
| 279 | it finds it. If you don't want this, or if this compiler is |
| 280 | installed but broken on your platform, pass the option |
| 281 | --without-gcc. You can also pass "CC=cc" (or whatever the |
| 282 | name of the proper C compiler is) in the environment, but the |
| 283 | advantage of using --without-gcc is that this option is |
| 284 | remembered by the config.status script for its --recheck |
| 285 | option. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 286 | |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 287 | --prefix, --exec-prefix: If you want to install the binaries and the |
| 288 | Python library somewhere else than in /usr/local/{bin,lib}, |
| 289 | you can pass the option --prefix=DIRECTORY; the interpreter |
| 290 | binary will be installed as DIRECTORY/bin/python and the |
| 291 | library files as DIRECTORY/lib/python/*. If you pass |
| 292 | --exec-prefix=DIRECTORY (as well) this overrides the |
| 293 | installation prefix for architecture-dependent files (like the |
| 294 | interpreter binary). Note that --prefix=DIRECTORY also |
| 295 | affects the default module search path (sys.path), when |
| 296 | Modules/config.c is compiled. Passing make the option |
| 297 | prefix=DIRECTORY (and/or exec_prefix=DIRECTORY) overrides the |
| 298 | prefix set at configuration time; this may be more convenient |
| 299 | than re-running the configure script if you change your mind |
| 300 | about the install prefix... |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 301 | |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 302 | --with-readline: You can use the GNU readline library to improve the |
Guido van Rossum | faf681a | 1996-06-20 14:32:08 +0000 | [diff] [blame] | 303 | interactive user interface. This gives you line editing and |
| 304 | command history when calling Python interactively. Unless GNU |
| 305 | readline is a standard part of your system (it is on Linux), |
| 306 | you need to configure build the GNU readline library before |
| 307 | running the configure script. Its sources are not distributed |
| 308 | with Python; you can ftp them from any GNU mirror site, or |
| 309 | from its home site: |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 310 | ftp://slc2.ins.cwru.edu/pub/dist/readline-2.0.tar.gz (or |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 311 | a higher version number -- using version 1.x is not |
| 312 | recommended). |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 313 | |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 314 | A GPL-free version was posted to comp.sources.misc in volume |
| 315 | 31 and is widely available from FTP archive sites, e.g. |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 316 | ftp://gatekeeper.dec.com/. |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 317 | |
| 318 | Pass the Python configure script the option |
| 319 | --with-readline=DIRECTORY where DIRECTORY is the absolute |
| 320 | pathname of the directory where you've built the readline |
Guido van Rossum | faf681a | 1996-06-20 14:32:08 +0000 | [diff] [blame] | 321 | library. If GNU readline is a standard part of your system, |
| 322 | don't pass '=DIRECTORY'. Some hints on building and using the |
| 323 | readline library are in the FAQ (file Misc/FAQ). |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 324 | |
Guido van Rossum | faf681a | 1996-06-20 14:32:08 +0000 | [diff] [blame] | 325 | --with-thread: On most Unix systems, you can now use multiple threads. |
| 326 | To enable this, pass --with-thread. If the library required |
| 327 | for threads lives in a peculiar place, you can use |
| 328 | --with-thread=DIRECTORY. In the Modules/Setup file, enable |
| 329 | the thread module. (Threads aren't enabled automatically |
| 330 | because there are run-time penalties when support for them is |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 331 | compiled in even if you don't use them.) IMPORTANT: run "make |
| 332 | clean" after changing (either enabling or disabling) this |
| 333 | option! |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 334 | |
| 335 | --with-sgi-dl: On SGI IRIX 4, dynamic loading of extension modules is |
| 336 | supported by the "dl" library by Jack Jansen, which is |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 337 | ftp'able from ftp://ftp.cwi.nl/pub/dynload/dl-1.6.tar.Z. |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 338 | This is enabled (after you've ftp'ed and compiled the dl |
| 339 | library!) by passing --with-sgi-dl=DIRECTORY where DIRECTORY |
| 340 | is the absolute pathname of the dl library. (Don't bother on |
| 341 | IRIX 5, it already has dynamic linking using SunOS style |
| 342 | shared libraries.) Support for this feature is deprecated. |
| 343 | |
| 344 | --with-dl-dld: Dynamic loading of modules is rumoured to be supported |
| 345 | on some other systems: VAX (Ultrix), Sun3 (SunOS 3.4), Sequent |
| 346 | Symmetry (Dynix), and Atari ST. This is done using a |
| 347 | combination of the GNU dynamic loading package |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 348 | (ftp://ftp.cwi.nl/pub/dynload/dl-dld-1.1.tar.Z) and an |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 349 | emulation of the SGI dl library mentioned above (the emulation |
| 350 | can be found at |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 351 | ftp://ftp.cwi.nl/pub/dynload/dld-3.2.3.tar.Z). To |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 352 | enable this, ftp and compile both libraries, then call the |
| 353 | configure passing it the option |
| 354 | --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY where DL_DIRECTORY is |
| 355 | the absolute pathname of the dl emulation library and |
| 356 | DLD_DIRECTORY is the absolute pathname of the GNU dld library. |
| 357 | (Don't bother on SunOS 4 or 5, they already have dynamic |
| 358 | linking using shared libraries.) Support for this feature is |
| 359 | deprecated. |
| 360 | |
| 361 | --with-libm, --with-libc: It is possible to specify alternative |
| 362 | versions for the Math library (default -lm) and the C library |
| 363 | (default the empty string) using the options |
| 364 | --with-libm=STRING and --with-libc=STRING, respectively. E.g. |
| 365 | if your system requires that you pass -lc_s to the C compiler |
| 366 | to use the shared C library, you can pass --with-libc=-lc_s. |
| 367 | These libraries are passed after all other libraries, the C |
| 368 | library last. |
Guido van Rossum | 3ff96dd | 1996-07-30 18:05:04 +0000 | [diff] [blame] | 369 | |
| 370 | --with-next-archs='arch1 arch2': Under NEXTSTEP, this will build |
| 371 | all compiled binaries with the architectures listed. Includes |
| 372 | correctly setting the target architecture specific resource |
| 373 | directory. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 374 | |
Guido van Rossum | d02ba45 | 1996-07-31 17:36:01 +0000 | [diff] [blame] | 375 | --with-libs='libs': Add 'libs' to the LIBS that the python |
| 376 | linked against. |
| 377 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 378 | |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 379 | Building for multiple architectures (using the VPATH feature) |
| 380 | ------------------------------------------------------------- |
| 381 | |
| 382 | If your file system is shared between multiple architectures, it |
| 383 | usually is not necessary to make copies of the sources for each |
| 384 | architecture you want to support. If the make program supports the |
| 385 | VPATH feature, you can create an empty build directory for each |
| 386 | architecture, and in each directory run the configure script (on the |
| 387 | appropriate machine with the appropriate options). This creates the |
| 388 | necessary subdirectories and the Makefiles therein. The Makefiles |
| 389 | contain a line VPATH=... which points to directory containing the |
Guido van Rossum | 6b111b0 | 1994-10-11 15:03:34 +0000 | [diff] [blame] | 390 | actual sources. (On SGI systems, use "smake" instead of "make" if you |
| 391 | use VPATH -- don't try gnumake.) |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 392 | |
| 393 | For example, the following is all you need to build a minimal Python |
| 394 | in /usr/tmp/python (assuming ~guido/src/python is the toplevel |
| 395 | directory and you want to build in /usr/tmp/python): |
| 396 | |
| 397 | $ mkdir /usr/tmp/python |
| 398 | $ cd /usr/tmp/python |
| 399 | $ ~guido/src/python/configure |
| 400 | [...] |
| 401 | $ make |
| 402 | [...] |
| 403 | $ |
| 404 | |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 405 | Note that Modules/Makefile copies the original Setup file to the build |
| 406 | directory if it finds no Setup file there. This means that you can |
| 407 | edit the Setup file for each architecture independently. For this |
| 408 | reason, subsequent changes to the original Setup file are not tracked |
| 409 | automatically, as they might overwrite local changes. To force a copy |
| 410 | of a changed original Setup file, delete the target Setup file. (The |
| 411 | makesetup script supports multiple input files, so if you want to be |
| 412 | fancy you can change the rules to create an empty Setup.local if it |
| 413 | doesn't exist and run it with arguments $(srcdir)/Setup Setup.local; |
| 414 | however this assumes that you only need to add modules.) |
| 415 | |
| 416 | |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 417 | Building on non-UNIX systems |
| 418 | ---------------------------- |
| 419 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 420 | Building Python for a PC is now a piece of cake! |
Guido van Rossum | 8d7d4ed | 1996-07-30 21:41:07 +0000 | [diff] [blame] | 421 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 422 | Enter the directory "PC" and read the file "readme.txt". Most popular |
| 423 | non-Unix PC platforms and compilers are supported (Unix ports to the |
| 424 | PC such as Linux, FreeBSD or Solaris-x86 of course use the standard |
| 425 | Unix build instructions). |
| 426 | |
| 427 | For the Mac, a separate source distribution will be made available, |
| 428 | for use with the CodeWarrior compiler. If you are interested in Mac |
| 429 | development, join the PythonMac Special Interest Group |
| 430 | (http://www.python.org/sigs/pythonmac-sig/, or send email to |
| 431 | pythonmac-sig-request@python.org). |
| 432 | |
| 433 | Of course, there are also binary distributions available for these |
| 434 | platforms -- see http://www.python.org/python/. |
| 435 | |
| 436 | To port Python to a new non-UNIX system, you will have to fake the |
| 437 | effect of running the configure script manually (for Mac and PC, this |
| 438 | has already been done for you). A good start is to copy the file |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 439 | config.h.in to config.h and edit the latter to reflect the actual |
| 440 | configuration of your system. Most symbols must simply be defined as |
| 441 | 1 only if the corresponding feature is present and can be left alone |
| 442 | otherwise; however RETSIGTYPE must always be defined, either as int or |
| 443 | as void, and the *_t type symbols must be defined as some variant of |
| 444 | int if they need to be defined at all. Then arrange that the symbol |
| 445 | HAVE_CONFIG_H is defined during compilation (usually by passing an |
| 446 | argument of the form `-DHAVE_CONFIG_H' to the compiler, but this is |
| 447 | necessarily system-dependent). |
| 448 | |
| 449 | |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 450 | |
| 451 | Miscellaneous issues |
| 452 | ==================== |
| 453 | |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 454 | Documentation |
| 455 | ------------- |
| 456 | |
| 457 | All documentation is provided in the subdirectory Doc in the form of |
| 458 | LaTeX files. In order of importance for new users: Tutorial (tut), |
| 459 | Library Reference (lib), Language Reference (ref), Extending (ext). |
| 460 | Especially the Library Reference is of immense value since much of |
| 461 | Python's power (including the built-in data types and functions!) is |
| 462 | described here. |
| 463 | |
| 464 | To print the documentation from the LaTeX files, chdir into the Doc |
| 465 | subdirectory, type "make" (let's hope you have LaTeX installed!), and |
| 466 | send the four resulting PostScript files (tut.ps, lib.ps, ref.ps, and |
| 467 | ext.ps) to the printer. See the README file there. |
| 468 | |
| 469 | All documentation is also available on-line via the World-Wide Web |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 470 | (WWW): http://www.python.org. It can also be downloaded |
Guido van Rossum | faf681a | 1996-06-20 14:32:08 +0000 | [diff] [blame] | 471 | separately from the ftp archives (see below) in Emacs INFO, HTML or |
| 472 | PostScript form -- see the FAQ (file Misc/FAQ) for more info. |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 473 | |
| 474 | |
| 475 | Emacs mode |
| 476 | ---------- |
| 477 | |
| 478 | There's an excellent Emacs editing mode for Python code; see the file |
| 479 | Misc/python-mode.el. Originally written by Tim Peters, who's no |
| 480 | longer on the net, it is now maintained by Barry Warsaw |
| 481 | <bwarsaw@cnri.reston.va.com>. |
| 482 | |
Guido van Rossum | 3c294ca | 1995-06-14 18:17:22 +0000 | [diff] [blame] | 483 | BTW, if you want to use font-lock for Python sources, here's something |
| 484 | to put in your .emacs file: |
| 485 | |
| 486 | (defun my-python-mode-hook () |
| 487 | (setq font-lock-keywords python-font-lock-keywords) |
| 488 | (font-lock-mode 1)) |
| 489 | (add-hook 'python-mode-hook 'my-python-mode-hook) |
| 490 | |
| 491 | |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 492 | |
| 493 | Bug reports |
| 494 | ----------- |
| 495 | |
| 496 | Bugs are best reported to the comp.lang.python newsgroup or the Python |
| 497 | mailing list -- see the section "Newsgroup and mailing list" below. |
| 498 | Before posting, read the FAQ (file Misc/FAQ) first to see if your |
| 499 | problem has already been answered! |
| 500 | |
| 501 | |
Guido van Rossum | 8d7d4ed | 1996-07-30 21:41:07 +0000 | [diff] [blame] | 502 | Web site |
| 503 | -------- |
| 504 | |
| 505 | Python's own web site has URL http://www.python.org/. Come visit us! |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 506 | There are a number of mirrors, listed on the home page -- try a mirror |
| 507 | that's close you you. |
Guido van Rossum | 8d7d4ed | 1996-07-30 21:41:07 +0000 | [diff] [blame] | 508 | |
| 509 | |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 510 | Ftp access |
| 511 | ---------- |
| 512 | |
Guido van Rossum | 8d7d4ed | 1996-07-30 21:41:07 +0000 | [diff] [blame] | 513 | Python's own ftp site is ftp.python.org, directory /pub/python. See |
| 514 | the FAQ (file Misc/FAQ) for a list of other ftp sites carrying the |
Guido van Rossum | faf681a | 1996-06-20 14:32:08 +0000 | [diff] [blame] | 515 | Python distribution. |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 516 | |
| 517 | |
| 518 | Newsgroup and mailing list |
| 519 | -------------------------- |
| 520 | |
Guido van Rossum | 8d7d4ed | 1996-07-30 21:41:07 +0000 | [diff] [blame] | 521 | There are a newsgroup and a mailing list devoted to Python. The |
| 522 | newsgroup, comp.lang.python, contains exactly the same messages as the |
| 523 | mailing list (though not always in the same order, due to the |
| 524 | mysterious nature of Usenet news' flooding algorithms). To subscribe |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 525 | to the mailing list, send mail containing your real name and e-mail |
| 526 | address to "python-list-request@cwi.nl" (a real person reads these |
| 527 | messages, so no LISTPROC or Majordomo commands, please). |
| 528 | |
| 529 | |
| 530 | The Tk interface |
| 531 | ---------------- |
| 532 | |
| 533 | Tk (the user interface component of John Ousterhout's Tcl language) is |
| 534 | also usable from Python. Since this requires that you first build and |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 535 | install Tcl/Tk, the Tk interface is not enabled by default. It works |
| 536 | with Tcl 7.5 and Tk 4.1 as well as with Tcl 7.4 and Tk 4.0. |
| 537 | |
| 538 | See http://www.smli.com/research/tcl/ for more info on where to get |
| 539 | Tcl/Tk. |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 540 | |
| 541 | To enable the Python/Tk interface, once you've built and installed |
| 542 | Tcl/Tk, all you need to do is edit two lines in Modules/Setup; search |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 543 | for the string "_tkinter". Uncomment one (normally the first) of the |
| 544 | lines beginning with "#_tkinter" and un-comment the line beginning |
| 545 | with "#TKPATH". If you have installed Tcl/Tk or X11 in unusual |
| 546 | places, you will have to edit the first line to fix or add -I and -L |
| 547 | options. See the Build Instructions above for more details. |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 548 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 549 | There is little documentation on how to use Tkinter; however most of |
| 550 | the Tk manual pages apply quite straightforwardly. Begin with |
| 551 | fetching the "Tk Lifesaver" document, |
| 552 | e.g. ftp://ftp.python.org/pub/python/doc/tkinter-doc.tar.gz (a gzipped |
| 553 | tar file containing a PostScript file) or the on-line version |
| 554 | http://www.python.org/doc/life-preserver/index.html. Reading the |
| 555 | Tkinter.py source will reveal most details on how Tkinter calls are |
| 556 | translated into Tcl code. |
| 557 | |
| 558 | There are demos in the Demo/tkinter directory, in the subdirectories |
| 559 | guido, matt and www (the matt and guido subdirectories have been |
| 560 | overhauled to use more recent Tkinter coding conventions). |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 561 | |
| 562 | Note that there's a Python module called "Tkinter" (capital T) which |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 563 | lives in Lib/tkinter/Tkinter.py, and a C module called "_tkinter" |
| 564 | (lower case t and leading underscore) which lives in |
| 565 | Modules/_tkinter.c. Demos and normal Tk applications only import the |
| 566 | Python Tkinter module -- only the latter uses the C _tkinter module |
| 567 | directly. In order to find the C _tkinter module, it must be compiled |
| 568 | and linked into the Python interpreter -- the _tkinter line in the |
| 569 | Setup file does this. In order to find the Python Tkinter module, |
| 570 | sys.path must be set correctly -- the TKPATH assignment in the Setup |
| 571 | file takes care of this, but only if you install Python properly |
| 572 | ("make install libinstall"). (You can also use dynamic loading for |
| 573 | the C _tkinter module, in which case you must manually fix up sys.path |
| 574 | or set $PYTHONPATH for the Python Tkinter module.) |
Guido van Rossum | 84c8c7f | 1995-08-28 02:44:24 +0000 | [diff] [blame] | 575 | |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 576 | |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 577 | Distribution structure |
| 578 | ---------------------- |
| 579 | |
| 580 | Most subdirectories have their own README file. Most files have |
| 581 | comments. |
| 582 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 583 | BUGS A list of known bugs (not completely up-to-date) |
| 584 | TODO A list of things that could be done (not up-to-date) |
| 585 | Demo/ Demonstration scripts, modules and programs |
| 586 | Doc/ Documentation (LaTeX sources) |
| 587 | Grammar/ Input for the parser generator |
| 588 | Include/ Public header files |
| 589 | Lib/ Python library modules |
| 590 | Makefile.in Source from which config.status creates Makefile |
| 591 | Misc/ Miscellaneous files |
| 592 | Modules/ Implementation of most built-in modules |
| 593 | Objects/ Implementation of most built-in object types |
| 594 | Parser/ The parser and tokenizer and their input handling |
| 595 | Python/ The "compiler" and interpreter |
| 596 | README The file you're reading now |
| 597 | Tools/ Some useful programs written in Python |
| 598 | acconfig.h Additional input for the autoheader program |
| 599 | config.h.in Source from which config.status creates config.h |
| 600 | configure Configuration shell script (GNU autoconf output) |
| 601 | configure.in Configuration specification (GNU autoconf input) |
| 602 | install-sh Shell script used to install files |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 603 | |
| 604 | The following files will (may) be created in the toplevel directory by |
| 605 | the configuration and build processes: |
| 606 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 607 | Makefile Build rules |
| 608 | config.cache cache of configuration variables |
| 609 | config.h Configuration header |
| 610 | config.log log from last configure run |
| 611 | config.status status from last run of configure script |
| 612 | python The executable interpreter |
| 613 | tags, TAGS Tags files for vi and Emacs |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 614 | |
| 615 | |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 616 | Author's address |
| 617 | ---------------- |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 618 | |
| 619 | Guido van Rossum |
Guido van Rossum | faf681a | 1996-06-20 14:32:08 +0000 | [diff] [blame] | 620 | CNRI |
| 621 | 1895 Preston White Drive |
Guido van Rossum | 8d7d4ed | 1996-07-30 21:41:07 +0000 | [diff] [blame] | 622 | Reston, VA 20191 |
Guido van Rossum | faf681a | 1996-06-20 14:32:08 +0000 | [diff] [blame] | 623 | USA |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 624 | |
Guido van Rossum | 8d7d4ed | 1996-07-30 21:41:07 +0000 | [diff] [blame] | 625 | E-mail: guido@cnri.reston.va.or or guido@python.org |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 626 | |
| 627 | |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 628 | |
| 629 | Copyright notice |
| 630 | ================ |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 631 | |
| 632 | The Python source is copyrighted, but you can freely use and copy it |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 633 | as long as you don't change or remove the copyright notice: |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 634 | |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 635 | ---------------------------------------------------------------------- |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 636 | Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, |
| 637 | The Netherlands. |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 638 | |
| 639 | All Rights Reserved |
| 640 | |
Guido van Rossum | c561e5d | 1994-08-23 13:52:46 +0000 | [diff] [blame] | 641 | Permission to use, copy, modify, and distribute this software and its |
| 642 | documentation for any purpose and without fee is hereby granted, |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 643 | provided that the above copyright notice appear in all copies and that |
Guido van Rossum | c561e5d | 1994-08-23 13:52:46 +0000 | [diff] [blame] | 644 | both that copyright notice and this permission notice appear in |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 645 | supporting documentation, and that the names of Stichting Mathematisch |
| 646 | Centrum or CWI not be used in advertising or publicity pertaining to |
| 647 | distribution of the software without specific, written prior permission. |
| 648 | |
| 649 | STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO |
| 650 | THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND |
| 651 | FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE |
| 652 | FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
| 653 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
| 654 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT |
| 655 | OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 656 | ---------------------------------------------------------------------- |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 657 | |
| 658 | |
Guido van Rossum | faf681a | 1996-06-20 14:32:08 +0000 | [diff] [blame] | 659 | --Guido van Rossum (home page: http://www.python.org/~guido/) |