[Python-Dev] Accelerating extension module compilation [distutils]

2013-04-09 Thread Alex Leach
Hi, Apologies if this is the wrong place to ask, but thought this question would be relevant to Python core and extension module devs.. This the right place? I've been using distutils to compile C++ extensions / bindings written with Boost.Python, and have been implementing some (often fr

[Python-Dev] Compiling Python on Linux with Intel's icc

2012-03-01 Thread Alex Leach
Dear Python Devs, I've been attempting to compile a fully functional version of Python 2.7 using Intel's C compiler, having built supposedly optimal versions of numpy and scipy, using Intel Composer XE and Intel's Math Kernel Library. I can build a working Python binary, but I'd really apprecia

Re: [Python-Dev] Compiling Python on Linux with Intel's icc

2012-03-02 Thread Alex Leach
Stefan Krah wrote: > Alex Leach wrote: > > I've managed to compile everything in the python distribution except for > > Modules/_ctypes/libffi/src/x86/ffi64.c. > > There is an issue for this: > > http://bugs.python.org/issue4130 Yes, I saw that bug report, bu

Re: [Python-Dev] Compiling Python on Linux with Intel's icc

2012-03-02 Thread Alex Leach
Stefan Krah wrote: > Alex Leach wrote: > > I've managed to compile everything in the python distribution except for > > Modules/_ctypes/libffi/src/x86/ffi64.c. > > There is an issue for this: > > http://bugs.python.org/issue4130 Yes, I saw that bug report, bu

Re: [Python-Dev] Compiling Python on Linux with Intel's icc

2012-03-02 Thread Alex Leach
> Éric Araujo wrote: > > Could you expand on that? distutils is supposed to support all > unix-like C compilers. Packages that use the numpy distutils can be built with the following options:- $ python setup.py config --compiler=intelem --fcompiler=intelem build -- compiler=intelem install T

Re: [Python-Dev] Compiling Python on Linux with Intel's icc

2012-03-02 Thread Alex Leach
Stefan Krah wrote: > Alex Leach wrote: > > I've managed to compile everything in the python distribution except for > > Modules/_ctypes/libffi/src/x86/ffi64.c. > > There is an issue for this: > > http://bugs.python.org/issue4130 Yes, I saw that bug report, bu

Re: [Python-Dev] Compiling Python on Linux with Intel's icc

2012-03-02 Thread Alex Leach
On 02/03/2012 14:52, "Antoine Pitrou" wrote: > >Did you compare the actual code sizes? The `size` command can help you >with that. I'd never used `size` before... Thanks for the tip; looks like the Intel build is actually smaller..? :/ # ICC version (`ls -lh` ==> 4.7MB) $ size ./python tex

Re: [Python-Dev] Compiling Python on Linux with Intel's icc

2012-04-14 Thread Alex Leach
l/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/intel/bin:/usr/intel/composer_xe_2011_sp1.9.293/mpirt/bin/intel64:/home/albl500/SDKs/android-sdk-linux/tools:/biol/bin:/biol/arb/bin:/usr/local/cuda/bin:/home/albl500/bin:/usr/intel/composer_xe_2011_sp1.9.293/mpirt/bin/intel64 LD=xild CXX=icpc CC=ic

Re: [Python-Dev] c/ElementTree XML serialisation

2012-05-08 Thread Alex Leach
Furthermore, if I use the "html" method (an option given to ElementTree.write), closing tags are converted to lower case, which leads to an XML parsing error with camel-cased tag names. Using the "text" method instead removes all tags, and I get a ValueError if I try to use the "c14n" method. T

Re: [Python-Dev] c/ElementTree XML serialisation

2012-05-08 Thread Alex Leach
On Tuesday 08 May 2012 23:15:43 And Clover wrote: | | CDATA sections are of use for hand-authoring readability, but don't help | in machine-serialised documents. You don't get away from the need to | encode out-of-band sequences (notably ]]> is still invalid) so it | doesn't buy you any simplicity

Re: [Python-Dev] c/ElementTree XML serialisation

2012-05-09 Thread Alex Leach
On Wednesday 09 May 2012 08:02:09 Xavier Morel wrote: | Erm… you have them? What do you think `<` and `>` are? I was under the impression that those (let's call them) HTML representations of < and > don't get interpreted correctly by Javascript engines. I'll have to check that though.. | | As

Re: [Python-Dev] c/ElementTree XML serialisation

2012-05-09 Thread Alex Leach
On Wednesday 09 May 2012 08:02:09 Xavier Morel wrote: | Erm… you have them? What do you think `<` and `>` are? I was under the impression that those (let's call them) HTML representations of < and > don't get interpreted correctly by Javascript engines. I'll have to check that though.. | | As