[Python-checkins] CVS: python/dist/src/Lib/distutils cygwinccompiler.py,1.12,1.13 sysconfig.py,1.37,1.38

M.-A. Lemburg mal@lemburg.com
Thu, 26 Jul 2001 15:58:13 +0200


"Martin v. L?wis" wrote:
> 
> Update of /cvsroot/python/python/dist/src/Lib/distutils
> In directory usw-pr-cvs1:/tmp/cvs-serv9816/Lib/distutils
> 
> Modified Files:
>         cygwinccompiler.py sysconfig.py
> Log Message:
> Patch #411138: Rename config.h to pyconfig.h.  Closes bug #231774.
> 
> ***************
> *** 138,145 ****
> 
>   def get_config_h_filename():
> !     """Return full pathname of installed config.h file."""
>       if python_build: inc_dir = '.'
>       else:            inc_dir = get_python_inc(plat_specific=1)
> !     return os.path.join(inc_dir, "config.h")
> 
> 
> --- 138,145 ----
> 
>   def get_config_h_filename():
> !     """Return full pathname of installed pyconfig.h file."""
>       if python_build: inc_dir = '.'
>       else:            inc_dir = get_python_inc(plat_specific=1)
> !     return os.path.join(inc_dir, "pyconfig.h")
> 

Two things:

1. You should patch the distutils CVS tree as well.

2. Your fix is not backwards compatible (distutils maintains
   Python 1.5.2 and up compatibility, so you'll have to
   switch on the sys.version here).

-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Consulting & Company:                           http://www.egenix.com/
Python Software:                        http://www.lemburg.com/python/