]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Big patch from Rene Liebscher to simplify the CCompiler API and
authorGreg Ward <gward@python.net>
Wed, 27 Sep 2000 02:08:14 +0000 (02:08 +0000)
committerGreg Ward <gward@python.net>
Wed, 27 Sep 2000 02:08:14 +0000 (02:08 +0000)
commit4240648a9dffd4b8858c7314bce0c2b0af830b06
treebe2f38413bf4f1706820da190443e7999535a07d
parent3ad4e74870e661566392cba0a12b0dc286b59fa7
Big patch from Rene Liebscher to simplify the CCompiler API and
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
Lib/distutils/bcppcompiler.py
Lib/distutils/ccompiler.py
Lib/distutils/cygwinccompiler.py
Lib/distutils/msvccompiler.py
Lib/distutils/unixccompiler.py