openbabel/openbabel — pull request #33 by cowsandmilk (2013-10-22 00:56:20+00:00)
Title: Cmake python fixes

This involves two commits that:
1. install the python files into site-packages corresponding to the python used, rather than next to the libraries. eg /usr/lib64/python2.7/site-packages instead of /usr/lib64
2. CMake's PythonLibs and PythonInterp can find different versions of python. In my case, I had python3.2 and python2.7 installed. the PythonInterp found python2.7 since it was /usr/bin/python , but PythonLibs found the devel files for Python3 . This clearly did not work very well. Now, I search for the python first, then restrict the libraries found based on the version of the python interpreter.