1. 16 Dec, 1999 2 commits
  2. 13 Dec, 1999 1 commit
  3. 12 Dec, 1999 7 commits
    • Greg Ward's avatar
    • Greg Ward's avatar
      Catch missing MANIFEST file and warn rather than blowing up. · a65fd32d
      Greg Ward authored
      Added 'nuke_release_tree()' method to blow away the directory from
        which the archive file(s) are created, and call it (conditionally)
        from 'make_distribution()'.
      Added 'keep_tree' option (false by default) to disable the call to
        'nuke_release_tree()'.
      a65fd32d
    • Greg Ward's avatar
      Fixed 'find_package_modules()' to ensure that we never build (and thus · 749d2ea5
      Greg Ward authored
        install) the setup script itself.
      Fixed 'build_module()' so we do *not* preserve file mode (which means
        we can install read-only files, which makes the next installation
        of this distribution fail -- at least under Unix); added a comment
        explaining this.
      749d2ea5
    • Greg Ward's avatar
      Changed 'build_extensions()' so 'sources' can be a list or tuple; and · c2cadc8e
      Greg Ward authored
        call CCompiler method 'compile()' with 'include_dirs' not 'includes'.
      Fixed stupid typo in 'get_source_files()'.
      c2cadc8e
    • Greg Ward's avatar
      In 'compile()' method, renamed 'includes' parameter to 'include_dirs' for · 6b3ff9ee
      Greg Ward authored
        consistency with 'build_ext' command option.
      Changed 'compile()' and 'link_shared_object()' so 'include_dirs',
        'libraries', and 'library_dirs' can be lists or tuples.
      6b3ff9ee
    • Greg Ward's avatar
      Added support for printing out help text from option table: 'print_help()', · 8fa8e3f2
      Greg Ward authored
        'generate_help()', 'wrap_text()' functions, and a little tiny test
        of 'wrap_text()'.
      Changed how caller states that one option is the boolean opposite of
        another: added 'negative_opt' parameter to 'fancy_getopt()', and changed
        to use it instead of parsing long option name.
      8fa8e3f2
    • Greg Ward's avatar
      Made "verbose" mode the default; now you have to supply --quiet if you · 948163cd
      Greg Ward authored
        want no output.  Still no option for a happy medium though.
      Added "--help" global option.
      Changed 'parse_command_line()' to recognize help options (both for the
        whole distribution and per-command), and to distinguish "regular run"
        and "user asked for help" by returning false in the latter case.
      Also in 'parse_command_line()', detect invalid command name on command
        line by catching DistutilsModuleError.
        a 'negative_opt' class attribute right after 'global_options'; changed
        how we call 'fancy_getopt()' accordingly.
      Initialize 'maintainer' and 'maintainer_email' attributes to Distribution
        to avoid AttributeError when 'author' and 'author_email' not defined.
      Initialize 'help' attribute in Command constructor (to avoid
        AttributeError when user *doesn't* ask for help).
      In 'setup()':
        * show usage message before dying when we catch DistutilsArgError
        * only run commands if 'parse_command_line()' returned true (that
          way, we exit immediately when a help option is found)
        * catch KeyboardInterrupt and IOError from running commands
      Bulked up usage message to show --help options.
      Comment, docstring, and error message tweaks.
      948163cd
  4. 03 Dec, 1999 1 commit
    • Greg Ward's avatar
      [from 1999-11-04] · 2bfd1886
      Greg Ward authored
      Bunch of little bug fixes that appeared in building non-packagized
      distributions.  Mainly:
        - brain-slip typo in 'get_package_dir()'
        - don't try to os.path.join() an empty path tuple -- it doesn't like it
        - more type-safety in 'build_module()'
      2bfd1886
  5. 23 Oct, 1999 4 commits
  6. 03 Oct, 1999 10 commits
  7. 29 Sep, 1999 11 commits
    • Greg Ward's avatar
    • Greg Ward's avatar
      Added all documentation. · 3a5f9618
      Greg Ward authored
      Slightly improved the code for dealing with newline on a comment line,
        and for stripping whitespace.
      3a5f9618
    • Greg Ward's avatar
    • Greg Ward's avatar
      Added 'package' option. · 0e1de219
      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".
      0e1de219
    • Greg Ward's avatar
      Renamed 'dir' option to be consistent with other commands. · dc070bb9
      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()'
      dc070bb9
    • Greg Ward's avatar
      Renamed many options to be consistent across commands. · ef61002f
      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.
      ef61002f
    • Greg Ward's avatar
      Catch up with latest changes in CCompiler: · 746c9403
      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.
      746c9403
    • Greg Ward's avatar
      Catch up with latest changes in CCompiler: · 5a10a6e2
      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()'
      5a10a6e2
    • Greg Ward's avatar
      Added 'extra_preargs' and 'extra_postargs' parameters to most methods, · e748eefe
      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).
      e748eefe
    • Greg Ward's avatar
      More tweaks to 'mkpath()': · 9a476d73
      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
      9a476d73
    • Greg Ward's avatar
      Added 'ready' flag and 'ensure_ready()' method to Command: together · d2ce9d4f
      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()'.
      d2ce9d4f
  8. 22 Sep, 1999 1 commit
  9. 21 Sep, 1999 3 commits
    • Greg Ward's avatar
      Ditched the whole notion of "alias options": this meant dropping the · 5c182c04
      Greg Ward authored
        'alias_options' table and getting rid of some hairy code in the
        Distribution constructor.
      Resurrected the distribution options that describe the modules present
        in the module distribution ('py_modules', 'ext_modules'), and added
        a bunch more: 'packages', 'package_dir', 'ext_package', 'include_dirs',
        'install_path'.
      Updated some comments.
      Added 'warn()' method to Command.
      'Command.get_command_name()' now stores generated command name in
        self.command_name.
      5c182c04
    • Greg Ward's avatar
      Added 'write_file()' function. · 602f5dab
      Greg Ward authored
      Added global cache PATH_CREATED used by 'mkpath()' to ensure it doesn't
        try to create the same path more than once in a session (and, more
        importantly, to ensure that it doesn't print "creating X" more than
        once for each X per session!).
      602f5dab
    • Greg Ward's avatar
      b2bb0668