Dear Gianluca,

On Wed, Jan 20, 2010 at 7:59 PM, Greg Landrum <[email protected]> wrote:
>
> The reason for the hackery is to allow an alternate python
> installation to be used on systems that have more than one. This was
> the only way I could figure out how to do this.
>
> Can you please send copies of the error messages you see so that I can
> try to diagnose the problem with the current setup?

Ok, I managed to figure this one out myself using the standard (v2.6)
cmake install on my ubuntu machine; I normally use a copy of v2.8 that
I have installed in /usr/local so I hadn't seen this problem before.

It looks like the maintainers of the python package for cmake changed
the name of the variable used to track where the python include files
are in v2.8 from PYTHON_INCLUDE_PATH to PYTHON_INCLUDE_DIR. The RDKit
files were setup to for the v2.8 name.

I just checked in this change to $RDBASE/CMakeLists.txt that should
fix the problem :

#--------------------------

--- CMakeLists.txt      (revision 1308)
+++ CMakeLists.txt      (working copy)
@@ -42,6 +42,14 @@
   set(PYTHON_INCLUDE_DIR ${oPYTHON_INCLUDE_DIR})
 endif(oPYTHON_INCLUDE_DIR)

+#---
+# CMake v2.6 doesn't have PYTHON_INCLUDE_DIR yet, it's called
PYTHON_INCLUDE_PATH
+#---
+if(CMAKE_MAJOR_VERSION EQUAL 2 AND CMAKE_MAJOR_VERSION LESS 8)
+  if(NOT PYTHON_INCLUDE_DIR)
+    set(PYTHON_INCLUDE_DIR ${PYTHON_INCLUDE_PATH})
+  endif(NOT PYTHON_INCLUDE_DIR)
+endif(CMAKE_MAJOR_VERSION EQUAL 2 AND CMAKE_MAJOR_VERSION LESS 8)

 if(NOT PYTHON_LIBRARIES AND NOT PYTHON_INCLUDE_DIR)
   set(PYTHON_FOUND "NO")

#--------------------------

You can get the file itself here:
http://rdkit.svn.sourceforge.net/viewvc/rdkit/trunk/CMakeLists.txt

Thanks for reporting the problem.
-greg

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Rdkit-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to