summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
Commit message (Collapse)AuthorAgeFilesLines
* Jack Jansen: added 'get_command_list()' method, and Mac-specific code toGreg Ward2000-11-111-0/+38
| | | | | use it to generate a dialog for users to specify the command-line (because providing a command-line with MacPython is so awkward).
* Bump version to 1.0.1.Greg Ward2000-10-151-1/+1
|
* Removed debugging code at bottom.Greg Ward2000-10-141-8/+0
|
* Untabified.Greg Ward2000-10-148-14/+14
|
* Bastian Kleineidam: make 'check_lib()' more like AC_CHECK_LIB by addingGreg Ward2000-10-141-3/+6
| | | | an 'other_libraries()' parameter.
* Lyle Johnson: use 'normcase()' in addition to 'normpath()' when testing ifGreg Ward2000-10-141-2/+4
| | | | we actually installed modules to a directory in sys.path.
* Bastian Kleineidam: fix up any supplied command-line options.Greg Ward2000-10-141-1/+16
|
* Recreated after installer source code changes.Thomas Heller2000-10-121-246/+246
| | | | | This should close SF bug (patch) http://sourceforge.net/patch/?func=detailpatch&patch_id=101844&group_id=5470
* Bump version to 1.0.Greg Ward2000-10-031-1/+1
|
* Remove some debugging prints.Greg Ward2000-10-031-2/+0
|
* Fixed so --no-compile is a negative alias for --compile.Greg Ward2000-10-031-0/+1
|
* Added a long-winded comment (and commented-out comment to go with out)Greg Ward2000-10-031-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!
* Typo fix.Greg Ward2000-10-021-1/+1
|
* Added the ability to do byte-compilation at build time, currently offGreg Ward2000-10-021-5/+51
| | | | | | | | | by default (since compiling at install time works just fine). Details: - added 'compile' and 'optimize' options - added 'byte_compile()' method - changed 'get_outputs()' so it includes bytecode files A lot of the code added is very similar to code in install_lib.py; would be nice to factor it out further.
* Added --compile, --optimize options so users have an easy way toGreg Ward2000-10-021-0/+12
| | | | instruct the "install_lib" command from the command-line.
* Finished the overhaul of byte-compilation options: there's now a 6-wayGreg Ward2000-10-021-15/+66
| | | | | | | | | | | | choice between (compile, no-compile) * (optimize=0, optimize=1, optimize=2). Details: - added --no-compile option to complement --compile, which has been there for ages - changed --optimize (which never worked) to a value option, which expects 0, 1, or 2 - renamed 'bytecompile()' method to 'byte_compile()', and beefed it up to handle both 'compile' and 'optimize' options - fix '_bytecode_filenames()' to respect the new options
* Remove the temporary byte-compilation script when we're done with it.Greg Ward2000-10-021-0/+1
|
* From 'run()', only call 'bytecompile()' if we actually haveGreg Ward2000-10-011-1/+1
| | | | pure Python modules to compile.
* Tweaked 'byte_compile()' so it silently skips non-Python files, rather thanGreg Ward2000-10-011-5/+7
| | | | blowing up.
* Reduced the 'bytecompile()' method to a one-line wrapper aroundGreg Ward2000-09-301-15/+4
| | | | | 'util.byte_compile()'. Currently just reproduces the existing functionality -- doesn't use any of the fancy features in the new 'byte_compile()'.
* Added 'byte_compile(): an all-singing, all-dancing wrapper around theGreg Ward2000-09-301-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 Ward2000-09-301-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 Ward2000-09-301-24/+23
|
* Standardized whitespace around function calls.Greg Ward2000-09-3014-339/+338
|
* Andrew Kuchling: changed so the '_path_created' dictionary is keyed onGreg Ward2000-09-301-5/+8
| | | | | absolute pathnames; this lets it keep working in the face of chdir'ing around.
* Fixed 'run()' so it doesn't call 'bytecompile()' if 'install()' returned None.Greg Ward2000-09-301-1/+2
|
* Expect a tuple (dest_name, copied) from 'copy_file()'.Greg Ward2000-09-302-3/+3
|
* Changed 'build_module()' so it returns the result of 'copy_file()'Greg Ward2000-09-301-1/+1
| | | | on the module file -- could be useful for subclasses overriding it.
* Changed 'copy_file()' so it returns a tuple (dest_name, copied) -- hopefully,Greg Ward2000-09-301-6/+7
| | | | this will please everyone (as if that's possible).
* In 'get_platform()', handle so-called POSIX systems that don't haveGreg Ward2000-09-301-1/+1
| | | | 'uname()' -- specifically NeXTSTEP.
* Changed to use the 'sub-commands' machinery:Greg Ward2000-09-301-21/+29
| | | | | | - added 'sub_commands' class attr - added 'has_*()' predicates referenced by the sub-command list - rewrote 'run()' so it's a trivial loop over relevant sub-commands
* Moved some things around for better organization.Greg Ward2000-09-301-26/+36
|
* Removed the extra_dirs and path_file metadata options.Thomas Heller2000-09-291-270/+260
| | | | | | | | | | | | | They are unneeded: All this stuff is already done by the install command which is run by bdist_wininst. One bug has been fixed: The root of the fake install tree is install.install_purelib, not install.install_lib! They are different if the extra_path option is used in the setup function. Rebuild after the changes to wininst.exe.
* Removed the implib_dir instance variable because it is unused.Thomas Heller2000-09-281-13/+9
| | | | | | | | | | | Removed get_ext_libname() because it is unused. Fixed get_libraries() to append an '_d' to the python debug import library. If MSVC is used, do not add 'pythonxx.lib' to the list of libraries, because this is handled better by a pragma in config.h. This should fix bug #115595, but it needs some more testing.
* Bump version to 1.0pre.Greg Ward2000-09-271-1/+1
|
* Remove deprecation warnings on old 'link_*()' methods, ie. they're notGreg Ward2000-09-271-11/+5
| | | | | deprecated after all. But now they're only implemented once, instead of N times.
* Big patch from Rene Liebscher to simplify the CCompiler API andGreg Ward2000-09-275-430/+409
| | | | | | | | | | | | | | | | | | | | implementations. Details: * replace 'link_shared_object()', 'link_shared_lib()', and 'link_executable()' with 'link()', which is (roughly) the union of the three methods it replaces * in all implementation classes (UnixCCompiler, MSVCCompiler, etc.), ditch the old 'link_*()' methods and replace them with 'link()' * in the abstract base class (CCompiler), add the old 'link_*()' methods as wrappers around the new 'link()' (they also print a warning of the deprecated interface) Also increases consistency between MSVCCompiler and BCPPCompiler, hopefully to make it easier to factor out the mythical WindowsCCompiler class. Details: * use 'self.linker' instead of 'self.link' * add ability to compile resource files to BCPPCompiler * added (redundant?) 'object_filename()' method to BCPPCompiler * only generate a .def file if 'export_symbols' defined
* Bump version to 0.9.4.Greg Ward2000-09-271-1/+1
|
* Fix '_set_command_options()' so it only calls 'strtobool()' on stringsGreg Ward2000-09-271-2/+3
| | | | (was crashing on any boolean command-line option!).
* Bump version to 0.9.3.Greg Ward2000-09-261-1/+1
|
* Reformat docstrings.Greg Ward2000-09-262-64/+63
| | | | Standardize whitespace in function calls.
* Standardize whitespace in function calls.Greg Ward2000-09-264-147/+145
|
* Whitespace fix.Greg Ward2000-09-261-1/+2
|
* Reformat docstrings.Greg Ward2000-09-261-38/+41
| | | | Standardize whitespace in function calls.
* Standardize whitespace in function calls.Greg Ward2000-09-264-92/+92
|
* Standardize whitespace in function calls and docstrings.Greg Ward2000-09-261-62/+62
|
* Added 'translate_longopt()' function.Greg Ward2000-09-251-0/+7
|
* Change to use the new 'translate_longopt()' function from fancy_getopt, ratherGreg Ward2000-09-251-5/+5
| | | | than rolling our own with fancy_getopt's 'longopt_xlate' global.
* Added a bunch of missing "=" signs in the option table.Greg Ward2000-09-251-30/+14
| | | | | Removed script options -- don't think they ever worked, weren't very well thought through, etc.
* Renamed '--keep-tree' option to '--keep-temp', for consistencyGreg Ward2000-09-251-6/+6
| | | | with the bdist_* commands.