summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Trent Mick <trentm@activestate.com>:Fred Drake2000-06-011-4/+10
| | | | | Fix test of the "math" module so it does not break on platforms that do not offer rint(); just skip that portion of the test in that case.
* Fredrik Lundh: here's the 96.6% version of SREJeremy Hylton2000-06-016-303/+743
|
* add new Python/exceptions.c to python16 project (courtesy Trent Mick)Jeremy Hylton2000-06-011-0/+15
|
* Improve TypeError exception message for list catenation.Fred Drake2000-06-011-2/+2
|
* Michael Hudson <mwh21@cam.ac.uk>:Fred Drake2000-06-013-4/+12
| | | | | Removed PyErr_BadArgument() calls and replaced them with more useful error messages.
* Fix bug reported by atkins@gweep.net; re.compile(r"[\100-\410]")Andrew M. Kuchling2000-06-011-1/+1
| | | | | dumps core. Solution: fix check_escape() to match its comment and use only the low 8 bits of the octal number.
* Michael Hudson <mwh21@cam.ac.uk>:Fred Drake2000-06-013-7/+14
| | | | | Removed PyErr_BadArgument() calls and replaced them with more useful error messages.
* patch from Charles Waldman--Jeremy Hylton2000-06-011-0/+1
| | | | define ThreadError (== thread.error); docs should be updated, too
* Remember the list of archive files created in 'make_distribution()'.Greg Ward2000-06-011-1/+13
| | | | Added 'get_archive_files()' so outsiders can get their hands on that list.
* Oops, 'reinitialize_command()' forgot to return the command object if didn'tGreg Ward2000-06-011-1/+1
| | | | need to be reinitialized -- fixed.
* Added 'reinitialize_command()' method -- delegated to Distribution instance.Greg Ward2000-06-011-2/+6
| | | | Ensure 'make_archive()' method returns archive filename.
* Ensure that 'make_archive()' returns the name of the new archive file.Greg Ward2000-06-011-4/+5
|
* More tweaking to make this command act like other Distutils commands:Greg Ward2000-06-011-26/+29
| | | | | | | | | | | | | * added "--bdist-base" option to parameterize where we build the RPM (comes from "bdist" by default: "build/bdist.<plat>") * simplified/cleaned up some code in 'run()' in the process of removing (most) hard-coded directory names * if "--spec-only", drop spec file in "dist" rather than "redhat" (directory name still hard-coded, though) * use 'reinitialize_command()' to fetch the "sdist" object to tweak before running "sdist" command * use 'self.copy_file()' method rather than 'copy_file()' function * cosmetic tweaks to comments, error messages
* Regularize options a bit:Greg Ward2000-05-311-12/+19
| | | | | | | * help strings start with lowercase * added affirmative version of '--no-clean' and '--no-rpm-opt-flags', which are the default (thus the attributes that correspond to the options are now 'clean' and 'use_rpm_opt_flags')
* Do not expose __builtins__ name as a completion; this is an implementationFred Drake2000-05-311-2/+2
| | | | detail that confuses too many people. Based on discussion in python-dev.
* Filled out the "Core Changes" section.Andrew M. Kuchling2000-05-311-24/+81
|
* Renamed 'native_path()' to 'convert_path()'.Greg Ward2000-05-313-15/+11
| | | | | Also changed it so it doesn't barf if the path is already in native format (ie. contains os.sep).
* Normalize paths before writing them to a zipfile.Greg Ward2000-05-311-1/+1
|
* Fixed 'change_root() to work at all on Windows, and to work correctly on Unix.Greg Ward2000-05-311-10/+10
|
* Import the new Extension class, so setup scripts canGreg Ward2000-05-311-0/+4
| | | | "from distutils.core import" it.
* Overhauled to expect 'self.extensions' (taken from 'ext_modules' in theGreg Ward2000-05-311-66/+128
| | | | | | | | | | | | | | setup script) to be a list of Extension instances, rather than a list of of (ext_name, build_info) tuples. This is mostly a simplification, but 'check_extension_list()' got a lot more complicated because of the need to convert the old-style tuples to Extension instances. Temporarily dropped support for defining/undefining macros in the 'extensions' list -- I want to change the interface, but haven't yet made the required changes in CCompiler and friends to support this nicely. Also neatened up the code that merges 'extra_compile_flags' and the CFLAGS environment variable.
* Provides the Extension class, a nicer way to describe C/C++ extensions thanGreg Ward2000-05-311-0/+115
| | | | the old (ext_name, build_info) tuple.
* Fixed typo noted by Guido Kollerie <gkoller@cs.vu.nl> in example code.Fred Drake2000-05-301-1/+1
|
* Add 'r' to docstrings to avoid expanded backslash escapes. (Ka-Ping Yee)Guido van Rossum2000-05-302-3/+5
|
* Added concrete example of when separate build and install might beGreg Ward2000-05-301-1/+5
| | | | useful (suggested by Moshe Zadka).
* Cosmetic tweak.Greg Ward2000-05-301-1/+2
|
* Catch CCompiler exceptions in 'setup()'.Greg Ward2000-05-301-1/+2
|
* Import exceptions from errors.py, not ccompiler.py.Greg Ward2000-05-302-7/+7
|
* Removed exceptions -- now in errors.py to avoid expensive import of ccompiler.Greg Ward2000-05-301-16/+0
|
* Moved the CCompiler exceptions here, to avoid having to import ccompiler.pyGreg Ward2000-05-301-79/+78
| | | | | just to get a little exception class. No more string-based exceptions.
* Changed to catch compile/link failures and raise CompileError, LibError,Greg Ward2000-05-303-17/+74
| | | | or LinkError (exception classes defined in ccompiler.py).
* Added 'dump_options()' for debugging output.Greg Ward2000-05-281-0/+15
|
* Factored '_set_command_options()' out of 'get_command_obj()'.Greg Ward2000-05-281-8/+82
| | | | | | | | | | | | | Added 'reinitialize_command()' -- lets us "push" option values in a controlled, safe way; this is a small change to the code, but a big change to the Distutils philosophy of passing option values around. The preferred mode is still definitely to "pull" options from another command (eg. "install" fetches the base build directory from "build"), but it is now feasible to "push" options onto another command, when you know what's best for it. One possible application will be a "config" command, which pokes around the system and pushes values (eg. include and library directories) onto the "build" command. Added 'dump_option_dicts()' method (for debugging output).
* Changed order so 'clean' is right after the 'build' commands.Greg Ward2000-05-281-1/+1
|
* Only print debugging output if DEBUG (imported from distutils.core) is true.Greg Ward2000-05-281-14/+15
|
* Moved warnings out of 'finalize_options()' into 'run()'.Greg Ward2000-05-281-7/+13
| | | | Added a warning for 'bdist_base' directory.
* Typo fix in comment.Greg Ward2000-05-281-1/+1
|
* Some far-reaching naming changes:Greg Ward2000-05-2711-78/+59
| | | | | | | * Command method 'find_peer()' -> 'get_finalized_command()' * Command method 'run_peer()' -> 'run_command()' Also deleted the 'get_command_option()' method from Command, and fixed the one place where it was used (in "bdist_dumb").
* Article about 1.6 new featuresAndrew M. Kuchling2000-05-271-0/+233
|
* Patch from Andrew Kuchling: prune out the build and source distributionGreg Ward2000-05-271-0/+7
| | | | | | | | | | directories after all is said and done, so we don't accidentally include those files in the source distribution. (This is the quick and easy way to fix this; Andrew says: "Changing findall() looked like it was going to be messy, so I tried this instead. The only problem is that redundant directory traversals are being done, walking through build/ only to throw out all the files found at the end.").
* Support for the "install_headers" command: distribution option 'headers'Greg Ward2000-05-271-0/+4
| | | | and method 'has_headers()'.
* 'mkpath()' now detects non-string 'name' arguments -- this is a fairly commonGreg Ward2000-05-271-1/+7
| | | | | bug when adding new code, so I thought I'd make it blow up earlier than deep in posix.py.
* Tweaked description, help text.Greg Ward2000-05-271-3/+3
|
* Support for the "install_headers" command:Greg Ward2000-05-271-5/+22
| | | | | | | | | | | | | * 'headers' entry added to all the install schemes * '--install-headers' option added * 'install_headers' added to 'sub_commands' * added 'dist_name' to configuration variables (along with a few others that seem handy: 'dist_version', 'dist_fullname', and 'py_version' * in 'finalize_unix()', make sure 'install_headers' defined if user specified 'install_base' and/or 'install_platbase' * added 'has_headers()' * a few other small changes
* Added 'install_headers' command to install C/C++ header files.Greg Ward2000-05-272-0/+41
|
* Patch from M.-A. Lemburg:Jeremy Hylton2000-05-263-29/+27
| | | | | | | | | | | | | | | | | | | | | | | | | Python on UNIX now trusts PYTHONHOME unconditionally Modules/getpath.c: Landmark changed to os.py. Setting PYTHONHOME now unconditionally sets sys.prefix (and sys.exec_prefix). No further checks are done whether the standard lib can be found in that location or not. This is in sync with the PC subdir getpath implementations. PC/getpathp.c: Landmark changed to os.py. PC/os2vacpp/getpathp.c: Landmark changed to os.py. Note: BAW's checkin on exceptions.c eliminates earlier concerns about a bogus PYTHONHOME value leading to a core dump. Instead it causes a useless sys.path and prevents imports.
* Added documentation for gettempprefix().Fred Drake2000-05-261-2/+15
| | | | | | | Deprecated direct access to template. Added note about past need to modify template so that legacy code has a better chance of being understood, noting that the requirement to reset template after os.fork() disappeared in 1.5.2.
* This module is obsolete now that the standard exceptions are built-in.Barry Warsaw2000-05-261-4/+0
|
* Added documentation for TemporaryFile() and the siffix parameter to mktemp().Fred Drake2000-05-261-13/+26
| | | | | | | Removed obsolete comments about this module not creating or removing actual files. Removed obsolete comment about users needing to set template to None after calling os.fork().
* The standard exception classes. Moved here from ../Modules/_exceptions.cBarry Warsaw2000-05-261-0/+994
|