[Patches] [ python-Patches-441350 ] Disutils config try_run broken

noreply@sourceforge.net noreply@sourceforge.net
Sat, 14 Jul 2001 15:46:14 -0700


Patches item #441350, was opened at 2001-07-14 15:46
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=441350&group_id=5470

Category: distutils
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Tarn Weisner Burton (twburton)
Assigned to: Nobody/Anonymous (nobody)
Summary: Disutils config try_run broken

Initial Comment:
The distutils.command.config try_run method is broken.
First it doesn't save the name of the compiled prog, 
then it tries to execute the non-existent symbol "exe"

Here is what it does now:

---------
try:
    self._link(body, headers, include_dirs,
               libraries, library_dirs, lang)
    self.spawn([exe])
    ok = 1
except (CompileError, LinkError, DistutilsExecError):
    ok = 0
---------

This will fix it:

---------
try:
    src, obj, prog = self._link(body, headers,
                                include_dirs,
                                libraries,
                                library_dirs, lang)
    self.spawn([prog])
    ok = 1
except (CompileError, LinkError, DistutilsExecError):
    ok = 0
----------

Tarn
twburton@users.sf.net



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

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