Guido van Rossum | efce030 | 1997-12-31 00:04:54 +0000 | [diff] [blame] | 1 | This is Python release 1.5 |
| 2 | ========================== |
Guido van Rossum | faf681a | 1996-06-20 14:32:08 +0000 | [diff] [blame] | 3 | |
Guido van Rossum | efce030 | 1997-12-31 00:04:54 +0000 | [diff] [blame] | 4 | This version is officially released on Wednesday, December 31, 1997. |
| 5 | It doesn't differ very much from 1.5b2 (released on Dec. 12). |
Guido van Rossum | 7980826 | 1997-12-11 18:01:47 +0000 | [diff] [blame] | 6 | |
| 7 | |
Guido van Rossum | 8d7d4ed | 1996-07-30 21:41:07 +0000 | [diff] [blame] | 8 | What's new in this release? |
| 9 | --------------------------- |
Guido van Rossum | 3ff96dd | 1996-07-30 18:05:04 +0000 | [diff] [blame] | 10 | |
Guido van Rossum | 66d010a | 1997-11-26 17:37:31 +0000 | [diff] [blame] | 11 | There's a loooong list of changes since release 1.4 in the file |
| 12 | Misc/NEWS. Some highlights: |
Guido van Rossum | 33fde57 | 1997-05-09 02:40:09 +0000 | [diff] [blame] | 13 | |
Guido van Rossum | 66d010a | 1997-11-26 17:37:31 +0000 | [diff] [blame] | 14 | - It's much faster (almost twice for the Lib/test/pystone.py |
| 15 | benchmark.) |
Guido van Rossum | b06df27 | 1997-08-05 21:50:20 +0000 | [diff] [blame] | 16 | |
Guido van Rossum | 66d010a | 1997-11-26 17:37:31 +0000 | [diff] [blame] | 17 | - There is now an assert statement: ``assert <condition>'' or |
| 18 | ``assert <condition>, <errormessage>''. It raises AssertionError if |
| 19 | the condition evaluates to false. The default error message is |
| 20 | empty; the source text of the assertion statement is printed as part |
| 21 | of the traceback. |
| 22 | |
| 23 | - There is now built-in support for importing hierarchical module |
| 24 | names (e.g. "import spam.ham.eggs"); ni is declared obsolete. Note |
| 25 | that the built-in package support is somewhat simpler (no __ and |
| 26 | __domain__) and differs in one crucial aspect: __init__.py is |
| 27 | required, and loaded in the package's namespace instead of as a |
| 28 | submodule. For more information, see |
Guido van Rossum | 9ac9a26 | 1998-02-16 22:19:21 +0000 | [diff] [blame] | 29 | http://www.python.org/doc/essays/packages.html. |
Guido van Rossum | 66d010a | 1997-11-26 17:37:31 +0000 | [diff] [blame] | 30 | |
| 31 | - The new "re" module (Perl style regular expressions) is here. It |
| 32 | is based on Philip Hazel's pcre code; the Python interfaces were put |
Guido van Rossum | b7f454d | 1997-12-02 19:44:31 +0000 | [diff] [blame] | 33 | together by Andrew Kuchling, Tim Peters and Jeffrey Ollie. The |
| 34 | regex module is declared obsolete. |
Guido van Rossum | 66d010a | 1997-11-26 17:37:31 +0000 | [diff] [blame] | 35 | |
| 36 | - In support of the re module, a new form of string literals is |
| 37 | introduced, "raw strings": e.g. r"\n" is equal to "\\n". |
| 38 | |
| 39 | - All standard exceptions and most exceptions defined in standard |
| 40 | extension modules are now classes. Use python -X to revert back to |
| 41 | string exceptions. See |
Guido van Rossum | 9ac9a26 | 1998-02-16 22:19:21 +0000 | [diff] [blame] | 42 | http://www.python.org/doc/essays/stdexceptions.html |
Guido van Rossum | 66d010a | 1997-11-26 17:37:31 +0000 | [diff] [blame] | 43 | for more info. |
| 44 | |
| 45 | - Comparisons can now raise exceptions (previously, exceptions |
| 46 | occuring during comparisons were swept under the rug). |
| 47 | |
| 48 | - New dictionary methods: .clear(), .copy(), .update(), .get(). The |
| 49 | first two are obvious; d1.update(d2) is equivalent to the for loop |
| 50 | ``for k in d2.keys(): d1[k] = d2[k]''; and d.get(k) returns d[k] if |
| 51 | it exists and None (or the optional second argument) if not. |
| 52 | |
| 53 | - There is a new regression test harness, which tests many more |
Guido van Rossum | 8253671 | 1997-11-26 21:20:51 +0000 | [diff] [blame] | 54 | modules. (To run the tests, do "import test.autotest".) |
Guido van Rossum | 66d010a | 1997-11-26 17:37:31 +0000 | [diff] [blame] | 55 | |
| 56 | - The interpreter is much smarter about the initial value for |
| 57 | sys.path; you can control it easier using $PYTHONHOME (see the usage |
| 58 | message, e.g. try ``python -h''). In most situations, the |
| 59 | interpreter can be installed at an arbitrary location without having |
| 60 | to recompile. |
| 61 | |
| 62 | - The build process now builds a single library (libpython1.5.a) |
| 63 | which contains everything except for the main() entry point. This |
| 64 | makes life much easier for applications that embed Python. |
| 65 | |
| 66 | - There is much better support for embedding, including threads, |
| 67 | multiple interpreters(!), uninitialization, and access to the global |
| 68 | interpreter lock. |
| 69 | |
| 70 | - There is a -O option that removes SET_LINENO instructions, assert |
| 71 | statements and code prefixed with ``if __debug__: ...''. (It still |
| 72 | only makes a few percent difference, so don't get all worked up |
| 73 | about this.) |
| 74 | |
| 75 | - The Grand Renaming is completed: all linker-visible symbols |
| 76 | defined by Python now have a "Py" or "_Py" prefix, and the same is |
| 77 | true for most macros and typedefs. |
| 78 | |
Guido van Rossum | efce030 | 1997-12-31 00:04:54 +0000 | [diff] [blame] | 79 | If you previously downloaded 1.5b2, here are the most relevant changes |
Guido van Rossum | 7980826 | 1997-12-11 18:01:47 +0000 | [diff] [blame] | 80 | since then (of course all known bugs have been fixed, leaks plugged, |
Guido van Rossum | efce030 | 1997-12-31 00:04:54 +0000 | [diff] [blame] | 81 | and quite a bit of documentation has been added -- including doc |
| 82 | strings here and there). The full list of changes since 1.5b2 is |
| 83 | presented at the end of the Misc/NEWS file. |
Guido van Rossum | 66d010a | 1997-11-26 17:37:31 +0000 | [diff] [blame] | 84 | |
Guido van Rossum | efce030 | 1997-12-31 00:04:54 +0000 | [diff] [blame] | 85 | - Thanks to all who contributed doc strings or other documentation! |
Guido van Rossum | b06df27 | 1997-08-05 21:50:20 +0000 | [diff] [blame] | 86 | |
Guido van Rossum | efce030 | 1997-12-31 00:04:54 +0000 | [diff] [blame] | 87 | - Many small improvements to the quality of the documentation, both |
| 88 | PostScript, HTML and even Emacs info (library manual only). |
Guido van Rossum | b06df27 | 1997-08-05 21:50:20 +0000 | [diff] [blame] | 89 | |
Guido van Rossum | efce030 | 1997-12-31 00:04:54 +0000 | [diff] [blame] | 90 | - New module telnetlib.py. |
Guido van Rossum | b06df27 | 1997-08-05 21:50:20 +0000 | [diff] [blame] | 91 | |
Guido van Rossum | efce030 | 1997-12-31 00:04:54 +0000 | [diff] [blame] | 92 | - New tool versioncheck. |
Guido van Rossum | b06df27 | 1997-08-05 21:50:20 +0000 | [diff] [blame] | 93 | |
Guido van Rossum | efce030 | 1997-12-31 00:04:54 +0000 | [diff] [blame] | 94 | - Two bugs with ftp URLs fixed in urllib.py. |
Guido van Rossum | 6477380 | 1997-11-26 17:07:02 +0000 | [diff] [blame] | 95 | |
Guido van Rossum | efce030 | 1997-12-31 00:04:54 +0000 | [diff] [blame] | 96 | - Fixed infinite recursion when printing __builtins__. |
Guido van Rossum | 6477380 | 1997-11-26 17:07:02 +0000 | [diff] [blame] | 97 | |
Guido van Rossum | efce030 | 1997-12-31 00:04:54 +0000 | [diff] [blame] | 98 | - A bunch of small problems fixed in Tkinter.py. |
Guido van Rossum | 6477380 | 1997-11-26 17:07:02 +0000 | [diff] [blame] | 99 | |
Guido van Rossum | efce030 | 1997-12-31 00:04:54 +0000 | [diff] [blame] | 100 | - Ported zlibmodule.c and bsddbmodule.c to NT. |
Guido van Rossum | 6477380 | 1997-11-26 17:07:02 +0000 | [diff] [blame] | 101 | |
Guido van Rossum | efce030 | 1997-12-31 00:04:54 +0000 | [diff] [blame] | 102 | - Better NT support in tempfile.py. |
Guido van Rossum | 7980826 | 1997-12-11 18:01:47 +0000 | [diff] [blame] | 103 | |
Guido van Rossum | efce030 | 1997-12-31 00:04:54 +0000 | [diff] [blame] | 104 | - Fixed 4294967296==0. |
Guido van Rossum | 7980826 | 1997-12-11 18:01:47 +0000 | [diff] [blame] | 105 | |
Guido van Rossum | efce030 | 1997-12-31 00:04:54 +0000 | [diff] [blame] | 106 | - Latest re and pcre modules (versions of Dec. 22). |
Guido van Rossum | 6477380 | 1997-11-26 17:07:02 +0000 | [diff] [blame] | 107 | |
Guido van Rossum | 6477380 | 1997-11-26 17:07:02 +0000 | [diff] [blame] | 108 | |
| 109 | If you don't read instructions |
| 110 | ------------------------------ |
| 111 | |
| 112 | Congratulations on getting this far. :-) |
| 113 | |
| 114 | To start building right away (on UNIX): type "./configure" in the |
| 115 | current directory and when it finishes, type "make". The section |
| 116 | Build Instructions below is still recommended reading. :-) |
Guido van Rossum | 3ff96dd | 1996-07-30 18:05:04 +0000 | [diff] [blame] | 117 | |
| 118 | |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 119 | What is Python anyway? |
| 120 | ---------------------- |
| 121 | |
| 122 | Python is an interpreted object-oriented programming language, and is |
Guido van Rossum | c0be2f5 | 1997-10-08 05:05:28 +0000 | [diff] [blame] | 123 | often compared to Tcl, Perl, Java or Scheme. To find out more, point |
| 124 | your browser to http://www.python.org/. |
| 125 | |
| 126 | |
| 127 | A modest plug |
| 128 | ------------- |
| 129 | |
| 130 | ************************************************************************ |
| 131 | * Without your support, I won't be able to continue to work on Python! * |
| 132 | ************************************************************************ |
| 133 | |
| 134 | If you use Python, please consider joining the Python Software |
| 135 | Activity (PSA). See http://www.python.org/psa/. |
| 136 | |
| 137 | Organizations that make heavy use of Python are especially encouraged |
| 138 | to become corporate members! |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 139 | |
| 140 | |
Guido van Rossum | f501b4e | 1996-10-25 14:32:48 +0000 | [diff] [blame] | 141 | How do I learn Python? |
| 142 | ---------------------- |
| 143 | |
| 144 | The official tutorial is still a good place to start (in the Doc |
| 145 | directory as tut.tex; and http://www.python.org/doc/tut/tut.html). |
| 146 | Aaron Watters wrote a second tutorial, that may be more accessible for |
Guido van Rossum | c0be2f5 | 1997-10-08 05:05:28 +0000 | [diff] [blame] | 147 | some: http://www.wcmh.com/uworld/archives/95/tutorial/005.html. Both |
| 148 | tutorials (as well as most other sources) assume that you already know |
| 149 | how to program -- if you'd like to write "Python for Dummies", I know |
| 150 | a publisher who would like to talk to you... |
Guido van Rossum | f501b4e | 1996-10-25 14:32:48 +0000 | [diff] [blame] | 151 | |
Guido van Rossum | 8d90f9d | 1997-05-22 20:13:25 +0000 | [diff] [blame] | 152 | There are now also several books on Python. While these are still |
Guido van Rossum | c0be2f5 | 1997-10-08 05:05:28 +0000 | [diff] [blame] | 153 | based on Python 1.3 or 1.4, the information in them is still 99% |
| 154 | correct. The first two books, both first published in October 1996 |
| 155 | and both including a CD-ROM, form excellent companions to each other: |
Guido van Rossum | f501b4e | 1996-10-25 14:32:48 +0000 | [diff] [blame] | 156 | |
| 157 | Internet Programming with Python |
| 158 | by Aaron Watters, Guido van Rossum, and James Ahlstrom |
| 159 | MIS Press/Henry Holt publishers |
| 160 | ISBN: 1-55851-484-8 |
| 161 | |
| 162 | Programming Python |
| 163 | by Mark Lutz |
| 164 | O'Reilly & Associates |
| 165 | ISBN: 1-56592-197-6 |
| 166 | |
Guido van Rossum | c0be2f5 | 1997-10-08 05:05:28 +0000 | [diff] [blame] | 167 | If you can read German, try: |
Guido van Rossum | 8d90f9d | 1997-05-22 20:13:25 +0000 | [diff] [blame] | 168 | |
| 169 | Das Python-Buch |
| 170 | by Martin von Loewis and Nils Fischbeck |
| 171 | Addison-Wesley-Longman, 1997 |
| 172 | ISBN: 3-8273-1110-1 |
| 173 | |
Guido van Rossum | f501b4e | 1996-10-25 14:32:48 +0000 | [diff] [blame] | 174 | |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 175 | Copyright issues |
| 176 | ---------------- |
| 177 | |
| 178 | Python is COPYRIGHTED but free to use for all. See the full copyright |
Guido van Rossum | 6477380 | 1997-11-26 17:07:02 +0000 | [diff] [blame] | 179 | notice at the end of this file and in the file Misc/COPYRIGHT. |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 180 | |
| 181 | The Python distribution is *not* affected by the GNU Public Licence |
| 182 | (GPL). There are interfaces to some GNU code but these are entirely |
Guido van Rossum | 6477380 | 1997-11-26 17:07:02 +0000 | [diff] [blame] | 183 | optional and no GNU code is distributed with Python. |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 184 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 185 | |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 186 | Build instructions |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 187 | ================== |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 188 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 189 | Before you can build Python, you must first configure it. |
| 190 | Fortunately, the configuration and build process has been streamlined |
| 191 | for most Unix installations, so all you have to do is type a few |
| 192 | commands, optionally edit one file, and sit back. There are some |
| 193 | platforms where things are not quite as smooth; see the platform |
| 194 | specific notes below. If you want to build for multiple platforms |
| 195 | sharing the same source tree, see the section on VPATH below. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 196 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 197 | You start by running the script "./configure", which figures out your |
| 198 | system configuration and creates several Makefiles. (It takes a |
| 199 | minute or two -- please be patient!) When it's done, you are ready to |
| 200 | run make. You may want to pass options to the configure script -- see |
| 201 | the section below on configuration options and variables. |
| 202 | |
| 203 | To build Python, you normally type "make" in the toplevel directory. |
| 204 | This will recursively run make in each of the subdirectories Parser, |
| 205 | Objects, Python and Modules, creating a library file in each one. The |
| 206 | executable of the interpreter is built in the Modules subdirectory and |
| 207 | moved up here when it is built. If you want or need to, you can also |
| 208 | chdir into each subdirectory in turn and run make there manually (do |
| 209 | the Modules subdirectory last!). |
| 210 | |
| 211 | Once you have built an interpreter, see the subsections below on |
| 212 | testing, configuring additional modules, and installation. If you run |
| 213 | in trouble, see the next section. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 214 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 215 | |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 216 | Troubleshooting |
| 217 | --------------- |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 218 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 219 | See also the platform specific notes in the next section. |
| 220 | |
Guido van Rossum | faf681a | 1996-06-20 14:32:08 +0000 | [diff] [blame] | 221 | If recursive makes fail, try invoking make as "make MAKE=make". |
| 222 | |
Guido van Rossum | 4952369 | 1997-08-15 18:30:14 +0000 | [diff] [blame] | 223 | If you run into other trouble, see section 3 of the FAQ |
| 224 | (http://grail.cnri.reston.va.us/cgi-bin/faqw.py or |
| 225 | http://www.python.org/doc/FAQ.html) for hints on what can go wrong, |
| 226 | and how to fix it. |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 227 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 228 | If you rerun the configure script with different options, remove all |
| 229 | object files by running "make clean" before rebuilding. Believe it or |
| 230 | not, "make clean" sometimes helps to clean up other inexplicable |
| 231 | problems as well. Try it before sending in a bug report! |
| 232 | |
Guido van Rossum | d0fe845 | 1996-08-26 03:02:37 +0000 | [diff] [blame] | 233 | If the configure script fails or doesn't seem to find things that |
Guido van Rossum | c0be2f5 | 1997-10-08 05:05:28 +0000 | [diff] [blame] | 234 | should be there, inspect the config.log file. When you fix a |
| 235 | configure problem, be sure to remove config.cache! |
| 236 | |
| 237 | If you get a warning for every file about the -Olimit option being no |
| 238 | longer supported, you can ignore it. There's no foolproof way to know |
| 239 | whether this option is needed; all I can do is test whether it is |
| 240 | accepted without error. On some systems, e.g. older SGI compilers, it |
| 241 | is essential for performance (specifically when compiling ceval.c, |
| 242 | which has more basic blocks than the default limit of 1000). If the |
| 243 | warning bothers you, edit the Makefile to remove "-Olimit 1500" from |
| 244 | the OPT variable. |
Guido van Rossum | d0fe845 | 1996-08-26 03:02:37 +0000 | [diff] [blame] | 245 | |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 246 | |
| 247 | Platform specific notes |
| 248 | ----------------------- |
| 249 | |
Guido van Rossum | 0447a32 | 1995-10-08 01:22:33 +0000 | [diff] [blame] | 250 | (Some of these may no longer apply. If you find you can build Python |
| 251 | on these platforms without the special directions mentioned here, let |
| 252 | me know so I can remove them!) |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 253 | |
Guido van Rossum | c0be2f5 | 1997-10-08 05:05:28 +0000 | [diff] [blame] | 254 | 64-bit platforms: The modules audioop, imageop and rgbimg don't work. |
| 255 | Don't try to enable them in the Modules/Setup file. They |
| 256 | contain code that is quite wordsize sensitive. (If you have a |
| 257 | fix, let me know!) |
| 258 | |
Guido van Rossum | 4462e93 | 1997-01-22 21:00:32 +0000 | [diff] [blame] | 259 | Solaris: When using Sun's C compiler with threads, at least on Solaris |
| 260 | 2.5.1, you need to add the "-mt" compiler option (the simplest |
| 261 | way is probably to specify the compiler with this option as |
| 262 | the "CC" environment variable when running the configure |
| 263 | script). |
| 264 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 265 | Linux: On Linux version 1.x, once you've built Python, use it to run |
| 266 | the regen script in the Lib/linux1 directory. Apparently |
| 267 | the files as distributed don't match the system headers on |
| 268 | some Linux versions. (The "h2py" command refers to |
| 269 | Tools/scripts/h2py.py.) The modules distributed for Linux 2.x |
Guido van Rossum | d0fe845 | 1996-08-26 03:02:37 +0000 | [diff] [blame] | 270 | should be okay. Shared library support now works by default |
Guido van Rossum | 4462e93 | 1997-01-22 21:00:32 +0000 | [diff] [blame] | 271 | on ELF-based x86 Linux systems. (Note: when you change the |
| 272 | status of a module from static to shared, you must remove its |
| 273 | .o file or do a "make clean".) |
| 274 | |
Fred Drake | 6128091 | 1997-12-08 14:10:40 +0000 | [diff] [blame] | 275 | Under RedHat Linux 5.0, if upgraded from a previous version, |
| 276 | remove the LinuxThreads packages. This is needed because |
| 277 | LinuxThreads conflicts with the new thread support provided by |
| 278 | glibc. Before running Python's configure script, use the |
| 279 | following commands as root (version numbers may differ; these |
| 280 | are from a stock 4.2 install): |
| 281 | |
| 282 | % rpm -qa | grep ^linuxthread |
| 283 | linuxthreads-0.5-1 |
| 284 | linuxthreads-devel-0.5-1 |
| 285 | % rpm -e linuxthreads linuxthreads-devel |
| 286 | |
| 287 | While Python only needs this to be done to allow thread |
| 288 | support to be included, the conflicts these packages create |
| 289 | with the new glibc may cause other packages which use threads |
| 290 | to fail as well, so their removal is a good idea regardless of |
| 291 | how you configure python. |
| 292 | |
| 293 | Also under RedHat Linux 5.0, the crypt module now needs the |
| 294 | -lcrypt option. Uncomment this flag in Modules/Setup, or |
| 295 | comment out the crypt module in the same file. |
| 296 | |
Guido van Rossum | 6ae5d3d | 1997-05-14 21:39:05 +0000 | [diff] [blame] | 297 | DEC Unix: When enabling threads, use --with-dec-threads, not |
Guido van Rossum | 9ac9a26 | 1998-02-16 22:19:21 +0000 | [diff] [blame] | 298 | --with-thread. When using GCC, it is possible to get an |
| 299 | internal compiler error if optimization is used. This was |
| 300 | reported for GCC 2.7.2.3 on selectmodule.c. Manually compile |
| 301 | the affected file without optimization to solve the problem. |
Guido van Rossum | 8eca2c2 | 1996-02-14 18:37:46 +0000 | [diff] [blame] | 302 | |
Guido van Rossum | d0fe845 | 1996-08-26 03:02:37 +0000 | [diff] [blame] | 303 | AIX: A complete overhaul of the shared library support is now in |
Guido van Rossum | cbfcb17 | 1997-10-20 22:57:00 +0000 | [diff] [blame] | 304 | place. See Misc/AIX-NOTES for some notes on how it's done. |
Guido van Rossum | 9ac9a26 | 1998-02-16 22:19:21 +0000 | [diff] [blame] | 305 | (The optimizer bug reported at this place in previous releases |
| 306 | has been worked around by a minimal code change.) |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 307 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 308 | Minix: When using ack, use "CC=cc AR=aal RANLIB=: ./configure"! |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 309 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 310 | 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] | 311 | defs. This is because all the SCO header files are broken. |
Guido van Rossum | 6477380 | 1997-11-26 17:07:02 +0000 | [diff] [blame] | 312 | Anything that isn't mentioned in the C standard is |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 313 | conditionally excluded when __STDC__ is defined. |
| 314 | |
| 315 | 2) Due to the U.S. export restrictions, SCO broke the crypt |
| 316 | stuff out into a separate library, libcrypt_i.a so the LIBS |
| 317 | needed be set to: |
| 318 | |
| 319 | LIBS=' -lsocket -lcrypt_i' |
| 320 | |
Guido van Rossum | a3b4b61 | 1996-07-21 02:48:16 +0000 | [diff] [blame] | 321 | 3) According to at least one report, the above apply only to |
| 322 | SCO 3 -- Python builds out of the box on SCO 5. |
| 323 | |
Guido van Rossum | 9ac9a26 | 1998-02-16 22:19:21 +0000 | [diff] [blame] | 324 | SunOS 4.x: There seems to be a linker problem -- the linker doesn't |
| 325 | like the dot in the library name "-lpython1.5". The simplest |
| 326 | solution is to edit the "link:" target in Modules/Makefile to |
| 327 | change |
| 328 | -L.. -lpython$(VERSION) |
| 329 | into |
| 330 | $(LIBRARY) |
Guido van Rossum | 6477380 | 1997-11-26 17:07:02 +0000 | [diff] [blame] | 331 | |
Guido van Rossum | 9ac9a26 | 1998-02-16 22:19:21 +0000 | [diff] [blame] | 332 | When using the standard "cc" compiler, certain modules may |
Guido van Rossum | 6477380 | 1997-11-26 17:07:02 +0000 | [diff] [blame] | 333 | not be compilable because they use non-K&R syntax. You should |
| 334 | be able to get a basic Python interpreter by commenting out |
| 335 | such modules in the Modules/Setup file, but I really recommend |
| 336 | using gcc. |
| 337 | |
| 338 | When using the SunPro C compiler, you may want to use the |
| 339 | '-Xa' option instead of '-Xc', to enable some needed non-ANSI |
| 340 | Sunisms. |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 341 | |
Guido van Rossum | cc55c2d | 1996-10-21 15:14:27 +0000 | [diff] [blame] | 342 | NeXT: To build fat binaries, use the --with-next-archs switch |
| 343 | described below. |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 344 | |
Guido van Rossum | b7f454d | 1997-12-02 19:44:31 +0000 | [diff] [blame] | 345 | QNX: Chris Herborth (chrish@qnx.com) writes: |
| 346 | configure works best if you use GNU bash; a port is available on |
| 347 | ftp.qnx.com in /usr/free. I used the following process to build, |
| 348 | test and install Python 1.5 under QNX: |
| 349 | |
Guido van Rossum | b1d368c | 1997-12-17 21:08:34 +0000 | [diff] [blame] | 350 | 1) SHELL=/usr/local/bin/bash CC=cc CFLAGS="-5 -O" RANLIB=: \ |
Guido van Rossum | b7f454d | 1997-12-02 19:44:31 +0000 | [diff] [blame] | 351 | bash ./configure --verbose --without-gcc --with-libm="" |
| 352 | |
| 353 | 2) copy Modules/Setup.in to Modules/Setup; edit Modules/Setup to |
| 354 | activate everything that makes sense for your system... tested |
| 355 | here at QNX with the following modules: |
| 356 | |
| 357 | regex reop pcre posix signal readline array cmath math strop |
| 358 | struct time operator _locale fcntl pwd grp crypt select socket |
| 359 | errno termios audioop imageop rgbimg md5 timing rotor syslog |
Guido van Rossum | b1d368c | 1997-12-17 21:08:34 +0000 | [diff] [blame] | 360 | new gdbm soundex binascii parser cStringIO cPickle zlib curses |
Guido van Rossum | b7f454d | 1997-12-02 19:44:31 +0000 | [diff] [blame] | 361 | |
| 362 | 3) SHELL=/usr/local/bin/bash make SHELL=/usr/local/bin/bash |
| 363 | |
| 364 | 4) SHELL=/usr/local/bin/bash make SHELL=/usr/local/bin/bash test |
| 365 | |
| 366 | The socket, strftime and possibly gdbm tests might fail in the |
| 367 | test harness; going through them by hand shows that they work. |
| 368 | A good exercise for the reader: make these work "out of the box". |
| 369 | |
| 370 | 5) SHELL=/usr/local/bin/bash make SHELL=/usr/local/bin/bash install |
| 371 | |
| 372 | If you get SIGSEGVs while running Python (I haven't yet, but I've |
| 373 | only run small programs and the test cases), you're probably running |
| 374 | out of stack; the default 32k could be a little tight. To increase |
| 375 | the stack size, edit the Makefile in the Modules directory to read: |
Guido van Rossum | 40d6358 | 1997-08-14 19:45:30 +0000 | [diff] [blame] | 376 | LDFLAGS = -N 48k |
| 377 | |
Guido van Rossum | 1bf0bf4 | 1997-08-20 23:50:51 +0000 | [diff] [blame] | 378 | Cray T3E: Konrad Hinsen writes: |
| 379 | 1) Don't use gcc. It compiles Python/graminit.c into something that |
| 380 | the Cray assembler doesn't like. Cray's cc seems to work fine. |
| 381 | 2) Uncomment modules md5 (won't compile) and audioop (will crash |
| 382 | the interpreter during the test suite). |
| 383 | If you run the test suite, two tests will fail (rotate and binascii), |
| 384 | but these are not the modules you'd expect to need on a Cray. |
| 385 | |
Guido van Rossum | 0078aaf | 1997-08-21 03:05:11 +0000 | [diff] [blame] | 386 | SGI: SGI's standard "make" utility (/bin/make or /usr/bin/make) |
| 387 | does not check whether a command actually changed the file it |
| 388 | is supposed to build. This means that whenever you say "make" |
| 389 | it will redo the link step. The remedy is to use SGI's much |
Guido van Rossum | c0be2f5 | 1997-10-08 05:05:28 +0000 | [diff] [blame] | 390 | smarter "smake " utility (/usr/sbin/smake), or GNU make. If |
| 391 | you set the first line of the Makefile to #!/usr/sbin/smake |
| 392 | smake will be invoked by make (likewise for GNU make). |
Guido van Rossum | 0078aaf | 1997-08-21 03:05:11 +0000 | [diff] [blame] | 393 | |
Guido van Rossum | 9ac9a26 | 1998-02-16 22:19:21 +0000 | [diff] [blame] | 394 | A bug in the MIPSpro 7.1 compiler's optimizer seems to break |
| 395 | Modules/pypcre.c. The short term solution is to compile it |
| 396 | without optimization. The bug appears to be fixed in version |
| 397 | 7.2.1 of the compiler. |
| 398 | |
Guido van Rossum | 6477380 | 1997-11-26 17:07:02 +0000 | [diff] [blame] | 399 | OS/2: If you are running Warp3 or Warp4 and have IBM's VisualAge C/C++ |
| 400 | compiler installed, just change into the pc\os2vacpp directory |
| 401 | and type NMAKE. Threading and sockets are supported by default |
| 402 | in the resulting binaries of PYTHON15.DLL and PYTHON.EXE. |
| 403 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 404 | |
| 405 | Configuring additional built-in modules |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 406 | --------------------------------------- |
Guido van Rossum | 19e0c26 | 1995-01-17 16:36:34 +0000 | [diff] [blame] | 407 | |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 408 | You can configure the interpreter to contain fewer or more built-in |
| 409 | modules by editing the file Modules/Setup. This file is initially |
| 410 | copied (when the toplevel Makefile makes Modules/Makefile for the |
| 411 | first time) from Setup.in; if it does not exist yet, make a copy |
| 412 | yourself. Never edit Setup.in -- always edit Setup. Read the |
| 413 | comments in the file for information on what kind of edits you can |
| 414 | make. When you have edited Setup, Makefile and config.c in Modules |
| 415 | 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] | 416 | toplevel directory. (When working inside the Modules directory, use |
| 417 | "make Makefile; make".) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 418 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 419 | The default collection of modules should build on any Unix system, but |
| 420 | many optional modules should work on all modern Unices (e.g. try dbm, |
Guido van Rossum | d0fe845 | 1996-08-26 03:02:37 +0000 | [diff] [blame] | 421 | nis, termios, timing, syslog, curses, new, soundex, parser). Often |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 422 | the quickest way to determine whether a particular module works or not |
| 423 | is to see if it will build: enable it in Setup, then if you get |
| 424 | compilation or link errors, disable it -- you're missing support. |
| 425 | |
| 426 | On SGI IRIX, there are modules that interface to many SGI specific |
| 427 | system libraries, e.g. the GL library and the audio hardware. |
| 428 | |
| 429 | For SunOS and Solaris, enable module "sunaudiodev" to support the |
| 430 | audio device. |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 431 | |
Guido van Rossum | 4462e93 | 1997-01-22 21:00:32 +0000 | [diff] [blame] | 432 | In addition to the file Setup, you can also edit the file Setup.local. |
| 433 | (the makesetup script processes both). You may find it more |
| 434 | convenient to edit Setup.local and leave Setup alone. Then, when |
| 435 | installing a new Python version, you can copy your old Setup.local |
| 436 | file. |
| 437 | |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 438 | |
| 439 | Setting the optimization/debugging options |
| 440 | ------------------------------------------ |
| 441 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 442 | If you want or need to change the optimization/debugging options for |
| 443 | the C compiler, assign to the OPT variable on the toplevel make |
| 444 | command; e.g. "make OPT=-g" will build a debugging version of Python |
| 445 | on most platforms. The default is OPT=-O; a value for OPT in the |
| 446 | environment when the configure script is run overrides this default |
| 447 | (likewise for CC; and the initial value for LIBS is used as the base |
| 448 | set of libraries to link with). |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 449 | |
| 450 | |
| 451 | Testing |
| 452 | ------- |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 453 | |
| 454 | To test the interpreter that you have just built, type "make test". |
Guido van Rossum | 6ae5d3d | 1997-05-14 21:39:05 +0000 | [diff] [blame] | 455 | This runs the test set twice (once with no compiled files, once with |
| 456 | the compiled files left by the previous test run). The test set |
| 457 | produces some output. You can generally ignore the messages about |
| 458 | skipped tests due to an optional feature that can't be imported (if |
| 459 | you want to test those modules, edit Modules/Setup to configure them). |
| 460 | If a messages is printed about a failed test or a traceback or core |
Guido van Rossum | 24df684 | 1997-12-30 04:32:30 +0000 | [diff] [blame] | 461 | dump is produced, something's wrong. On some Linux systems (those |
| 462 | that are not yet using glibc 6), test_strftime fails due to a |
| 463 | non-standard-compliant implementation of strftime() in the C library. |
| 464 | Please ignore this, or upgrade to glibc version 6. |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 465 | |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 466 | IMPORTANT: If the tests fail and you decide to mail a bug report, |
| 467 | *don't* include the output of "make test". It is useless. Run the |
Guido van Rossum | 6ae5d3d | 1997-05-14 21:39:05 +0000 | [diff] [blame] | 468 | test that fails manually, as follows: |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 469 | |
Guido van Rossum | 6ae5d3d | 1997-05-14 21:39:05 +0000 | [diff] [blame] | 470 | python ../Lib/test/test_whatever.py |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 471 | |
| 472 | (substituting the top of the source tree for .. if you built in a |
Guido van Rossum | 6ae5d3d | 1997-05-14 21:39:05 +0000 | [diff] [blame] | 473 | different directory). This runs the test in verbose mode. |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 474 | |
| 475 | |
| 476 | Installing |
| 477 | ---------- |
| 478 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 479 | To install the Python binary, library modules, shared library modules |
| 480 | (see below), include files, configuration files, and the manual page, |
Guido van Rossum | 6477380 | 1997-11-26 17:07:02 +0000 | [diff] [blame] | 481 | just type |
| 482 | |
| 483 | make install |
| 484 | |
| 485 | This will install all platform-independent files in subdirectories the |
| 486 | directory given with the --prefix option to configure or the 'prefix' |
| 487 | Make variable (default /usr/local), and all binary and other |
| 488 | platform-specific files in subdirectories if the directory given by |
| 489 | --exec-prefix or the 'exec_prefix' Make variable (defaults to the |
| 490 | --prefix directory). |
| 491 | |
| 492 | All subdirectories created will have Python's version number in their |
| 493 | name, e.g. the library modules are installed in |
| 494 | "/usr/local/lib/python1.5/" by default. The Python binary is |
| 495 | installed as "python1.5" and a hard link named "python" is created. |
| 496 | The only file not installed with a version number in its name is the |
| 497 | manual page, installed as "/usr/local/man/man1/python.1" by default. |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 498 | |
Guido van Rossum | 4952369 | 1997-08-15 18:30:14 +0000 | [diff] [blame] | 499 | If you have a previous installation of a pre-1.5 Python that you don't |
Guido van Rossum | 6477380 | 1997-11-26 17:07:02 +0000 | [diff] [blame] | 500 | want to replace yet, use |
| 501 | |
| 502 | make altinstall |
| 503 | |
| 504 | This installs the same set of files as "make install" except it |
| 505 | doesn't create the hard link to "python1.5" named "python" and it |
| 506 | doesn't install the manual page at all. |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 507 | |
| 508 | The only thing you may have to install manually is the Python mode for |
| 509 | Emacs. (But then again, more recent versions of Emacs may already |
| 510 | have it!) This is the file Misc/python-mode.el; follow the |
| 511 | instructions that came with Emacs for installation of site specific |
| 512 | files. |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 513 | |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 514 | |
| 515 | Configuration options and variables |
| 516 | ----------------------------------- |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 517 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 518 | Some special cases are handled by passing options to the configure |
| 519 | script. |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 520 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 521 | WARNING: if you rerun the configure script with different options, you |
| 522 | must run "make clean" before rebuilding. Exceptions to this rule: |
| 523 | after changing --prefix or --exec-prefix, all you need to do is remove |
Guido van Rossum | b06df27 | 1997-08-05 21:50:20 +0000 | [diff] [blame] | 524 | Modules/getpath.o. |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 525 | |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 526 | --with(out)-gcc: The configure script uses gcc (the GNU C compiler) if |
| 527 | it finds it. If you don't want this, or if this compiler is |
| 528 | installed but broken on your platform, pass the option |
| 529 | --without-gcc. You can also pass "CC=cc" (or whatever the |
| 530 | name of the proper C compiler is) in the environment, but the |
| 531 | advantage of using --without-gcc is that this option is |
| 532 | remembered by the config.status script for its --recheck |
| 533 | option. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 534 | |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 535 | --prefix, --exec-prefix: If you want to install the binaries and the |
| 536 | Python library somewhere else than in /usr/local/{bin,lib}, |
| 537 | you can pass the option --prefix=DIRECTORY; the interpreter |
| 538 | binary will be installed as DIRECTORY/bin/python and the |
| 539 | library files as DIRECTORY/lib/python/*. If you pass |
| 540 | --exec-prefix=DIRECTORY (as well) this overrides the |
| 541 | installation prefix for architecture-dependent files (like the |
| 542 | interpreter binary). Note that --prefix=DIRECTORY also |
| 543 | affects the default module search path (sys.path), when |
| 544 | Modules/config.c is compiled. Passing make the option |
| 545 | prefix=DIRECTORY (and/or exec_prefix=DIRECTORY) overrides the |
| 546 | prefix set at configuration time; this may be more convenient |
| 547 | than re-running the configure script if you change your mind |
| 548 | about the install prefix... |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 549 | |
Guido van Rossum | b06df27 | 1997-08-05 21:50:20 +0000 | [diff] [blame] | 550 | --with-readline: This option is no longer supported. To use GNU |
| 551 | readline, enable module "readline" in the Modules/Setup file. |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 552 | |
Guido van Rossum | faf681a | 1996-06-20 14:32:08 +0000 | [diff] [blame] | 553 | --with-thread: On most Unix systems, you can now use multiple threads. |
Guido van Rossum | 4462e93 | 1997-01-22 21:00:32 +0000 | [diff] [blame] | 554 | To enable this, pass --with-thread. (--with-threads is an |
| 555 | alias.) If the library required for threads lives in a |
Guido van Rossum | 8d90f9d | 1997-05-22 20:13:25 +0000 | [diff] [blame] | 556 | peculiar place, you can use --with-thread=DIRECTORY. NOTE: |
| 557 | you must also enable the thread module by uncommenting it in |
| 558 | the Modules/Setup file. (Threads aren't enabled automatically |
| 559 | because there are run-time penalties when support for them is |
| 560 | compiled in even if you don't use them.) IMPORTANT: run "make |
| 561 | clean" after changing (either enabling or disabling) this |
Guido van Rossum | 0e13da9 | 1998-02-22 04:36:34 +0000 | [diff] [blame] | 562 | option, or you will get link errors! Note: for DEC Unix use |
| 563 | --with-dec-threads instead. |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 564 | |
| 565 | --with-sgi-dl: On SGI IRIX 4, dynamic loading of extension modules is |
| 566 | supported by the "dl" library by Jack Jansen, which is |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 567 | 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] | 568 | This is enabled (after you've ftp'ed and compiled the dl |
| 569 | library!) by passing --with-sgi-dl=DIRECTORY where DIRECTORY |
| 570 | is the absolute pathname of the dl library. (Don't bother on |
| 571 | IRIX 5, it already has dynamic linking using SunOS style |
| 572 | shared libraries.) Support for this feature is deprecated. |
| 573 | |
| 574 | --with-dl-dld: Dynamic loading of modules is rumoured to be supported |
| 575 | on some other systems: VAX (Ultrix), Sun3 (SunOS 3.4), Sequent |
| 576 | Symmetry (Dynix), and Atari ST. This is done using a |
| 577 | combination of the GNU dynamic loading package |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 578 | (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] | 579 | emulation of the SGI dl library mentioned above (the emulation |
| 580 | can be found at |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 581 | 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] | 582 | enable this, ftp and compile both libraries, then call the |
| 583 | configure passing it the option |
| 584 | --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY where DL_DIRECTORY is |
| 585 | the absolute pathname of the dl emulation library and |
| 586 | DLD_DIRECTORY is the absolute pathname of the GNU dld library. |
| 587 | (Don't bother on SunOS 4 or 5, they already have dynamic |
| 588 | linking using shared libraries.) Support for this feature is |
| 589 | deprecated. |
| 590 | |
| 591 | --with-libm, --with-libc: It is possible to specify alternative |
| 592 | versions for the Math library (default -lm) and the C library |
| 593 | (default the empty string) using the options |
| 594 | --with-libm=STRING and --with-libc=STRING, respectively. E.g. |
| 595 | if your system requires that you pass -lc_s to the C compiler |
| 596 | to use the shared C library, you can pass --with-libc=-lc_s. |
| 597 | These libraries are passed after all other libraries, the C |
| 598 | library last. |
Guido van Rossum | 3ff96dd | 1996-07-30 18:05:04 +0000 | [diff] [blame] | 599 | |
| 600 | --with-next-archs='arch1 arch2': Under NEXTSTEP, this will build |
| 601 | all compiled binaries with the architectures listed. Includes |
| 602 | correctly setting the target architecture specific resource |
Guido van Rossum | cc55c2d | 1996-10-21 15:14:27 +0000 | [diff] [blame] | 603 | directory. (This option is not supported on other platforms.) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 604 | |
Guido van Rossum | d02ba45 | 1996-07-31 17:36:01 +0000 | [diff] [blame] | 605 | --with-libs='libs': Add 'libs' to the LIBS that the python |
| 606 | linked against. |
| 607 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 608 | |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 609 | Building for multiple architectures (using the VPATH feature) |
| 610 | ------------------------------------------------------------- |
| 611 | |
| 612 | If your file system is shared between multiple architectures, it |
| 613 | usually is not necessary to make copies of the sources for each |
| 614 | architecture you want to support. If the make program supports the |
| 615 | VPATH feature, you can create an empty build directory for each |
| 616 | architecture, and in each directory run the configure script (on the |
| 617 | appropriate machine with the appropriate options). This creates the |
| 618 | necessary subdirectories and the Makefiles therein. The Makefiles |
| 619 | contain a line VPATH=... which points to directory containing the |
Guido van Rossum | d0fe845 | 1996-08-26 03:02:37 +0000 | [diff] [blame] | 620 | actual sources. (On SGI systems, use "smake -J1" instead of "make" if |
| 621 | you use VPATH -- don't try gnumake.) |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 622 | |
| 623 | For example, the following is all you need to build a minimal Python |
| 624 | in /usr/tmp/python (assuming ~guido/src/python is the toplevel |
| 625 | directory and you want to build in /usr/tmp/python): |
| 626 | |
| 627 | $ mkdir /usr/tmp/python |
| 628 | $ cd /usr/tmp/python |
| 629 | $ ~guido/src/python/configure |
| 630 | [...] |
| 631 | $ make |
| 632 | [...] |
| 633 | $ |
| 634 | |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 635 | Note that Modules/Makefile copies the original Setup file to the build |
| 636 | directory if it finds no Setup file there. This means that you can |
| 637 | edit the Setup file for each architecture independently. For this |
| 638 | reason, subsequent changes to the original Setup file are not tracked |
| 639 | automatically, as they might overwrite local changes. To force a copy |
| 640 | of a changed original Setup file, delete the target Setup file. (The |
| 641 | makesetup script supports multiple input files, so if you want to be |
| 642 | fancy you can change the rules to create an empty Setup.local if it |
| 643 | doesn't exist and run it with arguments $(srcdir)/Setup Setup.local; |
| 644 | however this assumes that you only need to add modules.) |
| 645 | |
| 646 | |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 647 | Building on non-UNIX systems |
| 648 | ---------------------------- |
| 649 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 650 | Building Python for a PC is now a piece of cake! |
Guido van Rossum | 8d7d4ed | 1996-07-30 21:41:07 +0000 | [diff] [blame] | 651 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 652 | Enter the directory "PC" and read the file "readme.txt". Most popular |
| 653 | non-Unix PC platforms and compilers are supported (Unix ports to the |
| 654 | PC such as Linux, FreeBSD or Solaris-x86 of course use the standard |
| 655 | Unix build instructions). |
| 656 | |
| 657 | For the Mac, a separate source distribution will be made available, |
| 658 | for use with the CodeWarrior compiler. If you are interested in Mac |
| 659 | development, join the PythonMac Special Interest Group |
| 660 | (http://www.python.org/sigs/pythonmac-sig/, or send email to |
| 661 | pythonmac-sig-request@python.org). |
| 662 | |
| 663 | Of course, there are also binary distributions available for these |
| 664 | platforms -- see http://www.python.org/python/. |
| 665 | |
| 666 | To port Python to a new non-UNIX system, you will have to fake the |
| 667 | effect of running the configure script manually (for Mac and PC, this |
| 668 | 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] | 669 | config.h.in to config.h and edit the latter to reflect the actual |
| 670 | configuration of your system. Most symbols must simply be defined as |
| 671 | 1 only if the corresponding feature is present and can be left alone |
| 672 | otherwise; however RETSIGTYPE must always be defined, either as int or |
| 673 | as void, and the *_t type symbols must be defined as some variant of |
Guido van Rossum | d0fe845 | 1996-08-26 03:02:37 +0000 | [diff] [blame] | 674 | int if they need to be defined at all. |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 675 | |
| 676 | |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 677 | |
| 678 | Miscellaneous issues |
| 679 | ==================== |
| 680 | |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 681 | Documentation |
| 682 | ------------- |
| 683 | |
| 684 | All documentation is provided in the subdirectory Doc in the form of |
| 685 | LaTeX files. In order of importance for new users: Tutorial (tut), |
| 686 | Library Reference (lib), Language Reference (ref), Extending (ext). |
| 687 | Especially the Library Reference is of immense value since much of |
| 688 | Python's power (including the built-in data types and functions!) is |
| 689 | described here. |
| 690 | |
Guido van Rossum | dfcf35d | 1996-08-26 17:52:09 +0000 | [diff] [blame] | 691 | To print the documentation from the LaTeX files, chdir into the Doc |
| 692 | subdirectory, type "make" (let's hope you have LaTeX installed!), and |
| 693 | send the four resulting PostScript files (tut.ps, lib.ps, ref.ps, and |
| 694 | ext.ps) to the printer. See the README file there. If you don't have |
| 695 | LaTeX, you can ftp the PostScript files from the ftp archives (see |
| 696 | below). |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 697 | |
Guido van Rossum | dfcf35d | 1996-08-26 17:52:09 +0000 | [diff] [blame] | 698 | All documentation is also available on-line via the Python web site |
| 699 | (http://www.python.org/, see below). It can also be downloaded |
| 700 | separately from the ftp archives (see below) in Emacs INFO, HTML or |
Guido van Rossum | 4952369 | 1997-08-15 18:30:14 +0000 | [diff] [blame] | 701 | PostScript form -- see the web site or the FAQ |
| 702 | (http://grail.cnri.reston.va.us/cgi-bin/faqw.py or |
| 703 | http://www.python.org/doc/FAQ.html) for more info. |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 704 | |
| 705 | |
| 706 | Emacs mode |
| 707 | ---------- |
| 708 | |
Guido van Rossum | c0be2f5 | 1997-10-08 05:05:28 +0000 | [diff] [blame] | 709 | There's an excellent Emacs editing mode for Python code; see the file |
| 710 | Misc/python-mode.el. Originally written by the famous Tim Peters, it |
| 711 | is now maintained by the equally famous Barry Warsaw |
| 712 | <bwarsaw@cnri.reston.va.us>. The latest version is online at |
| 713 | ftp://ftp.python.org/pub/emacs/python-mode.el. As you might expect of |
| 714 | Barry (and even if you don't know what the heck I'm talking about :-), |
| 715 | a configuration file for his cc-mode.el which selects the style used |
| 716 | throughout most Python C source files is also provided; see the file |
| 717 | Misc/ccpy-style.el. |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 718 | |
| 719 | |
Guido van Rossum | 8d7d4ed | 1996-07-30 21:41:07 +0000 | [diff] [blame] | 720 | Web site |
| 721 | -------- |
| 722 | |
| 723 | 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] | 724 | There are a number of mirrors, listed on the home page -- try a mirror |
| 725 | that's close you you. |
Guido van Rossum | 8d7d4ed | 1996-07-30 21:41:07 +0000 | [diff] [blame] | 726 | |
| 727 | |
Guido van Rossum | d0fe845 | 1996-08-26 03:02:37 +0000 | [diff] [blame] | 728 | Ftp site |
| 729 | -------- |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 730 | |
Guido van Rossum | c0be2f5 | 1997-10-08 05:05:28 +0000 | [diff] [blame] | 731 | Python's own ftp site is ftp://ftp.python.org/pub/python/. There are |
Guido van Rossum | 4952369 | 1997-08-15 18:30:14 +0000 | [diff] [blame] | 732 | numerous mirrors; see http://www.python.org/python/Mirrors.html for a |
| 733 | list of mirror sites. |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 734 | |
| 735 | |
| 736 | Newsgroup and mailing list |
| 737 | -------------------------- |
| 738 | |
Guido van Rossum | dfcf35d | 1996-08-26 17:52:09 +0000 | [diff] [blame] | 739 | There are a newsgroup and a mailing list devoted to Python. The |
| 740 | newsgroup, comp.lang.python, contains exactly the same messages as the |
| 741 | mailing list (though not always in the same order, due to the |
| 742 | mysterious nature of the Usenet news distribution algorithm). To |
| 743 | subscribe to the mailing list, send mail containing your real name and |
| 744 | e-mail address to "python-list-request@cwi.nl". Use the same address |
| 745 | if you want to unsibscribed. (A real person reads these messages, so |
| 746 | no LISTPROC or Majordomo commands, please, and please be patient -- |
| 747 | normal turn-around time is about one working day.) |
Guido van Rossum | d0fe845 | 1996-08-26 03:02:37 +0000 | [diff] [blame] | 748 | |
Guido van Rossum | dfcf35d | 1996-08-26 17:52:09 +0000 | [diff] [blame] | 749 | The Python web site contains a search form that lets you search the |
Guido van Rossum | c0be2f5 | 1997-10-08 05:05:28 +0000 | [diff] [blame] | 750 | newsgroup archives (and the web site itself). Click on the "search" |
Guido van Rossum | dfcf35d | 1996-08-26 17:52:09 +0000 | [diff] [blame] | 751 | link in the banner menu on any page of http://www.python.org/. |
Guido van Rossum | d0fe845 | 1996-08-26 03:02:37 +0000 | [diff] [blame] | 752 | |
| 753 | |
| 754 | Bug reports |
| 755 | ----------- |
| 756 | |
Guido van Rossum | dfcf35d | 1996-08-26 17:52:09 +0000 | [diff] [blame] | 757 | Bugs are best reported to the comp.lang.python newsgroup or the Python |
Guido van Rossum | cc55c2d | 1996-10-21 15:14:27 +0000 | [diff] [blame] | 758 | mailing list -- see the section "Newsgroup and mailing list" above. |
Guido van Rossum | dfcf35d | 1996-08-26 17:52:09 +0000 | [diff] [blame] | 759 | Before posting, check the newsgroup archives (see above) to see if |
Guido van Rossum | c0be2f5 | 1997-10-08 05:05:28 +0000 | [diff] [blame] | 760 | your bug has already been reported! If you don't want to go public, |
Guido van Rossum | 6477380 | 1997-11-26 17:07:02 +0000 | [diff] [blame] | 761 | send them to me: <guido@python.org>. |
Guido van Rossum | d0fe845 | 1996-08-26 03:02:37 +0000 | [diff] [blame] | 762 | |
| 763 | |
| 764 | Questions |
| 765 | --------- |
| 766 | |
Guido van Rossum | 4952369 | 1997-08-15 18:30:14 +0000 | [diff] [blame] | 767 | For help, if you can't find it in the manuals or on the web site, it's |
| 768 | best to post to the comp.lang.python or the Python mailing list (see |
| 769 | above). If you specifically don't want to involve the newsgroup or |
Guido van Rossum | c0be2f5 | 1997-10-08 05:05:28 +0000 | [diff] [blame] | 770 | mailing list, send questions to <python-help@python.org> (a group of |
| 771 | volunteers which does *not* include me). Because of my work and email |
| 772 | volume, I'm often be slow in answering questions sent to me directly; |
| 773 | I prefer to answer questions posted to the newsgroup. |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 774 | |
| 775 | |
| 776 | The Tk interface |
| 777 | ---------------- |
| 778 | |
| 779 | Tk (the user interface component of John Ousterhout's Tcl language) is |
| 780 | also usable from Python. Since this requires that you first build and |
Guido van Rossum | c0be2f5 | 1997-10-08 05:05:28 +0000 | [diff] [blame] | 781 | install Tcl/Tk, the Tk interface is not enabled by default. Python |
| 782 | supports all Tcl/Tk versions from version 7.5/4.1 through 8.0 (and it |
| 783 | is expected that it will also work with newer versions). Tcl/Tk |
Guido van Rossum | 6477380 | 1997-11-26 17:07:02 +0000 | [diff] [blame] | 784 | 7.4/4.0 is no longer supported. 8.0 or any later non-alpha non-beta |
| 785 | release is recommended. |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 786 | |
Guido van Rossum | 6477380 | 1997-11-26 17:07:02 +0000 | [diff] [blame] | 787 | See http://sunscript.sun.com/ for more info on Tcl/Tk, including the |
| 788 | on-line manual pages. |
| 789 | |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 790 | |
| 791 | To enable the Python/Tk interface, once you've built and installed |
Guido van Rossum | 6477380 | 1997-11-26 17:07:02 +0000 | [diff] [blame] | 792 | Tcl/Tk, load the file Modules/Setup in your favorite text editor and |
| 793 | search for the string "_tkinter". Then follow the instructions found |
| 794 | there. If you have installed Tcl/Tk or X11 in unusual places, you |
| 795 | will have to edit the first line to fix or add -I and -L options. |
| 796 | (Also see the general instructions at the top of that file.) |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 797 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 798 | There is little documentation on how to use Tkinter; however most of |
| 799 | the Tk manual pages apply quite straightforwardly. Begin with |
| 800 | fetching the "Tk Lifesaver" document, |
| 801 | e.g. ftp://ftp.python.org/pub/python/doc/tkinter-doc.tar.gz (a gzipped |
| 802 | tar file containing a PostScript file) or the on-line version |
| 803 | http://www.python.org/doc/life-preserver/index.html. Reading the |
| 804 | Tkinter.py source will reveal most details on how Tkinter calls are |
| 805 | translated into Tcl code. |
| 806 | |
Guido van Rossum | c0be2f5 | 1997-10-08 05:05:28 +0000 | [diff] [blame] | 807 | A more recent introduction to Tkinter programming, by Fredrik Lundh, |
| 808 | is at http://www.pythonware.com/library/tkinter/introduction/index.htm. |
| 809 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 810 | There are demos in the Demo/tkinter directory, in the subdirectories |
| 811 | guido, matt and www (the matt and guido subdirectories have been |
| 812 | overhauled to use more recent Tkinter coding conventions). |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 813 | |
| 814 | 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] | 815 | lives in Lib/tkinter/Tkinter.py, and a C module called "_tkinter" |
| 816 | (lower case t and leading underscore) which lives in |
| 817 | Modules/_tkinter.c. Demos and normal Tk applications only import the |
| 818 | Python Tkinter module -- only the latter uses the C _tkinter module |
| 819 | directly. In order to find the C _tkinter module, it must be compiled |
| 820 | and linked into the Python interpreter -- the _tkinter line in the |
| 821 | Setup file does this. In order to find the Python Tkinter module, |
| 822 | sys.path must be set correctly -- the TKPATH assignment in the Setup |
| 823 | file takes care of this, but only if you install Python properly |
| 824 | ("make install libinstall"). (You can also use dynamic loading for |
| 825 | the C _tkinter module, in which case you must manually fix up sys.path |
| 826 | or set $PYTHONPATH for the Python Tkinter module.) |
Guido van Rossum | 84c8c7f | 1995-08-28 02:44:24 +0000 | [diff] [blame] | 827 | |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 828 | |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 829 | Distribution structure |
| 830 | ---------------------- |
| 831 | |
| 832 | Most subdirectories have their own README file. Most files have |
| 833 | comments. |
| 834 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 835 | Demo/ Demonstration scripts, modules and programs |
| 836 | Doc/ Documentation (LaTeX sources) |
| 837 | Grammar/ Input for the parser generator |
| 838 | Include/ Public header files |
| 839 | Lib/ Python library modules |
| 840 | Makefile.in Source from which config.status creates Makefile |
Guido van Rossum | c0be2f5 | 1997-10-08 05:05:28 +0000 | [diff] [blame] | 841 | Misc/ Miscellaneous useful files |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 842 | Modules/ Implementation of most built-in modules |
| 843 | Objects/ Implementation of most built-in object types |
Guido van Rossum | 6477380 | 1997-11-26 17:07:02 +0000 | [diff] [blame] | 844 | PC/ PC porting files (DOS, Windows, OS/2) |
| 845 | PCbuild/ Directory where you should build for Windows NT/95 |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 846 | Parser/ The parser and tokenizer and their input handling |
| 847 | Python/ The "compiler" and interpreter |
| 848 | README The file you're reading now |
| 849 | Tools/ Some useful programs written in Python |
| 850 | acconfig.h Additional input for the autoheader program |
| 851 | config.h.in Source from which config.status creates config.h |
| 852 | configure Configuration shell script (GNU autoconf output) |
| 853 | configure.in Configuration specification (GNU autoconf input) |
| 854 | install-sh Shell script used to install files |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 855 | |
| 856 | The following files will (may) be created in the toplevel directory by |
| 857 | the configuration and build processes: |
| 858 | |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 859 | Makefile Build rules |
| 860 | config.cache cache of configuration variables |
| 861 | config.h Configuration header |
Guido van Rossum | c0be2f5 | 1997-10-08 05:05:28 +0000 | [diff] [blame] | 862 | config.log Log from last configure run |
| 863 | config.status Status from last run of configure script |
| 864 | libpython1.5.a The library archive |
Guido van Rossum | 6d9cc80 | 1996-08-01 17:31:22 +0000 | [diff] [blame] | 865 | python The executable interpreter |
| 866 | tags, TAGS Tags files for vi and Emacs |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 867 | |
| 868 | |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 869 | Author's address |
Guido van Rossum | d0fe845 | 1996-08-26 03:02:37 +0000 | [diff] [blame] | 870 | ================ |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 871 | |
| 872 | Guido van Rossum |
Guido van Rossum | faf681a | 1996-06-20 14:32:08 +0000 | [diff] [blame] | 873 | CNRI |
| 874 | 1895 Preston White Drive |
Guido van Rossum | 8d7d4ed | 1996-07-30 21:41:07 +0000 | [diff] [blame] | 875 | Reston, VA 20191 |
Guido van Rossum | faf681a | 1996-06-20 14:32:08 +0000 | [diff] [blame] | 876 | USA |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 877 | |
Guido van Rossum | d0fe845 | 1996-08-26 03:02:37 +0000 | [diff] [blame] | 878 | E-mail: guido@cnri.reston.va.us or guido@python.org |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 879 | |
| 880 | |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 881 | |
| 882 | Copyright notice |
| 883 | ================ |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 884 | |
| 885 | 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] | 886 | 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] | 887 | |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 888 | ---------------------------------------------------------------------- |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 889 | Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam, |
| 890 | The Netherlands. |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 891 | |
| 892 | All Rights Reserved |
| 893 | |
Guido van Rossum | c561e5d | 1994-08-23 13:52:46 +0000 | [diff] [blame] | 894 | Permission to use, copy, modify, and distribute this software and its |
| 895 | documentation for any purpose and without fee is hereby granted, |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 896 | 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] | 897 | both that copyright notice and this permission notice appear in |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 898 | supporting documentation, and that the names of Stichting Mathematisch |
Guido van Rossum | f501b4e | 1996-10-25 14:32:48 +0000 | [diff] [blame] | 899 | Centrum or CWI or Corporation for National Research Initiatives or |
| 900 | CNRI not be used in advertising or publicity pertaining to |
| 901 | distribution of the software without specific, written prior |
| 902 | permission. |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 903 | |
Guido van Rossum | f501b4e | 1996-10-25 14:32:48 +0000 | [diff] [blame] | 904 | While CWI is the initial source for this software, a modified version |
| 905 | is made available by the Corporation for National Research Initiatives |
| 906 | (CNRI) at the Internet address ftp://ftp.python.org. |
| 907 | |
| 908 | STICHTING MATHEMATISCH CENTRUM AND CNRI DISCLAIM ALL WARRANTIES WITH |
| 909 | REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF |
| 910 | MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH |
| 911 | CENTRUM OR CNRI BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL |
| 912 | DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR |
| 913 | PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER |
| 914 | TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
| 915 | PERFORMANCE OF THIS SOFTWARE. |
Guido van Rossum | 91cb9d2 | 1995-04-10 11:47:38 +0000 | [diff] [blame] | 916 | ---------------------------------------------------------------------- |
Guido van Rossum | 433c8ad | 1994-08-01 12:07:07 +0000 | [diff] [blame] | 917 | |
| 918 | |
Guido van Rossum | faf681a | 1996-06-20 14:32:08 +0000 | [diff] [blame] | 919 | --Guido van Rossum (home page: http://www.python.org/~guido/) |