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