[ python-Bugs-877165 ] distutils - compiling C++ ext in cyg or
mingw w/ std Python
SourceForge.net
noreply at sourceforge.net
Sat Jun 5 14:19:01 EDT 2004
Bugs item #877165, was opened at 2004-01-14 21:55
Message generated for change (Comment added) made by pmoore
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=877165&group_id=5470
Category: Distutils
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Michael Droettboom (mdboom)
Assigned to: Nobody/Anonymous (nobody)
Summary: distutils - compiling C++ ext in cyg or mingw w/ std Python
Initial Comment:
When compiling C++ extensions with Cygwin (Cygwin.dll
or MingW), the linker is erroneously set to cc, rather
than gcc. Even though cc is a symlink to gcc, the
standard Python distribution is a standard Windows
executable which can not follow Cygwin symlinks, so
distutils displays the following error:
command 'cc' failed: Invalid argument
confusingly indicating cc.exe can not be found.
The error occurs because there is no compiler_cxx in
CygwinCCompiler to override the value in the
UnixCCompiler base class, as there is for compiler,
compiler_so etc...
The included patch (against revision 1.24 in CVS of
distutils/cygwinccompiler.py) adds this override and
fixes the error.
Thanks to Paul Moore for helping me track this down.
----------------------------------------------------------------------
Comment By: Paul Moore (pmoore)
Date: 2004-06-05 19:19
Message:
Logged In: YES
user_id=113328
Reviewed the patch - it looks OK to me. The current
behaviour is not useful (there is no cc command in mingw for
Windows). No documentation changes should be needed, and I
can't see an obvious test that could be added (there are no
distutils tests that I can see at the moment).
I recommend applying this patch.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=877165&group_id=5470
More information about the Python-bugs-list
mailing list