summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command
Commit message (Collapse)AuthorAgeFilesLines
...
* Changed order so 'clean' is right after the 'build' commands.Greg Ward2000-05-281-1/+1
|
* Only print debugging output if DEBUG (imported from distutils.core) is true.Greg Ward2000-05-281-14/+15
|
* Moved warnings out of 'finalize_options()' into 'run()'.Greg Ward2000-05-281-7/+13
| | | | Added a warning for 'bdist_base' directory.
* Some far-reaching naming changes:Greg Ward2000-05-279-58/+47
| | | | | | | * Command method 'find_peer()' -> 'get_finalized_command()' * Command method 'run_peer()' -> 'run_command()' Also deleted the 'get_command_option()' method from Command, and fixed the one place where it was used (in "bdist_dumb").
* Patch from Andrew Kuchling: prune out the build and source distributionGreg Ward2000-05-271-0/+7
| | | | | | | | | | directories after all is said and done, so we don't accidentally include those files in the source distribution. (This is the quick and easy way to fix this; Andrew says: "Changing findall() looked like it was going to be messy, so I tried this instead. The only problem is that redundant directory traversals are being done, walking through build/ only to throw out all the files found at the end.").
* Tweaked description, help text.Greg Ward2000-05-271-3/+3
|
* Support for the "install_headers" command:Greg Ward2000-05-271-5/+22
| | | | | | | | | | | | | * 'headers' entry added to all the install schemes * '--install-headers' option added * 'install_headers' added to 'sub_commands' * added 'dist_name' to configuration variables (along with a few others that seem handy: 'dist_version', 'dist_fullname', and 'py_version' * in 'finalize_unix()', make sure 'install_headers' defined if user specified 'install_base' and/or 'install_platbase' * added 'has_headers()' * a few other small changes
* Added 'install_headers' command to install C/C++ header files.Greg Ward2000-05-272-0/+41
|
* Rene Liebscher: check if the extension file (.so or .pyd) isGreg Ward2000-05-261-19/+24
| | | | | up-to-date with respect to the source files; that way, we don't needlessly rebuild just because object files go away.
* Fixed a couple of long-hidden bugs (amazing what you find when youGreg Ward2000-05-261-6/+33
| | | | | | | | | | | attempt to verify the bold assertions in the documentation): * entries for the "root package" in 'package_dir' didn't work -- fixed by improving the fall-through code in 'get_package_dir()' * __init__.py files weren't installed when modules-in-packages were listed individually (ie. in 'py_modules' in the setup script); fixed by making 'check_package()' return the name of the __init__ file if it exists, and making 'find_modules()' add an entry to the module list for __init__ if applicable
* Take the basename of the script before concatenating it with the build dir.Greg Ward2000-05-251-1/+1
|
* Fix to use 'change_root()' rather than directly mangling path.Greg Ward2000-05-251-1/+2
|
* Improvements to Bastian's build_scripts command:Greg Ward2000-05-251-31/+58
| | | | | | | | | * 'first_line_re' loosened up * command description improved * replaced '_copy_files()' and '_adjust_files()' with one method that does everything, 'copy_scripts()' -- this should be more efficient than Bastian's version, should behave better in dry-run mode, and does timestamp dependency-checking
* Use Distribution's 'has_scripts()' method instead of directly accessingGreg Ward2000-05-251-1/+1
| | | | its 'scripts' attribute.
* Bastian Kleineidam: the "build_scripts" command.Greg Ward2000-05-251-0/+71
|
* Bastian Kleineidam: the "build_scripts" command and changesGreg Ward2000-05-254-11/+74
| | | | | | | | | | | | | | | | | | | | | | | necessary to support it. Details: - build command additionally calls build_scripts - build_scripts builds your scripts in 'build/scripts' and adjusts the first line if it begins with "#!" and ends with "python", optionally ending with commandline options (like -O, -t ...). Adjusting means we write the current path to the Python interpreter in the first line. - install_scripts copies the scripts to the install_scripts dir - install_data copies your data_files in install_data. You can supply individual directories for your data_files: data_files = ['doc/info.txt', # copy this file in install_scripts dir ('testdata', ['a.dat', 'b.dat']), # copy these files in # install_scripts/testdata ('/etc', ['packagerc']), # copy this in /etc. When --root is # given, copy this in rootdir/etc ] So you can use the --root option with absolute data paths.
* Normalized all the end-of-class lines.Greg Ward2000-05-258-6/+10
|
* Fixed command description.Greg Ward2000-05-231-1/+1
|
* Use 'get_command_obj()' instead of 'find_command_obj()'.Greg Ward2000-05-231-1/+1
|
* Changed the semantics of the 'sub_commands' list: instead of functionGreg Ward2000-05-201-21/+44
| | | | | | | | | objects, it now has method names. Added three methods, 'has_lib()', 'has_scripts()', and 'has_data()' to determine if we need to run each of the three possible sub-commands. Added 'get_sub_commands()' to take care of finding the methods named in 'sub_commands', running them, and interpreting the results to build a list of sub-commands that actually have to be run.
* Check if the claimed build directory doesn't exist, and warn that we don'tGreg Ward2000-05-201-1/+6
| | | | | have any Python modules to install (rather than bomb when we try to copy a non-existent directory).
* Changed default developer name.Gregory P. Smith2000-05-131-1/+6
| | | | Added some guiding comments.
* Template for writing Distutils command modules.Gregory P. Smith2000-05-131-0/+39
|
* Contribution from Harry Henry Gebel: the 'bdist_rpm' command.Gregory P. Smith2000-05-131-0/+390
| | | | | (Completely uninspected and untested by me, this is just to get the code into CVS!)
* List data files are listed in the Distribution attribute 'data_files',Gregory P. Smith2000-05-131-2/+2
| | | | rather than 'data'.
* Added the 'bdist_base' option, the base temp directory for all bdist commands.Gregory P. Smith2000-05-131-2/+13
|
* Added 'get_inputs()' methods, needed by the "install" command'sGregory P. Smith2000-05-132-0/+6
| | | | 'get_inputs()'.
* Drastically simplified by taking advantage of the "install" command'sGregory P. Smith2000-05-131-74/+21
| | | | | | | | | | new flexibility, specifically the 'root' option. Now, we just use "install" to do a fake installation into a temporary directory (the 'bdist_dir' option, which derives from the 'bdist_base' option of "bdist"), and then tar/zip up that directory. This means that dumb built distributions are now relative to the root directory, rather than the prefix or exec-prefix; this is probably a feature, but does make them slightly less flexible.
* Rename 'build_bdist' to 'bdist_base', and get it by default from theGregory P. Smith2000-05-131-6/+7
| | | | "bdist" command rather than "build".
* Typo fix.Gregory P. Smith2000-05-131-1/+1
|
* Made the '--record' option take an argument, which is the name of theGregory P. Smith2000-05-131-4/+5
| | | | file to write the list of installed files to.
* Ditch the explicit search for *.py[co] files -- they're now included inGregory P. Smith2000-05-131-6/+1
| | | | | the list returned by 'get_outputs()', thanks to changes in the "install_lib" command.
* Added '_bytecode_filenames()' method, and use it in 'get_outputs()'Gregory P. Smith2000-05-131-4/+13
| | | | | to ensure that compiled bytecode files are considered part of the output of the "install_lib" command.
* Moved check for installation to non-sys.path location so it comesGregory P. Smith2000-05-131-9/+9
| | | | | last (after writing list of installed files) -- that way, the warning is more visible.
* Harry Henry Gebel: add the "--record" option to write the list ofGregory P. Smith2000-05-131-1/+21
| | | | installed files to INSTALLED_FILES.
* Added the 'build_bdist' option and code to clean it up -- this is theGregory P. Smith2000-05-131-3/+14
| | | | | | top-level temporary directory for creating built distributions. (Won't work yet, since the "build" command doesn't yet have a 'build_bdist' option, and none of the "bdist" commands support it yet.)
* Harry Henry Gebel: get extra compiler flags from the CFLAGS environmentGregory P. Smith2000-05-131-0/+8
| | | | | | | variable. (Is this really needed? Can we drop it when the config file mechanism allows users to set compiler flags in setup.cfg?)
* Harry Henry Gebel: add support for the 'bdist_rpm' command, specificallyGregory P. Smith2000-05-131-2/+7
| | | | the 'no_format_option' class attribute.
* Harry Henry Gebel: add 'bdist_rpm' command.Gregory P. Smith2000-05-131-0/+1
|
* From Lyle Johnson: renamed 'implib_dir' to 'implib_file', andGregory P. Smith2000-05-131-7/+5
| | | | correctly ensure that it's 'dirname' exists.
* Added comment/docstring/revision header.Gregory P. Smith2000-05-122-0/+18
|
* Fixed 'select_scheme()' so it doesn't override a directory attribute that'sGregory P. Smith2000-05-121-1/+3
| | | | already been set (eg. by a command-line option).
* Added --skip-build option, so lazy debuggers/testers (mainly me) don'tGregory P. Smith2000-05-122-7/+23
| | | | have to wade through all the 'build' output when testing installation.
* Caught up with renaming in 'install_misc' base class.Gregory P. Smith2000-05-121-4/+1
|
* Deleted some cruft.Gregory P. Smith2000-05-121-5/+15
| | | | | Caught up with renaming in 'install_misc' base class. Changed 'run()' to chmod installed scripts under Unix.
* Patch from Bastien Kleineidam:Gregory P. Smith2000-05-124-1/+36
| | | | | | adds the 'install_data' and 'install_scripts' commands; these two are trivial thanks to the 'install_misc' base class in cmd.py. (Minor tweaks and commentary by me; the code is untested so far.)
* Fix from Lyle Johnson: add the '--compiler' option.Gregory P. Smith2000-05-121-2/+11
| | | | | | Also added creation of 'implib_dir', a temporary directory specific to MSVC++ -- but I checked in two ways of fixing it (Lyle's and mine), because I'm not sure which is right.
* Fix from Lyle Johnson: add the '--compiler' option.Gregory P. Smith2000-05-122-3/+12
|
* Added comment about the MSVC-specific kludge.Greg Ward2000-05-091-0/+10
|
* Don't use 'set_option()' or 'get_option()' method -- direct attribute access,Greg Ward2000-05-072-2/+2
| | | | or getattr/setattr, is all that's needed.