summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Added the "--root" option as a sort of meta-install-base; if supplied,Greg Ward2000-04-271-11/+31
| | | | | | it is forcibly prepended onto all installation directories, even if they are already absolute. Added 'dump_dirs()' to clean up the debug output a bit.
* Added 'change_root()' to forcibly slap a new root directory onto a pathname,Greg Ward2000-04-271-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.
* Michael Hudson fixes a case where execv() is called (for a test) withGuido van Rossum2000-04-261-1/+1
| | | | | an empty argument list -- another patch he's checking in will make this illegal (the first argument should always be the program name).
* Hacked things up a bit so that configuration variables are expandedGreg Ward2000-04-261-27/+52
| | | | | | | | | | | | | | | | | | in command-line options, and in two phases at that: first, we expand 'install_base' and 'install_platbase', and then the other 'install_*' options. This lets us do tricky stuff like install --prefix='/tmp$sys_prefix' ...oooh, neat. Simplified 'select_scheme()' -- it's no longer responsible for expanding config vars, tildes, etc. Define installation-specific config vars in 'self.config_vars', rather than in a local dictionary of one method. Also factored '_expand_attrs()' out of 'expand_dirs()' and added 'expand_basedirs()'. Added a bunch of debugging output so I (and others) can judge the success of this crazy scheme through direct feedback.
* Harry Henry Gebel: import exception classes.Greg Ward2000-04-261-1/+1
|
* Harry Henry Gebel: add 'long_description' to DistributionMetadata.Greg Ward2000-04-261-1/+7
|
* Supply short form for --manifest-only (-o) and --force-manifest (-f)Greg Ward2000-04-261-2/+2
| | | | options.
* Harry Henry Gebel:Greg Ward2000-04-261-5/+5
| | | | Fix 'sdist.write_manifest()' to respect the value of dry_run.
* Michael Hudson:Guido van Rossum2000-04-251-1/+29
| | | | | | | | I think that after this patch, all objects in the os module (with names that don't start with "_") that can have docstrings, do, on Linux at least. Also fix a nit in one of my spawn* docstrings.
* Bumped version to 0.8.2.Greg Ward2000-04-251-1/+1
|
* Harry Henry Gebel:Greg Ward2000-04-253-11/+20
| | | | | | | | | | | | | | | Adds bztar format to generate .tar.bz2 tarballs Uses the -f argument to overright old tarballs automatically, I am assuming that if the old tarball was wanted it would have been moved or else the version number would have been changed. Uses the -9 argument to bzip2 and gzip to use maximum compression. Compress uses the maximum compression by default. Tests for correct value for the 'compress' argument of make_tarball. This is one less place for someone adding new compression programs to forget to change.
* Lyle Johnson: fixed broken logic in 'native_path()'.Greg Ward2000-04-251-7/+7
|
* Fix to previous patch: send the request data when it's providedAndrew M. Kuchling2000-04-241-0/+2
|
* Added a provision to stop all threads before exiting from the test:Guido van Rossum2000-04-241-1/+7
| | | | | | the change to regrtest.py to unload all newly imported modules did something bad to the threads -- and I realized that they would never stop!
* Fix spelling error and remove Windows line endings.Guido van Rossum2000-04-241-1/+1
|
* Security patch for Unix by Chris McDonough.Guido van Rossum2000-04-241-7/+21
| | | | | | This uses the same precautions when trying to find a temporary directory as when the actual tempfile is created (using O_CREAT and O_EXCL). On non-posix platforms, nothing is changed.
* Fixed bug reported by JP Calderone: https:// URL's didn't work.Andrew M. Kuchling2000-04-231-2/+8
| | | | The fix also adds support for POSTing to an https URL
* Patch from Harry Henry Gebel: fix two stupid bugs in help-printing stuff.Greg Ward2000-04-231-2/+2
|
* Sporadic, untested Python 1.5.1 compatibility changes.Greg Ward2000-04-221-1/+1
|
* Merged in Python 1.5.1 compatibility changes from the 0.1.3 branch:Greg Ward2000-04-221-0/+24
| | | | added 'abspath()' and 'extend()'.
* Merged in code from the 0.1.5 release to handle IOError and OSErrorGreg Ward2000-04-221-6/+12
| | | | exceptions better.
* Check that 'self.formats' is good early on.Greg Ward2000-04-221-3/+8
|
* Catch DistutilsOptionError in 'setup()' -- it's thrown either because ofGreg Ward2000-04-221-1/+3
| | | | | errors in the setup script or on the command line, so shouldn't result in a traceback.
* Extracted the "what-do-I-do-for-this-format" logic from code inGreg Ward2000-04-221-11/+21
| | | | | | 'make_archive()' to a global static dictionary, ARCHIVE_FORMATS. Added 'check_archive_formats()', which obviously makes good use of this dictionary.
* Fix how we generate the meta-data query methods to include 'get_fullname()'Greg Ward2000-04-221-3/+5
| | | | and the other "composite meta-data" methods.
* Changed to call 'get_fullname()', not 'get_full_name()', on Distribution object.Greg Ward2000-04-222-2/+2
|
* Patch by Vladimir Marangozov to unload additionally imported modulesGuido van Rossum2000-04-211-0/+5
| | | | | after each test has been run. This avoids excessive memory growth during the tests.
* Added test_winsound by Mark Hammond.Guido van Rossum2000-04-212-0/+9
|
* Charles Waldman writes:Guido van Rossum2000-04-211-4/+4
| | | | | | | | | | """ In the course of debugging this I also saw that cPickle is inconsistent with pickle - if you attempt a pickle.load or pickle.dump on a closed file, you get a ValueError, whereas the corresponding cPickle operations give an IOError. Since cPickle is advertised as being compatible with pickle, I changed these exceptions to match. """
* Doc strings for the spawn* functions, by Michael Hudson.Guido van Rossum2000-04-211-0/+56
|
* Fix 'check_metadata()' so it grovels through the distribution's metadataGreg Ward2000-04-211-6/+6
| | | | | object, rather than through the distribution itself (since I moved the meta- data out to a DistributionMetadata instance).
* Patch from Andrew Kuchling: allow multiple include/exclude patternsGreg Ward2000-04-211-48/+55
| | | | for all commands except 'prune' and 'graft'.
* Fixed the '--license' option so it's officially an alias for '--licence',Greg Ward2000-04-211-4/+1
| | | | and now actually works.
* Added the capability for alias options.Greg Ward2000-04-211-12/+36
|
* Added 'has_option()', 'get_attr_name()' methods.Greg Ward2000-04-211-1/+14
|
* Patch, originally from Bastian Kleineidam and savagely mutilated by me,Greg Ward2000-04-211-50/+193
| | | | | | | | | | | | | | | | | to add the "display metadata" options: --name, --version, --author, and so forth. Main changes: * added 'display_options' class attribute to list all the "display only" options (--help-commands plus the metadata options) * added DistributionMetadata class as a place to put the actual metadata information from the setup script (not to be confused with the metadata display options); the logic dealing with metadata (eg. return self.name or "UNKNOWN") is now in this class * changed 'parse_command_line()' to use the new OO interface provided by fancy_getopt, mainly so we can get at the original order of options on the command line, so we can print multiple lines of distribution meta-data in the order specified by the user * added 'handle_display_options()' to handle display-only options Also fixed some crufty old comments/docstrings.
* Made 'generate_help()' and 'print_help()' methods of FancyGetopt.Greg Ward2000-04-211-99/+102
| | | | | | Added 'set_option_table()' method. Added missing 'self' to 'get_option_order()'. Cosmetic/comment/docstring tweaks.
* Continuing the refactoring: deleted the old 'fancy_getopt()' function,Greg Ward2000-04-211-121/+0
| | | | | leaving in its place a tiny wrapper around the FancyGetopt class for backwards compatibility.
* Hefty refactoring: converted 'fancy_getopt()' function into FancyGetoptGreg Ward2000-04-211-15/+266
| | | | | | | | class. (Mainly this was to support the ability to go back after the getopt operation is done and get extra information about the parse, in particular the original order of options seen on the command line. But it's a big improvement and should make it a lot easier to add functionality in the future.)
* Bumped version to 0.8.1.Greg Ward2000-04-191-1/+1
|
* Added kludge to deal with the "./ld_so_aix" problem: force all stringsGreg Ward2000-04-191-0/+15
| | | | | in the Makefile that start with "./" to be absolute paths (with the implied root being the directory where the Makefile itself was found).
* Don't load the config.h file, even under Unix, because we never use theGreg Ward2000-04-191-2/+0
| | | | | information from config.h. Code is still there in case someone in the future needs to parse an autoconf-generated config.h file.
* Added 'link_executable()' method (Berthold Hoellmann).Greg Ward2000-04-191-3/+48
| | | | Two small fixes to 'link_shared_object()'.
* Reformatted all exception documentation as docstrings.Greg Ward2000-04-151-27/+28
|
* Cleaned up/simplified error-handling:Greg Ward2000-04-157-79/+52
| | | | | | | | | | | | | - 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
* Fix PR#7 comparisons of recursive objectsJeremy Hylton2000-04-141-0/+9
| | | | | Note that comparisons of deeply nested objects can still dump core in extreme cases.
* Anthony Baxter <anthony@interlink.com.au>:Fred Drake2000-04-141-4/+4
| | | | | | | | The following adds support for RTSP (RFC2326) URLs to the standard urlparse.py module. (Augmented by FLD to include rtspu:, specified in the same RFC & OK'd by Anthony.)
* Don't run "ranlib" if sysconfig's RANLIB (from Python's Makefile) startsGreg Ward2000-04-141-5/+7
| | | | with ":".
* Use 'get_python_inc()' to figure out the Python include directoriesGreg Ward2000-04-141-8/+5
| | | | rather than cobbling them togethere here.
* Coerce all paths in the manifest template to the local path syntax withGreg Ward2000-04-141-7/+7
| | | | 'native_path()'.