[Patches] [ python-Patches-601314 ] build_ext forgets libraries par w MSVC
noreply@sourceforge.net
noreply@sourceforge.net
Wed, 28 Aug 2002 06:59:41 -0700
Patches item #601314, was opened at 2002-08-28 15:59
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=601314&group_id=5470
Category: Distutils and setup.py
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Wolfgang Strobl (strobl)
Assigned to: Nobody/Anonymous (nobody)
>Summary: build_ext forgets libraries par w MSVC
Initial Comment:
Including additional link libraries by specifiying the
libraries parameter in the Extension class call in
setup.py fails, when using the MSVC compiler, the
parameter silently gets ignored.
This is caused by a bug in build_ext which has been
introduced through the addition of cygwin support from
1.69 to 1.70 in 9/2000.
"get_libraries" SHOULD return ext.libraries per default.
Currently, it falls through and returns None, if the
platform is WIN32 and the compiler is MSVCCompiler.
I noticed this while trying to build the bsddb3 python
extension for win32. A necessary library libdb40s was
specified in setup.py, but the build failed because the
value never got through to the linker.
The attached patch adds a single "return ext.libraries" at
the end of the case "win32", as a catch all. This fixes
the problem.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=601314&group_id=5470