The configuration currently prefers python 3 over python 2. A build with both python 2 and 3 installed finds the python 3 interpreter and libraries:
-- Found PythonLibs: /usr/lib64/libpython3.4m.so (found version "3.4.2")
-- Found PythonInterp: /usr/bin/python3.4 (found version "3.4.2")
However, the setup.py script that is used to do the actual build is not valid python 3 syntax and fails:
File "/home/ellert/Fedora-GIT/xrootd/xrootd-4.2.0/build/bindings/python/setup.py", line 28
print 'XRootD library dir: ', xrdlibdir
^
SyntaxError: Missing parentheses in call to 'print'
bindings/python/CMakeFiles/python_target.dir/build.make:55: recipe for target 'bindings/python/python_bindings' failed
make[2]: *** [bindings/python/python_bindings] Error 1
Preferably the configuration should search for both python 2 and python 3 and build the python module for both.
—
Reply to this email directly or view it on GitHub.
Use REPLY-ALL to reply to list
To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1