Re: [Distutils] behavior when failing to build an extension?

Bernhard Herzog wrote:
Yes, distutils stops with a message along the lines of error: command 'gcc' failed with exit status 1
That's also what e.g. make does by default, unless you run it with the -k flag.
Ok, thanks, then there's not much for me to do, except perhaps at some point make the error message nicer: it now crashes with a nasty traceback...
Btw. does really nobody have any advice on my ranlib question of a couple of days ago?
Just

Just van Rossum wrote:
Bernhard Herzog wrote:
Yes, distutils stops with a message along the lines of error: command 'gcc' failed with exit status 1
That's also what e.g. make does by default, unless you run it with the -k flag.
Ok, thanks, then there's not much for me to do, except perhaps at some point make the error message nicer: it now crashes with a nasty traceback...
distutils is your friend here: you just have subclass build_ext.
Btw. does really nobody have any advice on my ranlib question of a couple of days ago?
Nope. Why don't you write up a patch which then only affects distutils on Macs ?!

M.-A. Lemburg wrote:
Ok, thanks, then there's not much for me to do, except perhaps at some point make the error message nicer: it now crashes with a nasty traceback...
distutils is your friend here: you just have subclass build_ext.
I have no idea what that has to do with what I wrote...
Btw. does really nobody have any advice on my ranlib question of a couple of days ago?
Nope. Why don't you write up a patch which then only affects distutils on Macs ?!
Ok, I'll try. I didn't know whether that was a nono or not.
Just
participants (2)
-
Just van Rossum
-
M.-A. Lemburg