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

From: Chris Jones <jonesc_at_hep.phy.cam.ac.uk>
Date: Wed, 14 Sep 2011 20:31:45 +0100

On 14 Sep 2011, at 6:37pm, <wlavrijsen_at_lbl.gov> <wlavrijsen_at_lbl.gov> wrote:

> Sebastien,
>

>> this reminds me of all the patching I had to do for my ArchLinux system
>> (where the default is python->python3.x)
>> http://projects.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/root#n35

>
> why patches? PyROOT supports p3.x.

Does ROOT support python 3.2 ? If I try and build against that I get the errors below ?

cheers Chris

-ldl /opt/local/Library/Frameworks/Python.framework/Versions/3.2/python ==> lib/libPyROOT.so done
python -c 'import py_compile; py_compile.compile( "lib/PyCintex.py" )'   File "lib/PyCintex.py", line 77
    exec '%(name)s = Template( "std::%(name)s" )' % { 'name' : name }

                                                ^
SyntaxError: invalid syntax

python -O -c 'import py_compile; py_compile.compile( "lib/PyCintex.py" )'   File "lib/PyCintex.py", line 77
    exec '%(name)s = Template( "std::%(name)s" )' % { 'name' : name }

                                                ^
SyntaxError: invalid syntax

/Developer/usr/bin/llvm-g++-4.2 -dynamiclib -single_module -undefined dynamic_lookup -install_name /opt/local/lib/root/libCintex.so -O2 -m64 -mmacosx-version-min=10.7 -o lib/libCintex.so cint/cintex/src/CINTClassBuilder.o cint/cintex/src/CINTEnumBuilder.o cint/cintex/src/CINTFunctionBuilder.o cint/cintex/src/CINTFunctional.o cint/cintex/src/CINTScopeBuilder.o cint/cintex/src/CINTTypedefBuilder.o cint/cintex/src/CINTUtils.o cint/cintex/src/CINTVariableBuilder.o cint/cintex/src/Cintex.o cint/cintex/src/ROOTClassEnhancer.o -ldl ==> lib/libCintex.so done
  File "lib/python/genreflex/gccdemangler.py", line 210     if debug : print 'demangle_mangled_name ', name[:50]

                                            ^
SyntaxError: invalid syntax

Sorry: TabError: inconsistent use of tabs and spaces in indentation (gendict.py, line 248)   File "lib/python/genreflex/genheader.py", line 18     if id[-1] == u'c' :

                    ^

SyntaxError: invalid syntax

  File "lib/python/genreflex/genreflex-rootcint.py", line 55     except getopt.GetoptError, e:

                             ^

SyntaxError: invalid syntax

  File "lib/python/genreflex/genreflex.py", line 34     print 'Usage:'

                 ^

SyntaxError: invalid syntax

  File "lib/python/genreflex/selclass.py", line 52     except xml.parsers.expat.ExpatError, e :

                                       ^
SyntaxError: invalid syntax

Received on Wed Sep 14 2011 - 21:31:53 CEST

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