This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lianos
Recipients collinwinter, lianos, mdehoon, pje
Date 2008-09-23.16:44:37
SpamBayes Score 4.4964032e-15
Marked as misclassified No
Message-id <1222188279.52.0.811703324652.issue1168055@psf.upfronthosting.co.za>
In-reply-to
Content
Sorry to bring up an old issue, but I just got bit by this when trying
to install a python package.

The `config` command was used to ensure that a certain function was
included in the math.h on my cpu before compiling the resulting c binary
and python wrapper for it.

I had to chase down the problem and basically re-figure out what Michiel
did in his patch on my system[1] and override the `try_run` method in
the setup.py file.

I didn't bother checking the issue tracker assuming distutils is used so
widely (and is old enough) that the bug couldn't be in distutiles
itself, but must be something I'm doing wrong in my end ... oh well.

Anyway, could we somehow try to fix this bug to mitigate some lost time
and frustration?

Michiel's patch seems reasonable enough to me since it looks to be the
least surgery-intensive way (I'm not sure where Phillip would like to
put the os.path.abspath() call) to fix the bug for the majority of the
time when someone would be bitten by it.

Regardless of whether or not the code is well documented, it's still
there and usable in distutils (w/o any warnings against its use), so it
would make sense to me that we at least have it work as its intended to.

[1] My path was slightly different than the submitted patch. Where
Michiel has:

command = os.path.join(os.curdir, exe)

I have:

command = os.path.join(os.getcwd(), exe)

all in all, you get the same effect
History
Date User Action Args
2008-09-23 16:44:39lianossetrecipients: + lianos, collinwinter, pje, mdehoon
2008-09-23 16:44:39lianossetmessageid: <1222188279.52.0.811703324652.issue1168055@psf.upfronthosting.co.za>
2008-09-23 16:44:38lianoslinkissue1168055 messages
2008-09-23 16:44:37lianoscreate