<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 14, 2015 at 12:21 PM, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
   PETSc is organized around the ./configure --prefix  ; make ; make install model we don't have true support for pass the prefix only at the install time. It looks like Python distutils setup.py is based on only knowing the --prefix info at install time?<br>
</blockquote></div><br></div><div class="gmail_extra">Yes, setup.py only needs to know prefix at install time, because the Python installation step is the only one that needs to know the prefix.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">This is not hard to fix.  At configure time, write down into setup.cfg the location you'd like to install to.  If no prefix command is given to setup at install time, it can look there.  This isn't currently in petsc4py, but it would be easy to add.<br></div></div>