summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Fixed the "pre-link hook" so it actually works, mainly by renaming itGreg Ward2000-06-251-41/+33
| | | | | | to 'msvc_prelink_hack()', adding the parameters that it actually needs, and only calling it for MSVC compiler objects. Generally gave up on the idea of a general "hook" mechanism: deleted the empty 'precompile_hook()'.
* Added PreprocessError and UnknownFileError (both used by CCompiler).Greg Ward2000-06-251-1/+5
|
* Call 'customize_compiler()' after getting CCompiler object.Greg Ward2000-06-251-0/+2
|
* Fixed a few silly bugs in my SWIG support code. (Hey, I said it wasGreg Ward2000-06-251-3/+5
| | | | | experimental and untested.) Call 'customize_compiler()' after getting CCompiler object.
* Added the 'customize_compiler()' function, which plugs in the essentialGreg Ward2000-06-251-0/+20
| | | | | | information about building Python extensions that we discovered in Python's makefile. Currently only needed on Unix, so does nothing on other systems.
* Introduced some bureaucracy for setting and tracking the executablesGreg Ward2000-06-251-3/+58
| | | | | | | | | | | that a particular compiler system depends on. This consists of the 'set_executables()' and 'set_executable()' methods, and a few lines in the constructor that expect implementation classes to provide an 'executables' attribute, which we use to initialize several instance attributes. The default implementation is somewhat biased in favour of a Unix/DOS "command-line" view of the world, but it shouldn't be too hard to override this for operating systems with a more sophisticated way of representing programs-to-execute.
* Got rid of direct dependence on the sysconfig module. Mainly, thisGreg Ward2000-06-251-67/+35
| | | | | | | | meant playing along with the new "dictionary of executables" scheme added to CCompiler by adding the 'executables' class attribute, and changing all the compile/link/etc. methods to use the new attributes (which encapsulate both the program to run and its standard arguments, so it was a *little* bit more than just changing some names).
* Added 'split_quoted()' function to deal with strings that are quoted inGreg Ward2000-06-241-0/+67
| | | | | Unix shell-like syntax (eg. in Python's Makefile, for one thing -- now that I have this function, I'll probably allow quoted strings in config files too.
* Docstring reformatting/tweaking binge.Greg Ward2000-06-241-249/+253
| | | | Fixed a few comments.
* Print a warning if we install a data file right in install_dir.Greg Ward2000-06-241-3/+7
| | | | Tweaked help text.
* Changed the default installation directory for data files (used byGreg Ward2000-06-241-4/+4
| | | | | | the "install_data" command to the installation base, which is usually just sys.prefix. (Any setup scripts out there that specify data files will have to set the installation directory, relative to the base, explicitly.)
* Changed 'object_filenames()' to raise exception instead of silently carryingGreg Ward2000-06-241-1/+3
| | | | on if it sees a filename with unknown extension.
* Changed so all the help-generating functions are defined, at module-level,Greg Ward2000-06-245-41/+56
| | | | | | | in the module of the command classes that have command-specific help options. This lets us keep the principle of lazily importing the ccompiler module, and also gets away from defining non-methods at class level.
* More stylistic tweaks to the generic '--help-xxx' code.Greg Ward2000-06-241-12/+15
|
* Stylistic/formatting changes to Rene Liebscher's '--help-xxx' patch.Greg Ward2000-06-247-42/+72
|
* Experimental, completely untested SWIG support.Greg Ward2000-06-241-5/+74
|
* Revised docstring so 'sources' isn't necessarily all C/C++ files (toGreg Ward2000-06-241-3/+5
| | | | accomodate SWIG interface files, resource files, etc.).
* Bastian Kleineidam: 'copy_file()' now returns the output filename, ratherGreg Ward2000-06-231-6/+5
| | | | than a boolean indicating whether it did the copy.
* Marc-Andre Lemburg <mal@lemburg.com>:Marc-André Lemburg2000-06-211-1/+6
| | | | Made codecs.open() default to 'rb' as file mode.
* Sjoerd Mullender:Guido van Rossum2000-06-211-4/+4
| | | | | | | | | | | | | | | These two fixes were approved by me. Peter Kropf: There's a problem with the xmllib module when used with JPython. Specifically, the JPython re module has trouble with the () characters in strings passed into re.compile. Spiros Papadimitriou: I just downloaded xmllib.py ver. 0.3 from python.org and there seems to be a slight typo: Line 654 ("tag = self.stack[-1][0]" in parse_endtag), is indented one level more than it should be. I just thought I'd let you know...
* Implementation of the CCompiler class for Cygwin and Mingw32, ie. the twoGreg Ward2000-06-211-0/+181
| | | | | | major ports of GCC to Windows. Contributed by Rene Liebscher, and quite untested by me. Apparently requires tweaking Python's installed config.h and adding a libpython.a to build extensions.
* Fix inspired by Rene Liebscher: if setup script is newer than theGreg Ward2000-06-211-3/+26
| | | | manifest, regenerate the manifest.
* Delete spurious comment.Greg Ward2000-06-211-1/+0
|
* Build the 'outfiles' list so 'get_outputs()' has something to return.Greg Ward2000-06-212-5/+15
| | | | (Bug spotted and originally fixed by Rene Liebscher; fix redone by me.)
* Rene Liebscher: when fixing up directories with an alternate root, includeGreg Ward2000-06-211-1/+2
| | | | 'install_headers'.
* Fleshed out and added a bunch of useful stuff, notably 'check_func()',Greg Ward2000-06-211-32/+176
| | | | | | 'try_cpp()', 'search_cpp()', and 'check_header()'. This is enough that the base config is actually useful for implementing a real config command, specifically one for mxDateTime.
* Oops, import 'grok_environment_error()'.Greg Ward2000-06-211-0/+1
|
* Added 'preprocess()' method to CCompiler interface, and implementedGreg Ward2000-06-212-0/+48
| | | | | | it in UnixCCompiler. Still needs to be implemented in MSVCCompiler (and whatever other compiler classes are lurking out there, waiting to be checked in).
* verify that Python raises SyntaxError for long and deeply-nested expressionsJeremy Hylton2000-06-202-0/+20
|
* add minimal test of exception use. verify that each exception can beJeremy Hylton2000-06-201-0/+12
| | | | raised, caught, and converted to a string.
* Pekka Pessi <Pekka.Pessi@nokia.com>:Fred Drake2000-06-201-3/+3
| | | | | Patch to add support for sip: (Session Initiation Protocol, RFC2543) URLs.
* Fix bug when the replacement template is a callable objectAndrew M. Kuchling2000-06-181-1/+1
|
* Patch from /F:Andrew M. Kuchling2000-06-181-0/+6
| | | | | | | | | | this patch adds a fast _flatten function to the _tkinter module, and imports it from Tkinter.py (if available). this speeds up canvas operations like create_line and create_polygon. for example, a create_line with 5000 vertices runs about 50 times faster with this patch in place.
* 'get_platform()' now just returns 'sys.platform' on all platforms.Greg Ward2000-06-181-12/+4
|
* Additional tests for seek() method, written by Trent MickAndrew M. Kuchling2000-06-182-1/+36
|
* Pulled the MSVC++-specific hackery out to a new method, 'prelink_hook()',Greg Ward2000-06-171-36/+63
| | | | | | and added (empty) 'precompile_hook()' for symmetry. One can envision a much more elaborate hook mechanism, but this looks like it'll do for now.
* Renamed PATH_CREATED to _path_created, on the grounds that it's private andGreg Ward2000-06-171-8/+8
| | | | mutable, rather than public and constant.
* Changed 'remove_tree()' to use the new 'grok_environment_error()' functionGreg Ward2000-06-171-7/+6
| | | | instead of muddling through IOError and OSError exception objects itself.
* Changed to use the new 'grok_environment_error()' function instead ofGreg Ward2000-06-171-10/+1
| | | | muddling through IOError and OSError exception objects right here.
* Added 'grok_environment_error()' function to deal with the variousGreg Ward2000-06-171-0/+20
| | | | forms that IOError and OSError can take (taken from core.py).
* Bastian Kleineidam: added 'remove_tree()' function. Needed so thatGreg Ward2000-06-171-10/+25
| | | | | | | | | 'remove_tree()' can cooperate with 'mkpath()' in the maintenance of the PATH_CREATED cache: specifically, if a directory is created with 'mkpath()', later removed with 'remove_tree()', and 'mkpath()' is again requested to create it, then it would erroneously think the directory already existed, because it was in the PATH_CREATED cache. The patch (slightly tweaked by me) fixes that.
* Fixed install directory for header files on Unix.Greg Ward2000-06-171-1/+1
|
* Marc-Andre Lemburg <mal@lemburg.com>:Marc-André Lemburg2000-06-141-6/+0
| | | | | Removed a test which can fail when the default locale setting uses a Latin-1 encoding. The test case is not applicable anymore.
* James C. Ahlstron <jim@interet.com>:Fred Drake2000-06-131-1/+1
| | | | Thanks to Hubert Hoegl <hubert.hoegl@dlr.de> for finding this bug.
* Marc-Andre Lemburg <mal@lemburg.com>:Marc-André Lemburg2000-06-131-3/+12
| | | | | | | | Fixed some tests to not cause the script to fail, but rather output a warning (which then is caught by regrtest.py as wrong output). This is needed to make test_unicode.py run through on JPython. Thanks to Finn Bock.
* Marc-Andre Lemburg <mal@lemburg.com>:Marc-André Lemburg2000-06-131-2/+2
| | | | | Removed import of string module -- use string methods directly. Thanks to Finn Bock.
* Applied simplifications suggested by Greg Stein.Andrew M. Kuchling2000-06-101-15/+4
|
* Add contents of curses packageAndrew M. Kuchling2000-06-102-0/+68
|
* Added test for linnuxaudiodev module; directly adapted from sunaudiodevFred Drake2000-06-102-0/+21
| | | | | test. Someone with more Linux audio knowledge should at least take a brief look at it.
* Comment out an apparent debug printAndrew M. Kuchling2000-06-101-1/+1
|