[issue3290] python-config --cflags includes irrelevant flags

2013-03-28 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


--
assignee: georg.brandl - doko
nosy: +doko

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3290
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3290] python-config --cflags includes irrelevant flags

2013-03-28 Thread Matthias Klose

Matthias Klose added the comment:

I don't see the current behaviour as problematic. If you build python as a 
debug build, you get the -O0 included, if you do a normal build, you get the 
-Ox included.  At least this is behaviour found in other '-config' programs 
too.  So maybe add an option to filter out flags, but which ones?

The other issue is that it's unclear what these options are used for, to build 
an extension module, or to build an embedded interpreter. Not a difference 
maybe in cflags, but for ldflags. And this should be harmonized with the 
pkgconfig file too.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3290
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3290] python-config --cflags includes irrelevant flags

2013-03-28 Thread Matthias Braun

Matthias Braun added the comment:

It's less of a problem when building python extenions, where you are probably 
fine with using just the same as the installed python.

However in my case I am embedding python as a scripting language into another 
application. So there is very few python related code and alot of other code. 
The python-config script injecting unnecessary build flags that in fact even 
change things (-DNDEBUG) is very annoying as it changes all the non-python code 
too.

A simple thing like the --includes that just outputs the -I flags would be the 
best solution IMO. But to have this working you would need to have a guarantee 
that there is no actual code in the form of #define / inline functions in the 
headers which potentially breaks if you use different flags from the python 
library. In fact --includes is what I am using now, I just hope that I won't 
hit any of the preproc macros by accident...

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3290
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3290] python-config --cflags includes irrelevant flags

2013-03-28 Thread Matthias Klose

Matthias Klose added the comment:

 However in my case I am embedding python as a scripting language
 into another application.

then why not filtering out these options on your own for this use case?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3290
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3290] python-config --cflags includes irrelevant flags

2013-03-28 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
nosy:  -terry.reedy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3290
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3290] python-config --cflags includes irrelevant flags

2013-03-04 Thread Matthias Braun

Matthias Braun added the comment:

I hacked up a proof-of-concept patch which filters out the most annoying flags 
(warnings, -Ox and -DNDEBUG flags).

(Though IMO the only really robust solution would be not having code but just 
declarations in the public headers, so --includes is enough. In my personal 
project I ended up to just use --includes and manually make sure that I don't 
use any of the code in the headers, but just the declarations).

--
keywords: +patch
nosy: +Matthias.Braun
Added file: http://bugs.python.org/file29310/python-config-filter-cflags.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3290
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3290] python-config --cflags includes irrelevant flags

2010-07-12 Thread Joe Neeman

Joe Neeman joenee...@gmail.com added the comment:

It's still an issue in Python 2.6.5 as packaged by openSUSE 11.2.

--
nosy: +Joe.Neeman

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3290
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3290] python-config --cflags includes irrelevant flags

2010-06-16 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

Is this still an issue for current trunks?

--
nosy: +tjreedy
versions: +Python 2.7, Python 3.2 -Python 2.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3290
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3290] python-config --cflags includes irrelevant flags

2008-09-26 Thread Erick Tryzelaar

Erick Tryzelaar [EMAIL PROTECTED] added the comment:

fyi, on the mac with gcc-4.2, distutils is erroring out because of the -
Wno-long-double it is getting from python-config --cflags, as it's no 
longer accepted as an argument. Fortunately this can be worked around by 
doing CC=gcc-4.0 python setup.py.

--
nosy: +erickt

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3290
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3290] python-config --cflags includes irrelevant flags

2008-07-06 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

I think you're right.

However, Martin, what flags except -I can/must we keep?

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3290
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3290] python-config --cflags includes irrelevant flags

2008-07-05 Thread Sacha Varma

New submission from Sacha Varma [EMAIL PROTECTED]:

As I understand it, python-config --cflags is intended to yield the C
compiler flags needed to compile a program that uses Python headers and
libraries (as opposed to the C flags needed to compile python itself).

However, it seems to include irrelevant options such as -Wall and -O3,
which interfere with the build (for example, by enabling optimisation in
a debug build):

$ python-config --cflags
-I/opt/Python-2.5.1/include/python2.5
-I/opt/Python-2.5.1/include/python2.5 -fno-strict-aliasing
-Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes

--
components: Build
messages: 69289
nosy: sacha
severity: normal
status: open
title: python-config --cflags includes irrelevant flags
type: behavior
versions: Python 2.5

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3290
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3290] python-config --cflags includes irrelevant flags

2008-07-05 Thread Martin v. Löwis

Martin v. Löwis [EMAIL PROTECTED] added the comment:

Georg, what do you think?

--
assignee:  - georg.brandl
nosy: +georg.brandl, loewis

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3290
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com