New submission from Lorenz Quack <d...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue6145>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to