summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
Commit message (Collapse)AuthorAgeFilesLines
* Define 'self.force' in the constructor and remove the hack in '__getattr__()'Greg Ward2000-04-101-5/+6
| | | | to account for it not being defined in the constructor.
* Delete some debugging print statements.Greg Ward2000-04-102-4/+0
|
* Added a check for the 'force' attribute in '__getattr__()' -- better thanGreg Ward2000-04-101-6/+10
| | | | | | crashing when self.force not defined. Revise 'copy_file()' and 'copy_tree()' docstrings accordingly. Remove 'hasattr()' check for 'self.force' from 'make_file()'.
* Added optional 'prefix' arguments to 'get_python_inc()' andGreg Ward2000-04-101-4/+10
| | | | 'get_python_lib()'.
* Better variable names here and there.Greg Ward2000-04-101-18/+18
|
* Added '--force' option -- very clear what it means for building (ignoreGreg Ward2000-04-104-3/+21
| | | | | timestamps), so every build_* command has 'self.force', which follows the 'build' command if not set by the user.
* Removed global '--force' option -- just too vague a concept to be applicableGreg Ward2000-04-102-13/+14
| | | | | | to all commands in the same way. Several Command methods now either expect 'self.force' to be defined, or check if it is defined and assume it's false if not.
* Added __version__ to store the Distutils version number.Greg Ward2000-04-101-0/+2
|
* Ditched the unused 'list_only' option.Greg Ward2000-04-091-3/+4
| | | | | | Added code to include source files from 'build_clib' command to default file list -- currently this won't work, since 'build_clib' doesn't have a 'get_source_files()' method!
* Catch DistutilsFileError in addition to DistutilsExecError in 'setup()'.Greg Ward2000-04-091-1/+1
|
* Added (currently) pointless and trivial main body (for future tests).Greg Ward2000-04-091-0/+4
|
* This little note is to clarify things for people who go poking around theGreg Ward2000-04-091-0/+18
| | | | Python library hoping to find out more about the Distutils.
* Add missing import of 'usage' string.Greg Ward2000-04-061-2/+2
|
* Reorganization: ripped util.py to shreds, creating in the process:Greg Ward2000-04-045-664/+719
| | | | | | | | | - 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.
* Reorganization: moved the Distribution class from core.py to dist.py, andGreg Ward2000-04-043-933/+963
| | | | | | the Command class from core.py to cmd.py. No other code needs changing though; distutils.core still provides the Command and Distribution classes, although indirectly now.
* Fixed my simplification to Thomas' patch: winreg and win32api export the sameGreg Ward2000-03-311-8/+13
| | | | functions, but with different names.
* Simplified Thomas Heller's registry patch: just assign all thoseGreg Ward2000-03-311-32/+32
| | | | | | | | HKEY_* and Reg* names once, rather than having near-duplicate code in the two import attempts. Also dropped the leading underscore on all the imported symbols, as it's not appropriate (they're not local to this module).
* Patch from Thomas Heller: use the new winreg module if available.Greg Ward2000-03-311-24/+47
|
* Added code to blow away the pseudo-installation tree and a 'keep_tree'Greg Ward2000-03-311-1/+10
| | | | option to disable this (by default, it's false and we clean up).
* Oops, got a little too enthusiastic deleting code in that last revision:Greg Ward2000-03-311-0/+1
| | | | we still have to *run* the sub-command that creates a built distribution.
* Fixed 'make_archive()' to explicitly turn of compression when format is "tar".Greg Ward2000-03-311-0/+1
|
* Rename 'formats' option to 'format', and remove the ability to generateGreg Ward2000-03-311-20/+16
| | | | | multiple built distributions in one run -- it seemed a bit dodgy and I'd rather remove it than try to beat it into submission right now.
* Import from 'types' module.Greg Ward2000-03-311-0/+3
| | | | Added 'ztar', 'tar' to 'format_command' dictionary.
* Tweaked 'get_platform()' to include the first character of the OS release:Greg Ward2000-03-311-4/+2
| | | | eg. sunos5, linux2, irix5.
* Removed some old test code: don't set 'plat' when calling 'new_compiler()'.Greg Ward2000-03-311-2/+1
|
* Don't perpetrate the "_d" hack for naming debugging extensions -- that'sGreg Ward2000-03-311-4/+0
| | | | now done in the 'build_ext' command.
* Patch (mostly) from Thomas Heller for building on Windows:Greg Ward2000-03-311-11/+36
| | | | | | | | | * build to "Debug" or "Release" temp directory * put linker turds (.lib and .exp files) in the build temp directory * tack on "_d" to extensions built with debugging * added 'get_ext_libname()' help in putting linker turds to temp dir Also, moved the code that simplifies None to empty list for a bunch of options to 'finalize_options()' instead of 'run()'.
* Don't put Python's library directory into the library search path -- that'sGreg Ward2000-03-311-3/+0
| | | | specific to building Python extensions.
* Added 'bdist' and 'bdist_dumb'.Greg Ward2000-03-311-0/+2
|
* Added 'get_name()' and 'get_full_name()' methods to Distribution.Greg Ward2000-03-311-2/+16
| | | | | | | | Simplified 'Command.get_peer_option()' a tad -- just call 'find_peer()' to get the peer command object. Updated 'Command.copy_file()' to take a 'link' parameter, just like 'util.copy_file()' does now. Added 'Command.make_archive()' to wrap 'util.make_archive()'.
* Added 'create_tree()'.Greg Ward2000-03-311-25/+135
| | | | | | | | | | | 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".
* 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
* Oops: 'build_extensions()' no longer takes an 'extensions' list.Greg Ward2000-03-301-1/+1
|
* 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.