Bug #1299

Envelope task #424: === PythonAPI ===

Refactoring #1285: Investigate status of Py++

gccxml does not compile under gcc5; codegenaror.py does not work under gcc4.9

Added by wuttke about 4 years ago. Updated about 4 years ago.

Status:RejectedStart date:02 Feb 2016
Priority:UrgentDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

fails - with different error messages under stable (jessie) and testing (stretch)

History

#1 Updated by wuttke about 4 years ago

  • Parent task set to #1285

#2 Updated by pospelov about 4 years ago

wuttke wrote:

fails - with different error messages under stable (jessie) and testing (stretch)

How did you install pyplusplus? Via package manager or according to our wiki http://apps.jcns.fz-juelich.de/redmine/projects/bornagain/wiki/Python_bindings (Linux section) ?

#3 Updated by pospelov about 4 years ago

Since Py++, gccxml, pygccxml packages are not supported any more, I would assume that Debian repository contains obsolete versions of them and I would not spent time trying to make our codegenerator.py working with original Debian packages.

Anyway, on my OpenSuse Py++ and Pygccxml doesn't exist, I always have to install them in my home location. And when I tried to use last known original versions from developers I also had troubles.

At the end I succeeded with following recipe

  • gccxml

git clone git://github.com/gccxml/gccxml.git

Use cmake
See http://gccxml.github.io/HTML/Index.html

  • pygccxml

git clone https://github.com/gccxml/pygccxml (this seems to be new repository with some bugfix activity going on)
sudo python setup.py install

  • pyplusplus

See https://bitbucket.org/ompl/pyplusplus (this seems to be continuation/bugfix of old-good Py++ which works with pygccxml mentioned in previous section)
hg clone https://bitbucket.org/ompl/pyplusplus
sudo python setup.py install

So these are some forks, supported by God knows whom

My suggestion is to try this first.

Also I have reconsidered my objections against Jonathan first assignment.

  • I still think that the whole task (migrate our bindings to something else) is huge and we can not afford it
  • From other hand, it worth to study the current market of python bindings, and see what is going there now
  • some concrete tasks can be
    • header problem in current Py++ setup
    • attempt to switch from gccxml to castxml, may be it will help us at least with unique_ptr
    • try to run codegenerator.py under python3
    • check the whole BornAgain with python3

#4 Updated by wuttke about 4 years ago

Installed gccxml etc from the indicated sources. Compiles under Debian/stable. Running codegenerator.py fails with error messages from boost::atomic.

#5 Updated by wuttke about 4 years ago

  • Subject changed from codegenerator.py does not work under Debian to gccxml does not compile under gcc5; codegenaror.py does not work under gcc4.9

#6 Updated by pospelov about 4 years ago

  • Status changed from New to Rejected

Due to the progress demonstrated by Jonathan, seems that we are moving toward SWIG. No need in this option any more.

Also available in: Atom PDF