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

SourceForge.net noreply@sourceforge.net
Mon, 10 Feb 2003 08:06:40 -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: Jason Tishler (jlt63)
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

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

>Comment By: Michiel de Hoon (mdehoon)
Date: 2003-02-11 01:06

Message:
Logged In: YES 
user_id=488897

The config step is where you do
python setup.py config
where you can do some test compilations before doing "python
setup.py build". Basically it works the same as
autoconf/automake's configure scripts. The code for the
config is in distutils/command/config.py. If you want to try
it out, you can go to my website
http://bonsai.ims.u-tokyo.ac.jp/~mdehoon, download pygist,
unpack, and run "python setup.py config". You'll notice that
it won't work on cygwin, as it tries to use cc instead of gcc.
--Michiel.

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

Comment By: Jason Tishler (jlt63)
Date: 2003-02-11 00:54

Message:
Logged In: YES 
user_id=86216

> 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.

Please excuse my ignorance, but what is the "config
step?" How would one invoke the config step? Sorry,
but I'm only lightly versed in distutils.

> Instead, for the build 
> step the correct compiler (gcc) is being used.

The build step seems to work fine under Cygwin Python
2.2.2 and CVS.

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

Comment By: Neal Norwitz (nnorwitz)
Date: 2003-02-08 07:55

Message:
Logged In: YES 
user_id=33168

Jason, can you provide any input about the issues w/Cygwin?

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

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