Dear all,

MacOS has a different standard for placing libraries. After a bit of
digging, I found out where the python libraries are, and modified the
suggestion of David Hall accordingly.

However, python 3 bindings are still not installed. (installer still
installs the python 2.7 bindings, but skips the python3 bindings)





cmake -DPYTHON_BINDINGS=ON
-DPYTHON_LIBRARY=/Library/Frameworks/Python.framework/Versions/3.3/lib/libpython3.3.dylib
 
-DPYTHON_INCLUDE_PATH=/Library/Frameworks/Python.framework/Versions/3.3/include/python3.3m/
-DPYTHON_EXECUTABLE=/usr/local/bin/python3 ../openbabel-2.3.1
-- Using included inchi library.
-- Could NOT find wxWidgets (missing:  wxWidgets_FOUND)
-- checking for module 'cairo'
--   package 'cairo' not found
-- Could NOT find Cairo. PNG output will NOT be supported.
-- Attempting to build the GUI
--    wxWidgets not found => GUI will not be built
-- Found PythonInterp: /usr/local/bin/python3 (found version "3.3.2")
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    PYTHON_INCLUDE_PATH
    PYTHON_LIBRARY



On Sat, Oct 19, 2013 at 9:27 PM, Noel O'Boyle <baoille...@gmail.com> wrote:
> Open Babel should work fine with Python 3.
>
> - Noel
>
> On 19 October 2013 19:17, David Hall <li...@cowsandmilk.net> wrote:
>> I would try something like this, but modified for the mac:
>> cmake -DPYTHON_BINDINGS=ON -DRUN_SWIG=ON
>> -DPYTHON_LIBRARY=/usr/lib/python3.2/config/libpython3.2.so
>> -DPYTHON_INCLUDE_PATH=/usr/include/python3.2
>> -DPYTHON_EXECUTABLE=/usr/bin/python3.2 ../openbabel-2.3.1
>>
>> I don't actually know whether openbabel works with python3, so buyer beware.
>>
>> -David
>>
>>
>> On Sat, Oct 19, 2013 at 6:23 AM, O. Baris Malcioglu
>> <baris.malcio...@gmail.com> wrote:
>>>
>>> Hi everyone,
>>>
>>> I have installed python3 to my Mac from the official distribution,
>>>
>>> However, when I try to install openbabel with python bindings using
>>> cmake ../openbabel-2.3.1 -DPYTHON_BINDINGS=ON -DBUILD_GUI=ON
>>>
>>> only bindings for python 2.7 are installed.
>>>
>>>
>>>
>>> is there a way I can make openbabel install python3 bindings as well?
>>> Simple aliasing does not work.
>>>
>>> Googling the problem did not help. (Is there a way to search archives
>>> of this mailing list?)
>>>
>>> best,
>>> Baris
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> October Webinars: Code for Performance
>>> Free Intel webinars can help you accelerate application performance.
>>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
>>> from
>>> the latest Intel processors and coprocessors. See abstracts and register >
>>>
>>> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> OpenBabel-discuss mailing list
>>> OpenBabel-discuss@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
>>
>>
>>
>> ------------------------------------------------------------------------------
>> October Webinars: Code for Performance
>> Free Intel webinars can help you accelerate application performance.
>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
>> from
>> the latest Intel processors and coprocessors. See abstracts and register >
>> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>> _______________________________________________
>> OpenBabel-discuss mailing list
>> OpenBabel-discuss@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
>>

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to