[New-bugs-announce] [issue6145] distutils.extension.read_setup_file misinterprets -C switch

Lorenz Quack report at bugs.python.org
Sat May 30 00:07:02 CEST 2009


New submission from Lorenz Quack <don at amberfisharts.com>:

I'm not sure if this is a bug or some weird backward-compatible behaviour...

In "distutil.extension.read_setup_file" it checks for the "-C" switch
but then appends "word" instead of "value"
So if you pass "-C-Wall" it actually passes exactly that to the compiler
instead of just "-Wall"

In the file it says the switch is "only here 'cause makesetup has it!"
so is this some behaviour the way it is for compability reasons or am I
missing something?

If this is indeed a bug I attached a patch

----------
assignee: tarek
components: Distutils
files: distutil_extension.patch
keywords: patch
messages: 88542
nosy: donlorenzo, tarek
severity: normal
status: open
title: distutils.extension.read_setup_file misinterprets -C switch
versions: Python 2.4, Python 2.5, Python 2.6, Python 2.7, Python 3.0, Python 3.1, Python 3.2
Added file: http://bugs.python.org/file14117/distutil_extension.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6145>
_______________________________________


More information about the New-bugs-announce mailing list