| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
(Power Macintosh -> Power_Macintosh)
|
| |
|
|
|
|
| |
is often out of date
|
| |
|
|
|
|
|
| |
Weinberg). This changes all uses of deprecated tempfile functions to
the recommended ones.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
candidate.
|
|
|
|
| |
Closes patch #435381.
|
| |
|
|
|
|
|
| |
distutils.util.get_platform() problems caused by the cruft contained
in Cygwin's uname -s.
|
|
|
|
|
| |
after each newline, instead of just blindly inserting a space at
the start of each line. (Improvement suggested by Thomas Wouters)
|
| |
|
| |
|
| |
|
|
|
|
| |
the resulting path is empty.
|
|
|
|
|
|
|
|
|
| |
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.)
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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!
|
| |
|
|
|
|
| |
blowing up.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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).
|
| |
|
|
|
|
| |
'uname()' -- specifically NeXTSTEP.
|
| |
|
|
|
|
| |
"no", "0", etc. to true/false.
|
|
|
|
|
| |
up when the pathname starts with '/', which is needed when converting
installation directories in the "install" command.
|
| |
|
|
|
|
| |
POSIX platforms, ie. get a little more detail than 'sys.platform' gives.
|
| |
|
|
|
|
|
| |
wasn't actually used anywhere.
Drop the "from xxx_util import*" backwards compability hacks.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
forms that IOError and OSError can take (taken from core.py).
|
|
|
|
|
| |
Also changed it so it doesn't barf if the path is already in native format
(ie. contains os.sep).
|
| |
|
|
|
|
|
| |
added a global '_environ_checked' so we know if it's already been
called.
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
added 'abspath()' and 'extend()'.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
|
|
| |
- 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.
|
| |
|
|
|
|
| |
eg. sunos5, linux2, irix5.
|
|
|
|
|
|
|
|
|
|
|
| |
Changes to 'copy_file()':
* added support for making hard links and symlinks
* noted that it silently clobbers existing files when copying, but
blows up if destination exists when linking -- hmmm...
* error message tweak
Added 'base_name' parameter to 'make_tarball()' and 'make_zipfile()'.
Added 'make_archive()' -- wrapper around 'make_tarball()' or
'make_zipfile()' to take care of the archive "root directory".
|