Since the world's attention has been drawn to this, maybe I'd better sort this out now :-)
On 20 April 2010 19:04, Andrew Dalke <[email protected]> wrote: > On Apr 20, 2010, at 6:56 PM, Geoffrey Hutchison wrote: >> Feel free to "steal" the CMake from Open Babel. See scripts/CMakeLists.txt. >> A few weeks ago, we used CMake's SWIG support to compile and install the >> Python bindings -- this was buggy. >> >> Now, we run distutils, e.g.: >> install(CODE "execute_process(COMMAND ${PYTHON_EXECUTABLE} >> ${openbabel_SOURCE_DIR}/scripts/python/setup.py install >> --prefix=${CMAKE_INSTALL_PREFIX} WORKING_DIRECTORY >> ${openbabel_BINARY_DIR}/scripts)") > > In trying to get OpenBabel to compile on my Mac last week, working with Noel > on this, I found that this part of the OB configuration for the Mac doesn't > work quite right. > > I expect the default installation to go into the standard Python > site-packages directory, which for me is > > /Library/Python/2.6/site-packages > > However, cmake wants there to be a CMAKE_INSTALL_PREFIX, and uses the default > "/usr/local". This caused OB to install the Python code into > /usr/local/lib/python2.6/site-packages . It's the only package I have > installed in that directory. > > I don't have a good feeling for how setting CMAKE_INSTALL_PREFIX should > affect the install. Perhaps there should be a CMAKE_INSTALL_PYTHON_PREFIX or > something like that. My observation here is only that when nothing is > specified then the default Python installation directory should be the > default determined by Python, and not by the cmake configuration. > > Noel knows about this. > > Andrew > [email protected] > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Rdkit-discuss mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/rdkit-discuss > ------------------------------------------------------------------------------ _______________________________________________ Rdkit-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

