Re: problems build root on OSX against non-system python version

From: <wlavrijsen_at_lbl.gov>
Date: Wed, 14 Sep 2011 12:45:45 -0700


Chris,

> On 14 Sep 2011, at 6:37pm, <wlavrijsen_at_lbl.gov> <wlavrijsen_at_lbl.gov> wrote:
>> why patches? PyROOT supports p3.x.
>
> Does ROOT support python 3.2 ? If I try and build against that I get the
> errors below ?

that's all in Reflex related parts; my statement was that PyROOT supports p3.x. "ROOT" as a whole (i.e. genreflex and PyCintex included) does not yet.

PyCintex could be easily fixed, since the problematic portion is a c&p from ROOT.py, but genreflex may be more work, although the conversion script may be sufficient if it is acceptable to maintain two versions, or it may benefit from using python2 instead of python.

Basically for PyCintex.py:

    for name in stlclasses:

       locals()[ name ] = Template( "std::%s" % name )

instead of:

    for name in stlclasses:

       exec '%(name)s = Template( "std::%(name)s" )' % { 'name' : name }

should do the trick to have code that works on both p2 and p3.

All that said, are there users? I know of 1 person using p3.x (for whom I did the porting work of PyROOT). For ATLAS, use of p3.x wouldn't be a good idea, since the framework configuration uses lots of strings, and these double in size in p3.x since strings become unicode.

Best regards,

            Wim

-- 
WLavrijsen_at_lbl.gov    --    +1 (510) 486 6411    --    www.lavrijsen.net
Received on Wed Sep 14 2011 - 21:43:31 CEST

This archive was generated by hypermail 2.2.0 : Wed Sep 14 2011 - 23:50:01 CEST