On Mon, Aug 23, 2010 at 10:09 PM, Jed Brown <span dir="ltr"><<a href="mailto:jed@59a2.org">jed@59a2.org</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Mon, 23 Aug 2010 16:58:57 -0500 (CDT), Satish Balay <<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>> wrote:<br>
> config/install.py is an exaple of stand alone script requiring<br>
> PETSC_DIR/PETSC_ARCH - it also relies on being invoked in PETSC_DIR<br>
<br>
</div>Do you suggest copying it's first 25 lines into all new scripts?<br>
<div class="im"><br>
> Part of the issue with PETSC_DIR/PETSC_ARCH is: they are primarily<br>
> needed by 'makefiles' [for both building and using PETSc]. All other<br>
> build tools - hopefully don't need them - or can autodetect as needed.<br>
<br>
</div>FWIW, the CMake build doesn't use them anywhere. I just don't like<br>
copying the autodetection all over the place. The trouble is that even<br>
after wrapping up the autodetection, we still have to find it.</blockquote><div><br></div><div>I guess it comes down to what horrifies you more:</div><div><br></div><div> a) Changing the Python installation (I hate this)</div>
<div><br></div><div> b) Having 25 lines of boilerplate in every toplevel script</div><div><br></div><div> c) Requiring that you run it in a known place (Jed hates this)</div><div><br></div><div> Matt</div><div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><font color="#888888"><br>
Jed</font></blockquote></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener<br>