On 20 April 2010 19:20, Geoffrey Hutchison <[email protected]> wrote: > > On Apr 20, 2010, at 2:04 PM, Andrew Dalke wrote: > >> 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 > > Yes, I need to fix Noel's CMakeLists -- it needs a special case for if(APPLE) > here. That should show up in SVN in the next 15 minutes or so. > >> 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. > > Well, I haven't tried, it, but if you can give me a python script which gives > the appropriate destination directory, I can hack the CMake code. e.g. > > EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c > "import numpy; print numpy.get_include()" > OUTPUT_VARIABLE NUMPY_INCLUDE_DIR) > > This particular bit gives CMake the location of the numpy headers. I'm sure > there's some similar function call for distutils, right?
Please - don't edit this, right now. I'm sorting it out as we speak. I will post the solution to openbabel-devel later today, and cc all interested parties. > Cheers, > -Geoff > ------------------------------------------------------------------------------ > _______________________________________________ > 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

