On Fri, Jun 6, 2014 at 9:46 AM, Gianluca Sforna <[email protected]> wrote:

> On Fri, Jun 6, 2014 at 5:54 AM, Greg Landrum <[email protected]>
> wrote:
> > Note: in your original message you said that you were interested in using
> > the Python wrappers. If this is the case, you don't actually need to be
> > building the java wrappers (where these errors are happening) at all. If
> you
> > set RDK_BUILD_SWIG_WRAPPERS to OFF in your cmake command line, the java
> > wrapper will be disabled.
>
> Is there a reason why we don't just use SWIG for all wrappers,
> including python? I guess it would help exposing build or runtime
> issues with swig and probably also reduce build dependencies.
>
>
It's a good question. It certainly would be possible to do a SWIG-based
python wrapper with some (probably minor) modifications to the current
Java/C# wrapper.
The advantage (in my mind) of the boost.python based wrapper that the RDKit
currently uses is that it allows the construction of a wrapper that feels
more Pythonic. The problem with the (mostly) automatically generated
wrappers that SWIG produces is that they generally end up feeling like C++
no matter what language you're working in.[1]

-greg
[1] there are some other points about how well/poorly SWIG is supported and
how complex it is to work with, but those are easier to overcome.
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Rdkit-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to