Ah yes, The configure step of python has to be run from a script. See External_NUMPY.cmake for example where each of the steps (configure,make,install) are run as separate scripts that are configured with configure_file. The files for the most part just set environment variables for the build.<br>

<br><div class="gmail_quote">On Tue, Aug 30, 2011 at 11:25 AM, Matthew Turk <span dir="ltr">&lt;<a href="mailto:matthewturk@gmail.com" target="_blank">matthewturk@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi David,<br>
<br>
The error message reported by the Python build itself reports that it<br>
didn&#39;t find the necessary bits to build zlib:<br>
<br>
Python build finished, but the necessary bits to build these modules<br>
were not found:<br>
_bsddb             _sqlite3           bsddb185<br>
bz2                dbm                dl<br>
gdbm               imageop            readline<br>
sunaudiodev        zlib<br>
To find the necessary bits, look in setup.py in detect_modules() for<br>
the module&#39;s name.<br>
<br>
After digging through detect_modules and the CMake files I think the<br>
issue is that detect_modules looks at CPPFLAGS.  I&#39;ve tried modifying<br>
External_Python.cmake with<br>
<br>
set(ENV(CPPFLAGS) -I@ZLIB_INCLUDE_DIR@)<br>
<br>
but this did not seem to be propagated to the environment configure<br>
read from, as config.log indicated that CPPFLAGS was set to the empty<br>
string.<br>
<br>
Any suggestions how to correctly thread this through?<br>
<br>
Thanks,<br>
<br>
Matt<br>
<div><div></div><div><br>
On Tue, Aug 30, 2011 at 10:01 AM, David Partyka<br>
&lt;<a href="mailto:david.partyka@kitware.com" target="_blank">david.partyka@kitware.com</a>&gt; wrote:<br>
&gt; I have but of course I wrote it ;-). What platform/compiler are you using?<br>
&gt; Can you send the error messages?<br>
&gt;<br>
&gt; On Tue, Aug 16, 2011 at 6:17 PM, Matthew Turk &lt;<a href="mailto:matthewturk@gmail.com" target="_blank">matthewturk@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi there,<br>
&gt;&gt;<br>
&gt;&gt; Has anyone successfully gotten the zlib module in the paraview<br>
&gt;&gt; superbuild to build and install?  On my machine, it is failing on<br>
&gt;&gt; finding zlib.h; I am not sure how to interface with the Python<br>
&gt;&gt; setup.py patch to suggest additional directories (like ZLIB_INSTALL)<br>
&gt;&gt; to search for the necessary components.<br>
&gt;&gt;<br>
&gt;&gt; Thanks for any ideas,<br>
&gt;&gt;<br>
&gt;&gt; Matt<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt;<br>
&gt;&gt; Visit other Kitware open-source projects at<br>
&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt;<br>
&gt;&gt; Please keep messages on-topic and check the ParaView Wiki at:<br>
&gt;&gt; <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
&gt;&gt;<br>
&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br>