1. 03 Oct, 1999 8 commits
    • Greg Ward's avatar
      Don't import what we don't use. · e26fcb5c
      Greg Ward authored
      e26fcb5c
    • Greg Ward's avatar
      4e8704e6
    • Greg Ward's avatar
      Added 'force' and 'quiet' (negative alias for 'verbose') to the · f44a7804
      Greg Ward authored
        global options table.
      Every Command instance now has its own copies of the global options,
        which automatically fallback to the Distribution instance.  Changes:
        - initialize them in constructor
        - added '__getattr__()' to handle the fallback logic
        - changed every 'self.distribution.{verbose,dry_run}' in Command to
          'self.{verbose,dry_run}'.
        - filesystem utility methods ('copy_file()' et al) don't take 'update'
          parameter anymore -- instead we pass 'not force' to the underlying
          function as 'update'
      Changed parsing of command line so that global options apply to all
        commands as well -- that's how (eg.) Command.verbose will be initialized.
      Simplified 'make_file()' to use 'newer_group()' (from util module).
      Deleted some cruft.
      Some docstring tweaks.
      f44a7804
    • Greg Ward's avatar
      Fixed 'mkpath()' to normalize the path right off the bat -- cleans up · cbda2d01
      Greg Ward authored
        the code a bit and should make it work under Windows even with trailing
        backslash.
      Fixed a couple of docstrings.
      Added comment about 'make_file()' possibly being redundant and unnecessary.
      cbda2d01
    • Greg Ward's avatar
      Hacked to support the notion of "negative alias" options, to handle · a4d716aa
      Greg Ward authored
      -q/--quiet reasonably elegantly.
      a4d716aa
    • Greg Ward's avatar
      Catch up with changes in 'gen_lib_options()': · e01b0f32
      Greg Ward authored
        - change how we call it
        - added methods 'library_dir_option()', 'library_option()', and
          'find_library_file()' that it calls
      Added 'force' flag; it's automatically "respected", because this class
        always rebuilds everything!  (Which it to say, "force=0" is not respected.)
      e01b0f32
    • Greg Ward's avatar
      Fixed order of link options: object files now precede library stuff. · 294c7b41
      Greg Ward authored
      Catch up with changes in 'gen_lib_options()':
        - change how we call it
        - added methods 'library_dir_option()', 'library_option()', and
          'find_library_file()' that it calls
      Added 'force' flag and changed compile/link methods to respect it.
      294c7b41
    • Greg Ward's avatar
      Slight change to the meaning of the 'libraries' list: if a library name · e07c9104
      Greg Ward authored
        has a directory component, then we only search for the library in
        that one directory, ie. ignore the 'library_dirs' lists for that
        one library.
      Changed calling convention to 'gen_lib_options()' again: now, it takes
        a CCompiler instance and calls methods on it instead of taking
        format strings.  Also implemented the new "library name" semantics
        using the 'find_library_file()' method in the CCompiler instance.
      Added 'force' flag to CCompiler; added to constructor and 'new_compiler()'.
      Added 'warn()' method.
      e07c9104
  2. 01 Oct, 1999 2 commits
  3. 30 Sep, 1999 11 commits
  4. 29 Sep, 1999 12 commits
    • Guido van Rossum's avatar
      2e58caaf
    • Greg Ward's avatar
    • Greg Ward's avatar
      Added all documentation. · ca8786d8
      Greg Ward authored
      Slightly improved the code for dealing with newline on a comment line,
        and for stripping whitespace.
      ca8786d8
    • Greg Ward's avatar
    • Greg Ward's avatar
      Added 'package' option. · 4f13006e
      Greg Ward authored
      Catch up with renamed 'platdir' -> 'build_platlib' option in 'build'.
      Don't call 'set_final_options()' in 'run()' anymore -- that's now
        guaranteed to be taken care of for us by the Distribution instance.
      If 'include_dirs' is a string, split it on os.pathsep (this is half-
        hearted -- support for setting compile/link options on the command
        line is totally lame and probably won't work at all).
      Added 'get_source_files()' for use by 'dist' command.
      Added code to 'build_extensions()' to figure out the "def file" to use
        with MSVC++ and add it to the linker command line as an "extra_postarg".
      4f13006e
    • Greg Ward's avatar
      Renamed 'dir' option to be consistent with other commands. · d1aa5bbc
      Greg Ward authored
      Don't call 'set_final_options()' in 'run()' anymore -- that's now
        guaranteed to be taken care of for us by the Distribution instance.
      Rearranged to bit to allow outsiders (specifically, the 'dist' command)
        to find out what modules we would build:
        - 'find_modules()' renamed to 'find_package_modules()'
        - most of 'build_modules()' abstracted out to 'find_modules()'
        - added 'get_source_files()' (for the 'dist' command to use)
        - drastically simplified 'build_modules()' -- now just a wrapper around
          'find_modules()' and 'build_module()'
      d1aa5bbc
    • Greg Ward's avatar
      Renamed many options to be consistent across commands. · 2439a035
      Greg Ward authored
      Tweaked some help strings to be consistent with documentation.
      Don't call 'set_final_options()' in 'run()' anymore -- that's now
        guaranteed to be taken care of for us by the Distribution instance.
      2439a035
    • Greg Ward's avatar
      Catch up with latest changes in CCompiler: · 780bfe6a
      Greg Ward authored
        - add 'extra_preargs' and 'extra_postargs' parameters (and use them!)
        - got rid of 'build_info' kludge parameter
        - added 'compiler_type' class attribute
        - respect reordered arguments to 'gen_lib_options()'
      Also added 'output_dir' parameter (catching up with older change in
        CCompiler) -- BUT this is presently ignored by all methods!
      Deleted some more docstrings redundant with CCompiler.
      Dropped generated of "/DEF:" argument --- that's now done by
        the 'build_ext' command.
      780bfe6a
    • Greg Ward's avatar
      Catch up with latest changes in CCompiler: · 8ebf1b65
      Greg Ward authored
        - add 'extra_preargs' and 'extra_postargs' parameters (and use them!)
        - added 'compiler_type' class attribute
        - respect reordered arguments to 'gen_lib_options()'
      8ebf1b65
    • Greg Ward's avatar
      Added 'extra_preargs' and 'extra_postargs' parameters to most methods, · b1297923
      Greg Ward authored
        which allowed us to get rid of the 'build_info' used in some places
        (a temporary kludge to support MSVC++ "def" files).
      Deleted big comment whining about that kludge.
      Added 'compiler_type' class attribute.
      Overhauled 'new_compiler()': now takes 'compiler' argument along with
        'plat' (both optional with sensible defaults), and looks them both up
        in the new 'default_compiler' and 'compiler_class' dictionaries to
        figure out where to get the concrete compiler class from.
      Reordered arguments to 'gen_lib_options()' to match the order in
        which the arguments are generated (ie. -L before -l).
      b1297923
    • Greg Ward's avatar
      More tweaks to 'mkpath()': · 4d673d18
      Greg Ward authored
        - deal with empty tail from os.path.split() (eg. from trailing slash,
          or backslash, or whatever)
        - check PATH_CREATED hash inside loop as well
      4d673d18
    • Greg Ward's avatar
      Added 'ready' flag and 'ensure_ready()' method to Command: together · eb605887
      Greg Ward authored
        they make sure that 'set_final_options()' has been called, but isn't
        called redundantly.
      Changed Distribution to call 'ensure_ready()' where it used to call
        'set_final_options()', and in a few extra places as well.
      Lots of comment/docstring revisions and additions in both classes.
      New one-liner utility methods in Command: 'find_peer()', 'spawn()'.
      eb605887
  5. 27 Sep, 1999 2 commits
  6. 26 Sep, 1999 5 commits