Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Defer compilation of regular expressions until first use. | Martin v. Löwis | 2004-03-25 | 1 | -3/+7 |
| | |||||
* | Replace backticks with repr() or "%r" | Walter Dörwald | 2004-02-12 | 1 | -8/+8 |
| | | | | From SF patch #852334. | ||||
* | Translate spaces in the machine name to underscores | Andrew M. Kuchling | 2003-01-06 | 1 | -2/+3 |
| | | | | (Power Macintosh -> Power_Macintosh) | ||||
* | Adding Python <= 2.2 support back in. | Marc-André Lemburg | 2002-12-03 | 1 | -3/+10 |
| | |||||
* | Remove 'created by' lines; people can use CVS for this, and the information ↵ | Andrew M. Kuchling | 2002-11-14 | 1 | -2/+0 |
| | | | | is often out of date | ||||
* | SF bug #574235, convert_path fails with empty pathname | Neal Norwitz | 2002-08-13 | 1 | -2/+4 |
| | |||||
* | Massive changes from SF 589982 (tempfile.py rewrite, by Zack | Guido van Rossum | 2002-08-09 | 1 | -3/+3 |
| | | | | | Weinberg). This changes all uses of deprecated tempfile functions to the recommended ones. | ||||
* | Make setup.py less chatty by default. | Jeremy Hylton | 2002-06-04 | 1 | -27/+18 |
| | | | | | | | | | | | | | | | This is a conservative version of SF patch 504889. It uses the log module instead of calling print in various places, and it ignores the verbose argument passed to many functions and set as an attribute on some objects. Instead, it uses the verbosity set on the logger via the command line. The log module is now preferred over announce() and warn() methods that exist only for backwards compatibility. XXX This checkin changes a lot of modules that have no test suite and aren't exercised by the Python build process. It will need substantial testing. | ||||
* | Prevent convert_path from crashing if the path is an empty string. Bugfix ↵ | Andrew M. Kuchling | 2002-05-06 | 1 | -2/+2 |
| | | | | candidate. | ||||
* | OS/2 patches by Andrew I MacIntyre for distutils. | Marc-André Lemburg | 2002-01-31 | 1 | -0/+6 |
| | | | | Closes patch #435381. | ||||
* | Whitespace normalization. | Fred Drake | 2001-12-06 | 1 | -9/+7 |
| | |||||
* | Patch #429442 from Jason Tishler: Corrects sys.platform and | Andrew M. Kuchling | 2001-07-20 | 1 | -0/+1 |
| | | | | | distutils.util.get_platform() problems caused by the cruft contained in Cygwin's uname -s. | ||||
* | Change rfc822_escape() to ensure there's a consistent amount of whitespace | Andrew M. Kuchling | 2001-03-23 | 1 | -3/+4 |
| | | | | | after each newline, instead of just blindly inserting a space at the start of each line. (Improvement suggested by Thomas Wouters) | ||||
* | Patch #407434: add rfc822_escape utility function | Andrew M. Kuchling | 2001-03-22 | 1 | -0/+10 |
| | |||||
* | Bug #229280: remove '/' characters from the OS name (for BSD/OS :) ) | Andrew M. Kuchling | 2001-02-27 | 1 | -1/+6 |
| | |||||
* | Patch #404275: generate a reasonable platform string for AIX | Andrew M. Kuchling | 2001-02-27 | 1 | -0/+2 |
| | |||||
* | Remove single "." components from pathnames, and return os.curdir if | Jack Jansen | 2001-01-28 | 1 | -0/+4 |
| | | | | the resulting path is empty. | ||||
* | In subst_vars(), change the name of the argument from str to s to | Jeremy Hylton | 2001-01-25 | 1 | -2/+2 |
| | | | | | | | | | prevent binding for str from masking use of builtin str in nested function. (This is the only case I found in the standard library where a local shadows a global or builtin. There may be others, but the regression test doesn't catch them.) | ||||
* | Patch #103220 from Jason Tishler: | Andrew M. Kuchling | 2001-01-19 | 1 | -0/+5 |
| | | | | | | This patch adds support for Cygwin to util.get_platform(). A Cygwin specific case is needed due to the format of Cygwin's uname command, which contains '/' characters. | ||||
* | Removed debugging code at bottom. | Greg Ward | 2000-10-14 | 1 | -8/+0 |
| | |||||
* | Added a long-winded comment (and commented-out comment to go with out) | Greg Ward | 2000-10-03 | 1 | -1/+17 |
| | | | | | | | | | | about how it would be nice to write absolute paths to the temporary byte-compilation script, but this doesn't work because it screws up the trailing-slash trickery done to 'prefix' in build_py's 'byte_compile()' method. Fixed to use 'execute()' instead of 'os.remove()' to remove the temporary script: now it doesn't blow up in dry-run mode! | ||||
* | Remove the temporary byte-compilation script when we're done with it. | Greg Ward | 2000-10-02 | 1 | -0/+1 |
| | |||||
* | Tweaked 'byte_compile()' so it silently skips non-Python files, rather than | Greg Ward | 2000-10-01 | 1 | -5/+7 |
| | | | | blowing up. | ||||
* | Added 'byte_compile(): an all-singing, all-dancing wrapper around the | Greg Ward | 2000-09-30 | 1 | -2/+129 |
| | | | | | | | | | | standard 'py_compile.compile()' function. Laundry list of features: - handles standard Distutils 'force', 'verbose', 'dry_run' flags - handles various levels of optimization: can compile directly in this interpreter process, or write a temporary script that is then executed by a new interpreter with the appropriate flags - can rewrite the source filename by stripping an optional prefix and preprending an optional base dir. | ||||
* | Various docstring tweaks. | Greg Ward | 2000-09-30 | 1 | -12/+14 |
| | | | | | | Fixed 'subst_vars()' so it actually blows up like the docstring claims (and fixed the docstring not to claim it handles ${var}, which it doesn't). | ||||
* | Reformat docstrings. | Greg Ward | 2000-09-30 | 1 | -24/+23 |
| | |||||
* | In 'get_platform()', handle so-called POSIX systems that don't have | Greg Ward | 2000-09-30 | 1 | -1/+1 |
| | | | | 'uname()' -- specifically NeXTSTEP. | ||||
* | Standardize whitespace in function calls. | Greg Ward | 2000-09-26 | 1 | -12/+12 |
| | |||||
* | Added 'strtobool()' function: convert strings like "yes", "1", | Greg Ward | 2000-09-25 | 1 | -0/+15 |
| | | | | "no", "0", etc. to true/false. | ||||
* | Fix 'convert_path()' so it returns immediately under Unix -- prevents blowing | Greg Ward | 2000-09-22 | 1 | -5/+5 |
| | | | | | up when the pathname starts with '/', which is needed when converting installation directories in the "install" command. | ||||
* | Corran Webster: fix 'change_root()' to handle Mac OS paths. | Greg Ward | 2000-09-21 | 1 | -1/+7 |
| | |||||
* | Revamped 'get_platform()' to try and do something reasonably smart on | Greg Ward | 2000-09-15 | 1 | -4/+42 |
| | | | | POSIX platforms, ie. get a little more detail than 'sys.platform' gives. | ||||
* | Fix so 'split_quoted()' handles any whitespace delimiter (not just space). | Greg Ward | 2000-08-08 | 1 | -2/+2 |
| | |||||
* | Drop the 'extend()' function -- old 1.5.1 compatibility hack that | Greg Ward | 2000-08-05 | 1 | -20/+0 |
| | | | | | wasn't actually used anywhere. Drop the "from xxx_util import*" backwards compability hacks. | ||||
* | Added the 'execute()' function (moved here from cmd.py with minor tweakage). | Greg Ward | 2000-08-02 | 1 | -0/+26 |
| | |||||
* | Ditched 'abspath()' -- don't need 1.5.1 compatability hacks anymore. | Greg Ward | 2000-08-02 | 1 | -10/+0 |
| | |||||
* | Fixed a grab-bag of typos spotted by Rob Hooft. | Greg Ward | 2000-07-27 | 1 | -2/+2 |
| | |||||
* | typos fixed by Rob Hooft | Jeremy Hylton | 2000-06-28 | 1 | -1/+1 |
| | |||||
* | Added 'split_quoted()' function to deal with strings that are quoted in | Greg Ward | 2000-06-24 | 1 | -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. | ||||
* | 'get_platform()' now just returns 'sys.platform' on all platforms. | Greg Ward | 2000-06-18 | 1 | -12/+4 |
| | |||||
* | Added 'grok_environment_error()' function to deal with the various | Greg Ward | 2000-06-17 | 1 | -0/+20 |
| | | | | forms that IOError and OSError can take (taken from core.py). | ||||
* | Renamed 'native_path()' to 'convert_path()'. | Greg Ward | 2000-05-31 | 1 | -8/+4 |
| | | | | | Also changed it so it doesn't barf if the path is already in native format (ie. contains os.sep). | ||||
* | Fixed 'change_root() to work at all on Windows, and to work correctly on Unix. | Greg Ward | 2000-05-31 | 1 | -10/+10 |
| | |||||
* | Made 'check_environ()' "public" by stripping the leading underscore; | Gregory P. Smith | 2000-05-12 | 1 | -2/+9 |
| | | | | | added a global '_environ_checked' so we know if it's already been called. | ||||
* | Added 'change_root()' to forcibly slap a new root directory onto a pathname, | Greg Ward | 2000-04-27 | 1 | -0/+26 |
| | | | | | | even if it's already absolute. Currently only implemented for Unix; I'm not entirely sure of the right thing to do for DOS/Windows, and have no clue what to do for Mac OS. | ||||
* | Lyle Johnson: fixed broken logic in 'native_path()'. | Greg Ward | 2000-04-25 | 1 | -7/+7 |
| | |||||
* | Merged in Python 1.5.1 compatibility changes from the 0.1.3 branch: | Greg Ward | 2000-04-22 | 1 | -0/+24 |
| | | | | added 'abspath()' and 'extend()'. | ||||
* | Cleaned up/simplified error-handling: | Greg Ward | 2000-04-15 | 1 | -4/+4 |
| | | | | | | | | | | | | | - DistutilsOptionError is now documented as it's actually used, ie. to indicate bogus option values (usually user options, eg. from the command-line) - added DistutilsSetupError to indicate errors that definitely arise in the setup script - got rid of DistutilsValueError, and changed all usage of it to either DistutilsSetupError or ValueError as appropriate - simplified a bunch of option get/set methods in Command and Distribution classes -- just pass on AttributeError most of the time, rather than turning it into something else | ||||
* | Reorganization: ripped util.py to shreds, creating in the process: | Greg Ward | 2000-04-04 | 1 | -664/+7 |
| | | | | | | | | | - file_util.py: operations on single files - dir_util.py: operations on whole directories or directory trees - dep_util.py: simple timestamp-based dependency analysis - archive_util.py: creation of archive (tar, zip, ...) files The functions left in util.py are miscellany that don't fit in any of the new files. | ||||
* | Fixed 'make_archive()' to explicitly turn of compression when format is "tar". | Greg Ward | 2000-03-31 | 1 | -0/+1 |
| |