Re: How to disable optimization for Python distutils
On Sat, 2005-09-17 at 23:59 +0900, Seo Sanghyeon wrote: > Seo Sanghyeon writes: > >> To disable optimization when compiling Python modules, just set CFLAGS. > >> Example: CFLAGS=-O0 python setup.py build > > On Sat, Sep 17, 2005 at 04:24:16PM +0200, Matthias Klose wrote: > > Not correct. You suppress any other flags which are set in > > /usr/lib/python2.x/config/Makefile > > No, it doesn't. CFLAGS is *added* to flags set in Makefile. > Check Python 2.3's distutils/sysconfig.py near line 168. Awesome, thanks! -- Joe Wreschnig <[EMAIL PROTECTED]> signature.asc Description: This is a digitally signed message part
Re: How to disable optimization for Python distutils
Seo Sanghyeon writes: >> To disable optimization when compiling Python modules, just set CFLAGS. >> Example: CFLAGS=-O0 python setup.py build On Sat, Sep 17, 2005 at 04:24:16PM +0200, Matthias Klose wrote: > Not correct. You suppress any other flags which are set in > /usr/lib/python2.x/config/Makefile No, it doesn't. CFLAGS is *added* to flags set in Makefile. Check Python 2.3's distutils/sysconfig.py near line 168. Seo Sanghyeon -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: How to disable optimization for Python distutils
Seo Sanghyeon writes: > Python distutils use same CFLAGS as Python itself for modules it compile > by default. As Python is compiled with -O3 by default, this means all > Python modules using distutils are compiled with -O3 as well. > > To disable optimization when compiling Python modules, just set CFLAGS. > Example: CFLAGS=-O0 python setup.py build I stand corrected, this is appended to the CFLAGS from the Makefile, and therefore overrides the -O3. it doesn't change other flags. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: How to disable optimization for Python distutils
Seo Sanghyeon writes: > Python distutils use same CFLAGS as Python itself for modules it compile > by default. As Python is compiled with -O3 by default, this means all > Python modules using distutils are compiled with -O3 as well. > > To disable optimization when compiling Python modules, just set CFLAGS. > Example: CFLAGS=-O0 python setup.py build Not correct. You suppress any other flags which are set in /usr/lib/python2.x/config/Makefile -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
How to disable optimization for Python distutils
Python distutils use same CFLAGS as Python itself for modules it compile by default. As Python is compiled with -O3 by default, this means all Python modules using distutils are compiled with -O3 as well. To disable optimization when compiling Python modules, just set CFLAGS. Example: CFLAGS=-O0 python setup.py build Seo Sanghyeon -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]