summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command
Commit message (Collapse)AuthorAgeFilesLines
* A-ha! Read Thomas' patch a little more carefully and figured it out:Greg Ward2000-06-271-1/+2
| | | | the 'implib_dir' attribute is back (only on NT, of course).
* Thomas Heller: added --swig-cpp option and fixed silly typos in SWIG support.Greg Ward2000-06-271-9/+21
| | | | | | Also supposedly made some change to where .lib files wind up under MSVC++, but I don't understand how to code is doing what Thomas says it's doing.
* Thomas Heller's "bdist_wininst" command (unreviewed, untested).Greg Ward2000-06-271-0/+448
|
* Infrastructure support for the "bdist_wininst" command.Greg Ward2000-06-272-0/+3
|
* Added 'include_dirs' parameters all over the place.Greg Ward2000-06-271-19/+39
| | | | | Added 'check_lib()', which provides a subset of the functionality of 'check_func()' with a simpler interface and implementation.
* Removed some debugging code that slipped into the last checkin.Greg Ward2000-06-251-4/+3
| | | | Ensure that 'extra_args' (whether compile or link args) is never None.
* Fixed the "pre-link hook" so it actually works, mainly by renaming itGreg Ward2000-06-251-41/+33
| | | | | | to 'msvc_prelink_hack()', adding the parameters that it actually needs, and only calling it for MSVC compiler objects. Generally gave up on the idea of a general "hook" mechanism: deleted the empty 'precompile_hook()'.
* Call 'customize_compiler()' after getting CCompiler object.Greg Ward2000-06-251-0/+2
|
* Fixed a few silly bugs in my SWIG support code. (Hey, I said it wasGreg Ward2000-06-251-3/+5
| | | | | experimental and untested.) Call 'customize_compiler()' after getting CCompiler object.
* Print a warning if we install a data file right in install_dir.Greg Ward2000-06-241-3/+7
| | | | Tweaked help text.
* Changed the default installation directory for data files (used byGreg Ward2000-06-241-4/+4
| | | | | | the "install_data" command to the installation base, which is usually just sys.prefix. (Any setup scripts out there that specify data files will have to set the installation directory, relative to the base, explicitly.)
* Changed so all the help-generating functions are defined, at module-level,Greg Ward2000-06-245-41/+56
| | | | | | | in the module of the command classes that have command-specific help options. This lets us keep the principle of lazily importing the ccompiler module, and also gets away from defining non-methods at class level.
* Stylistic/formatting changes to Rene Liebscher's '--help-xxx' patch.Greg Ward2000-06-244-18/+21
|
* Experimental, completely untested SWIG support.Greg Ward2000-06-241-5/+74
|
* Fix inspired by Rene Liebscher: if setup script is newer than theGreg Ward2000-06-211-3/+26
| | | | manifest, regenerate the manifest.
* Delete spurious comment.Greg Ward2000-06-211-1/+0
|
* Build the 'outfiles' list so 'get_outputs()' has something to return.Greg Ward2000-06-212-5/+15
| | | | (Bug spotted and originally fixed by Rene Liebscher; fix redone by me.)
* Rene Liebscher: when fixing up directories with an alternate root, includeGreg Ward2000-06-211-1/+2
| | | | 'install_headers'.
* Fleshed out and added a bunch of useful stuff, notably 'check_func()',Greg Ward2000-06-211-32/+176
| | | | | | 'try_cpp()', 'search_cpp()', and 'check_header()'. This is enough that the base config is actually useful for implementing a real config command, specifically one for mxDateTime.
* Pulled the MSVC++-specific hackery out to a new method, 'prelink_hook()',Greg Ward2000-06-171-36/+63
| | | | | | and added (empty) 'precompile_hook()' for symmetry. One can envision a much more elaborate hook mechanism, but this looks like it'll do for now.
* Fixed install directory for header files on Unix.Greg Ward2000-06-171-1/+1
|
* Harry Henry Gebel: fix '_format_changelog()' so it doesn't bomb ifGreg Ward2000-06-081-0/+2
| | | | passed None.
* Include setup.cfg in the list of default files to distribute.Greg Ward2000-06-081-1/+5
|
* Moved the code that prunes the file list after reading the manifestGreg Ward2000-06-081-9/+14
| | | | | | | | | | template into a new method 'prune_file_list()', called from 'get_file_list()' rather than 'read_manifest()' -- this keeps 'read_manifest()' more general. Deleted the redundant call to 'exclude_pattern()' in 'make_distribution()' -- this had the same intention as 'prune_file_list()', but was incomplete (only pruned the release tree, not the build tree) and in the wrong place (the prune wouldn't be reflected in the manifest file).
* Renamed 'find_defaults()' to 'add_defaults()'.Greg Ward2000-06-081-13/+5
| | | | Deleted old, commented-out 'exclude_pattern()' method.
* Docstring addition binge.Greg Ward2000-06-081-15/+44
|
* Docstring reformatting binge.Greg Ward2000-06-081-28/+23
|
* Cosmetic tweaks to imports, the 'show_formats()' function, and theGreg Ward2000-06-081-11/+19
| | | | 'help_options' list; also added an editorial comment.
* Made all debug output go through the 'debug_print()' method instead ofGreg Ward2000-06-081-75/+90
| | | | | | | | | | | | | | | | directly printing to stdout. This was a bit more work than it sounds like it should have been: * turned 'select_pattern()' and 'exclude_pattern()' from functions into methods, so they can refer to 'self' to access the method * commented out the *other* 'exclude_pattern()' method, which appears to be vestigial code that was never cleaned up when the 'exclude_pattern()' function was created * changed the one use of the old 'exclude_pattern()' method to use the new 'exclude_pattern()' (same behaviour, slightly different args) * some code and docstring reformatting * and, of course, changed all the debugging prints to 'debug_print()' calls Added/tweaked some regular ('self.announce()') output for better runtime feedback.
* Patch from Rene Liebscher: this adds "--help-foo" options to list theGreg Ward2000-06-075-14/+58
| | | | | | | | | | values that "--foo" can take for various commands: eg. what formats for "sdist" and "bdist", what compilers for "build_ext" and "build_clib". I have *not* reviewed this patch; I'm checking it in as-is because it also fixes a paper-bag-over-head bug in bdist.py, and because I won't have time to review it properly for several days: so someone else can test it for me, instead!
* First crack at the Distutils "config" command. Unlike other commands, thisGreg Ward2000-06-061-0/+180
| | | | | | | | | | | | | | one doesn't *do* anything by default; it's just there as a conduit for data (eg. include dirs, libraries) from the user to the "build" commands. However, it provides a couple of Autoconf-ish methods ('try_compile()', 'try_link()', 'try_run()') that derived, per-distribution "config" commands can use to poke around the target system and see what's available. Initial experimenst with mxDateTime indicate that higher-level methods are necessary: analogs of Autoconf's AC_CHECK_HEADER, AC_CHECK_LIB will be needed too (and that's just to probe the C/C++ system: how to probe the Python system is wide open, and someday we'll have to worry about probing a Java system too).
* Support for multiple distribution formats in one run.Greg Ward2000-06-061-17/+18
|
* 'get_outputs()' now returns an empty list instead of None.Greg Ward2000-06-061-1/+1
|
* Fixed syntax error.Greg Ward2000-06-041-9/+14
| | | | | | Half-fixed RPM 2 compatibility:added 'rpm_base' option, which must be set (to eg. /usr/src/redhat on a stock Red Hat system) if rpm2_mode is on. Still not quite working, though.
* Use 'ensure_string_list()' for 'formats' option, so that it can beGreg Ward2000-06-041-2/+1
| | | | spelled sensibly in a config file.
* Patch from Harry Henry Gebel:Greg Ward2000-06-041-59/+103
| | | | | | | | | | | | | | | | | Fills in question marks in help Reads scripts in from files rather than strings Adds RPM 2 compatibility mode (untested). Use of this mode requires that --bdist-base be specified because bdist_rpm has no way of detecting where RPM wants to find spec files and source files. An unmodified RedHat 5.0 system would require '--bdist-base=/usr/src/RedHat'. (You would also have to be root.) If the rpmrc file has been modified to allow RPMs to be built by normal users then --build-base would need to be changed accordingly. Formats the changelog. GPW: tweaked formatting, added some editorial comments.
* Removed the 'ensure_*' methods -- they're just too handy too keep in oneGreg Ward2000-06-041-43/+1
| | | | command class, so they're now in the Command base class.
* Renamed 'modules' option to 'py_modules', for consistency with DistributionGreg Ward2000-06-041-13/+13
| | | | (and in order to generate a more sensible error message cleanly).
* Patch from Harry Henry Gebel: fixes a bit of code that slipped by myGreg Ward2000-06-031-2/+1
| | | | overhaul last night.
* Only print debugging output if DEBUG true.Greg Ward2000-06-021-6/+7
|
* Ditched the obsolete '_get_package_data()' method and itsGreg Ward2000-06-021-142/+3
| | | | '_check_*()' helpers.
* Fairly massive overhaul to support getting RPM inputs (extra meta-data,Greg Ward2000-06-021-32/+230
| | | | | | | | | | | | | | | | | | | | | | | | | prep/build/etc. scripts, doc files, dependency info) from a config file rather than the dedicated "package_info" file. (The idea is that developers will provide RPM-specific info in the "[bdist_rpm]" section of setup.cfg, but of course it could also be supplied in the other config files, on the command line, or in the setup script -- or any mix of the above.) Major changes: * added a boatload of options to 'user_options' and 'initialize_options()': 'distribution_name', 'group', 'release', ... * added 'finalize_package_data()', which takes the place of '_get_package_data()' -- except it's called from 'finalize_options()', not 'run()', so we have everything figured out before we actually run the command * added 'ensure_string()', 'ensure_string_list()', 'ensure_filename()'; these take the place of '_check_string()' and friends. (These actually look like really useful type-checking methods that could come in handy all over the Distutils; should consider moving them up to Command and using them in other command classes' 'finalize_options()' method for error-checking). * various cleanup, commentary, and adaptation to the new way of storing RPM info in '_make_spec_file()'
* Remember the list of archive files created in 'make_distribution()'.Greg Ward2000-06-011-1/+13
| | | | Added 'get_archive_files()' so outsiders can get their hands on that list.
* More tweaking to make this command act like other Distutils commands:Greg Ward2000-06-011-26/+29
| | | | | | | | | | | | | * added "--bdist-base" option to parameterize where we build the RPM (comes from "bdist" by default: "build/bdist.<plat>") * simplified/cleaned up some code in 'run()' in the process of removing (most) hard-coded directory names * if "--spec-only", drop spec file in "dist" rather than "redhat" (directory name still hard-coded, though) * use 'reinitialize_command()' to fetch the "sdist" object to tweak before running "sdist" command * use 'self.copy_file()' method rather than 'copy_file()' function * cosmetic tweaks to comments, error messages
* Regularize options a bit:Greg Ward2000-05-311-12/+19
| | | | | | | * help strings start with lowercase * added affirmative version of '--no-clean' and '--no-rpm-opt-flags', which are the default (thus the attributes that correspond to the options are now 'clean' and 'use_rpm_opt_flags')
* Renamed 'native_path()' to 'convert_path()'.Greg Ward2000-05-312-7/+7
| | | | | Also changed it so it doesn't barf if the path is already in native format (ie. contains os.sep).
* Overhauled to expect 'self.extensions' (taken from 'ext_modules' in theGreg Ward2000-05-311-66/+128
| | | | | | | | | | | | | | setup script) to be a list of Extension instances, rather than a list of of (ext_name, build_info) tuples. This is mostly a simplification, but 'check_extension_list()' got a lot more complicated because of the need to convert the old-style tuples to Extension instances. Temporarily dropped support for defining/undefining macros in the 'extensions' list -- I want to change the interface, but haven't yet made the required changes in CCompiler and friends to support this nicely. Also neatened up the code that merges 'extra_compile_flags' and the CFLAGS environment variable.
* Cosmetic tweak.Greg Ward2000-05-301-1/+2
|
* 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
|