Hi Richard,

These new bindings are not going to be installed to site-packages -
that's the price we are going to pay for working bindings. I decided
to keep things simple going forward and not to add back support for
PYTHON_PREFIX.

But this is not a problem for Python. Just add the directory where the
.py files are installed to the front of your PYTHONPATH. (I'll add
this to the development documentation.)

- Noel

On 2 December 2011 01:03, Richard West <r.h.w...@gmail.com> wrote:
> Hello,
> I've spent some more quality time with OpenBabel Python bindings on a Mac 
> today.
>
> Using the open babel SVN trunk, as Noel suggested recently on the mailing 
> list, I can get almost everything to work (`cmake -DRUN_SWIG=TRUE
> -DPYTHON_BINDINGS=ON -DEIGEN3_INCLUDE_DIR='___' `)
>  but after a `make install` the final libraries (_openbabel.so, open 
> babel.py, pybel.py) end up in my '/usr/local/lib', not in any python 
> site-packages type location where python can find them.
>
> Some of the docs 
> (http://openbabel.org/docs/dev/Installation/install.html#compile-language-bindings
>  ) suggest they'd end up in '/usr/local/lib/python2.7/site-packages/' (which 
> would have been fine with me) UNLESS I specify  -DPYTHON_PREFIX. But if I try 
> to specify -DPYTHON_PREFIX it seems to have no effect.
> Perhaps the 2.3.1 docs do not appy to the trunk, but do you have any advice 
> how to control where the python libraries are installed to?  I had a hard 
> time figuring out what options I could pass to cmake.
>
>
> If it makes a difference: For most things, including python, I am using 
> homebrew (and I have been working on a homebrew recipe for open babel, that 
> almost works...).
>
> Thanks,
> Richard
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure
> contains a definitive record of customers, application performance,
> security threats, fraudulent activity, and more. Splunk takes this
> data and makes sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-novd2d
> _______________________________________________
> OpenBabel-Devel mailing list
> OpenBabel-Devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/openbabel-devel

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
OpenBabel-Devel mailing list
OpenBabel-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-devel

Reply via email to