On Thu, Jan 21, 2010 at 5:48 PM, Gianluca Sforna <[email protected]> wrote: > On Thu, Jan 21, 2010 at 2:23 PM, Greg Landrum <[email protected]> wrote: >> On Thu, Jan 21, 2010 at 11:32 AM, Gianluca Sforna <[email protected]> wrote: >>> For python, it seems you need to set PYTHON_INCLUDE_PATH and >>> PYTHON_LIBRARY in order to use your own version >> >> exactly, and that's what the "hackery" code in the file does. If there >> is a better pattern for doing this, I'm happy to hear it. Using ccmake >> isn't a good general purpose option because I think that would prevent >> the build from being done by a script in the case where one needs to >> use a non-standard version of python. > > I think you can do it with regular cmake using something like: > cmake -DPYTHON_LIBRARY=/path/to/python/shared/or/static/lib > -DPYTHON_INCLUDE_PATH=/path/to/pyhton/include/files > > I haven't a alternate python install to test it, though
hmm, we're talking in different directions. I have either misunderstood something or I'm explaining poorly. I'm aware of the -D flags (though in cmake 2.8 PYTHON_INCLUDE_PATH is deprecated in favor of PYTHON_INCLUDE_DIR) and this is what I mention in the wiki. The reason for the long ugly bit in the CMakeLists.txt is because it seems that the FindPythonLibs functionality ignores those -D flags and just finds the default libraries for your system. So I came up with the hackery to work around this problem. There's probably a better way to solve the problem, but I wasn't able to find one. I'm not currently at the machine where this problem arose, but I will send an example tomorrow morning to show what I mean. -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

