[Patches] [ python-Patches-681504 ] using gcc on cygwin for config

SourceForge.net noreply@sourceforge.net
Wed, 05 Feb 2003 22:46:55 -0800


Patches item #681504, was opened at 2003-02-06 15:46
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=681504&group_id=5470

Category: Distutils and setup.py
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Michiel de Hoon (mdehoon)
Assigned to: Nobody/Anonymous (nobody)
Summary: using gcc on cygwin for config

Initial Comment:
On Cygwin, I noticed that distutils tries to use the cc
compiler instead of the gcc compiler for the config
step, resulting in an error. Instead, for the build
step the correct compiler (gcc) is being used.

For the build step, build_clib.py and build_ext.py
contain a call to customize_compiler after the call to
new_compiler. The call to customize_compiler causes gcc
to be used on cygwin. In config.py, however, this call
to customize_compiler after the call to new_compiler is
missing.

Adding the call to customize_compiler after the call to
new_compiler in config.py solves this problem, and the
config step then runs correctly on Cygwin.

BTW, I noticed that in version 1.44.6.3 of sysconfig.py
in CVS, the function get_python_version is missing,
causing errors in the build step. This is the latest
committed version of sysconfig.py. So I used version
1.56 instead (which was committed earlier than
1.44.6.3, but has a higher version number ??).


Michiel de Hoon
University of Tokyo, Human Genome Center

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=681504&group_id=5470