summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Added DistutilsInternalError.Greg Ward2000-03-311-0/+6
|
* The 'bdist_dumb' command, the first worker bee for use by 'bdist'. This isGreg Ward2000-03-311-0/+131
| | | | | | the command that actually creates "dumb" binary distributions, ie. tarballs and zip files that you just unpack under <prefix> or <exec-prefix>. Very limited, but it's a start.
* The 'bdist' command, for creating "built" (binary) distributions.Greg Ward2000-03-311-0/+70
| | | | | | | Initial revision is pretty limited; it only knows how to generate "dumb" binary distributions, i.e. a tarball on Unix and a zip file on Windows. Also, due to limitations in the installation code, it only knows how to distribute Python library code. But hey, it's a start.
* Added 'get_inputs()'.Greg Ward2000-03-311-0/+20
|
* Fixed 'get_outputs()' so it actually works.Greg Ward2000-03-311-4/+16
| | | | | Added 'get_inputs()' (which is strikingly similar to 'get_outputs()' - sigh). Cosmetic tweaks.
* Changed to use the new 'has_pure_modules()' and 'has_ext_modules()' methodsGreg Ward2000-03-311-52/+19
| | | | | | | | | | | | | | | provided by Distribution. Cosmetic and error message tweaks. Simplified 'make_release_tree()': * extracted 'distutils.util.create_tree()' * don't have to do hard-linking ourselves -- it's now handled by 'distutils.util.copy_file()' (although the detection of whether hard linking is available still needs to be factored out) Removed 'make_tarball()' and 'make_zipfile()' entirely -- their role is now amply filled by 'distutils.util.make_archive()'. Simplified 'make_distribution()': * use Distribution's new 'get_full_name()' method * use 'make_archive()' instead of if/elif/.../else on the archive format
* Mark Hammond: Ooops - even though Win32 handles the same args, thereGuido van Rossum2000-03-311-4/+1
| | | | was a superfluous check for the platform.
* Improved test, by Mark Hammond, for Win32.Guido van Rossum2000-03-311-11/+10
|
* robustify UserList constructor -- will now accept any sequenceJeremy Hylton2000-03-312-5/+19
| | | | add test cases for non-UserList class, tuple, & string
* Two fixes for extended call syntax:Jeremy Hylton2000-03-302-0/+48
| | | | | | | If a non-tuple sequence is passed as the *arg, convert it to a tuple before checking its length. If named keyword arguments are used in combination with **kwargs, make a copy of kwargs before inserting the new keys.
* Show Tcl/Tk version number in _test() and show Unicode test if possible.Guido van Rossum2000-03-301-1/+4
|
* Output for simple test case for mmap on Unix; someone needs to write aAndrew M. Kuchling2000-03-301-0/+0
| | | | Win32 test case.
* Added simple test case for mmap on Unix; someone needs to write aAndrew M. Kuchling2000-03-301-0/+69
| | | | Win32 test case
* Oops: 'build_extensions()' no longer takes an 'extensions' list.Greg Ward2000-03-301-1/+1
|
* Michael Hudson: With the (cool!) new call syntax, the longest opcodeGuido van Rossum2000-03-301-1/+1
| | | | | name is much longer, which fouls up dis's formatting slightly; this is a "fix" for that.
* Lawrence Kesteloot noted: Lib/user.py has a comment that says that theGuido van Rossum2000-03-301-1/+1
| | | | | script pointed to by PYTHONPATH will be executed on startup. That should say PYTHONSTARTUP.
* Put the Python "system" include dir last, rather than first.Greg Ward2000-03-291-1/+3
|
* Call 'find_exe()', not '_find_exe()'.Greg Ward2000-03-291-3/+3
|
* Patch inspired by Bastian Kleineidam <calvin@cs.uni-sb.de>:Greg Ward2000-03-291-12/+7
| | | | | use global __debug__ flag to determine if compiled files will be ".pyc" or ".pyo". Tweaked compilation output messages too.
* Changed 'copy_tree()' so it returns the list of all files that were copied orGreg Ward2000-03-291-11/+12
| | | | might have been copied, regardless of the 'update' flag.
* Documented Bastian's patch.Greg Ward2000-03-291-7/+9
| | | | Made handling OSError in 'mkpath()' more standard.
* Patch from Bastian Kleineidam <calvin@cs.uni-sb.de>:Greg Ward2000-03-291-3/+5
| | | | make 'mkdir()' return list of directories created.
* Added 'make_tarball()' and 'make_zipfile()' functions in preparationGreg Ward2000-03-291-2/+90
| | | | | for the 'bdist_dumb' command. Adapted, with tweakage, from the 'sdist' command.
* Moved the guts of 'make_tarball()' and 'make_zipfile()' to distutils.utilGreg Ward2000-03-291-53/+4
| | | | | in preparation for the 'bdist_dumb' command; these methods remain as trivial wrappers around the versions in distutils.util.
* Added the "distribution query" methods: 'has_pure_modules()',Greg Ward2000-03-291-2/+22
| | | | 'has_ext_modules()', 'has_c_libraries()', 'has_modules()', and 'is_pure()'.
* Added 'build_clib'; replaced 'install_py' and 'install_ext' with 'install_lib'.Greg Ward2000-03-291-2/+2
|
* Be sure to run both 'build_py' and 'build_ext', now that this commandGreg Ward2000-03-291-5/+47
| | | | | | is responsible for installing all Python modules (pure and extensions). Added 'get_outputs()' in preparation for the 'bdist' command, and '_mutate_outputs()' to support 'get_outputs()'.
* Changed so the sub-commands we rely on to do the real work is specifiedGreg Ward2000-03-291-4/+24
| | | | | | | in a class attribute 'sub_commands', rather than hard-coded in 'run()'. This should make it easier to subclass 'install', and also makes it easier to keep 'run()' and the new 'get_outputs()' consistent. Added 'get_outputs()' in preparation for the 'bdist' command.
* Use the new 'has_pure_modules()', 'has_ext_modules()', 'has_c_libraries()'Greg Ward2000-03-291-3/+3
| | | | methods of Distribution instead of grovelling directly in self.distribution.
* Added 'get_outputs()' in prepartion for the 'bdist' command.Greg Ward2000-03-291-8/+29
| | | | | | | Changed signature of 'build_extensions()': no longer takes the extension list, but uses 'self.extensions' (just like 'get_outputs()' has to) Moved call to 'check_extensions_list()' from 'run()' to 'build_extensions()', again for consistency with 'get_outputs()'.
* Deleted some crufty comments and code.Greg Ward2000-03-291-36/+49
| | | | | | | | | | | | | A host of improvements in preparation for the 'bdist' command: - added 'get_outputs()' method (all the other improvements were to support this addition) - made 'find_package_modules()' and 'find_modules()' return similar values (list of (package, module, module_filename) tuples) - factored 'find_all_modules()' out of 'get_source_files()' (needed by 'get_outputs()') - factored 'get_module_outfile()' out of 'build_module()' (also needed by 'get_outputs()') - various little tweaks, improvements, comment/doc updates
* fix previous checkinJeremy Hylton2000-03-283-24/+8
|
* add test cases for Greg Ewing's extended call syntax patchJeremy Hylton2000-03-284-2/+174
|
* slightly modified version of Greg Ewing's extended call syntax patchJeremy Hylton2000-03-281-4/+8
| | | | | | | | | | | | | | | | | | | | | | | executive summary: Instead of typing 'apply(f, args, kwargs)' you can type 'f(*arg, **kwargs)'. Some file-by-file details follow. Grammar/Grammar: simplify varargslist, replacing '*' '*' with '**' add * & ** options to arglist Include/opcode.h & Lib/dis.py: define three new opcodes CALL_FUNCTION_VAR CALL_FUNCTION_KW CALL_FUNCTION_VAR_KW Python/ceval.c: extend TypeError "keyword parameter redefined" message to include the name of the offending keyword reindent CALL_FUNCTION using four spaces add handling of sequences and dictionaries using extend calls fix function import_from to use PyErr_Format
* Fredrik Lundh:Guido van Rossum2000-03-287-9/+9
| | | | | This fixes a bunch of socket.connect(host, post) calls. Note that I haven't tested all modules -- I don't have enough servers here...
* Fredrik Lundh:Guido van Rossum2000-03-281-10/+21
| | | | | | | | | | The new filecmp module has an optional argument called use_statcache which is documented as a true/false value, but used as an tuple index. This patches replaces the tuple stuff with a good old if- statement, and also removes a few other tuple pack/unpack constructs (if not else, this saves a few bytes in the PYC file, and a few microseconds when using the module ;-).
* Mark Hammond: test suite for new winreg module.Guido van Rossum2000-03-282-0/+151
|
* Marc-Andre Lemburg:Guido van Rossum2000-03-285-47/+54
| | | | | | | | | | | | | | | The attached patch set includes a workaround to get Python with Unicode compile on BSDI 4.x (courtesy Thomas Wouters; the cause is a bug in the BSDI wchar.h header file) and Python interfaces for the MBCS codec donated by Mark Hammond. Also included are some minor corrections w/r to the docs of the new "es" and "es#" parser markers (use PyMem_Free() instead of free(); thanks to Mark Hammond for finding these). The unicodedata tests are now in a separate file (test_unicodedata.py) to avoid problems if the module cannot be found.
* Piers Lauder:Guido van Rossum2000-03-281-26/+49
| | | | | | | | | This patch fixes the "search" command in imaplib. The problem was that a search can take multiple arguments, but as defined, would only accept one. I have also made changes to the test code at the end to be less verbose by default, but to accept a verbosity argument.
* MBCS codecs for Windows. Contributed by Mark Hammond.Guido van Rossum2000-03-281-0/+37
|
* Skip Montanaro:Guido van Rossum2000-03-271-17/+17
| | | | | | | | | | | | The robotparser.py module currently lives in Tools/webchecker. In preparation for its migration to Lib, I made the following changes: * renamed the test() function _test * corrected the URLs in _test() so they refer to actual documents * added an "if __name__ == '__main__'" catcher to invoke _test() when run as a main program * added doc strings for the two main methods, parse and can_fetch * replaced usage of regsub and regex with corresponding re code
* Beefed up error-handling in 'setup()' a smidge:Greg Ward2000-03-261-1/+3
| | | | handle OSError and DistutilsExecError now.
* Duh, it helps if '_nt_quote_args()' actually returns the mutated list,Greg Ward2000-03-261-1/+1
| | | | rather than None.
* Fixed a bunch of screwed-up logic and inconsistent terminology.Greg Ward2000-03-261-19/+33
| | | | | Fixed 'build_extensions()' to pay attention to the 'rpath' element of the 'build_info' dictionary.
* Added 'runtime_library_dirs' parameter to 'link_*()' methods, and warn thatGreg Ward2000-03-261-6/+11
| | | | | | we don't know what to do with it when we see it. Call '_fix_object_args()' and/or '_fix_lib_args()' as appropriate, rather than just '_fix_link_args()'.
* Added 'runtime_library_dirs' parameter to 'link_*()' methods, and changed toGreg Ward2000-03-261-9/+13
| | | | | | use it when linking. Call '_fix_object_args()' and/or '_fix_lib_args()' as appropriate, rather than just '_fix_link_args()'.
* Added 'runtime_library_dirs' parameter to 'link_*()' methods.Greg Ward2000-03-261-28/+43
| | | | | | Split '_fix_link_args()' up into '_fix_object_args()' (for use of 'create_static_lib() and link methods) and '_fix_lib_args()' (for the link methods only).
* Marc-Andre Lemburg:Guido van Rossum2000-03-243-2/+31
| | | | | | | | | | Attached you find the latest update of the Unicode implementation. The patch is against the current CVS version. It includes the fix I posted yesterday for the core dump problem in codecs.c (was introduced by my previous patch set -- sorry), adds more tests for the codecs and two new parser markers "es" and "es#".
* Fix the test so that connect() and bind() are called with a singleGuido van Rossum2000-03-241-2/+2
| | | | | | argument: a (host, port) tuple. Like multi-arg append(), multi-arg connect() and bind() may be ruled out!
* Regenerated with test for 'contains'.Guido van Rossum2000-03-241-0/+1
|