<div dir="ltr"><div dir="ltr">On Tue, Feb 12, 2019 at 8:10 PM Balay, Satish <<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">spack is central to xsdk project - which supports petsc.<br></blockquote><div><br></div><div>Design mistakes are fine, but they should be corrected.</div><div><br></div><div>   Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Satish<br>
<br>
On Tue, 12 Feb 2019, Matthew Knepley via petsc-dev wrote:<br>
<br>
> Why are we supporting this? Spack seems to generate a string of maint<br>
> requests while providing marginal value at best.<br>
> <br>
>    Matt<br>
> <br>
> ---------- Forwarded message ---------<br>
> From: Greg Burgreen via petsc-maint <<a href="mailto:petsc-maint@mcs.anl.gov" target="_blank">petsc-maint@mcs.anl.gov</a>><br>
> Date: Tue, Feb 12, 2019 at 7:53 PM<br>
> Subject: Re: [petsc-maint] [spack] Petsc build with Python3<br>
> To: petsc-maint <<a href="mailto:petsc-maint@mcs.anl.gov" target="_blank">petsc-maint@mcs.anl.gov</a>><br>
> Cc: <a href="mailto:elizabeth.fischer@columbia.edu" target="_blank">elizabeth.fischer@columbia.edu</a> <<a href="mailto:elizabeth.fischer@columbia.edu" target="_blank">elizabeth.fischer@columbia.edu</a>>, Jed<br>
> Brown <<a href="mailto:jedbrown@mcs.anl.gov" target="_blank">jedbrown@mcs.anl.gov</a>><br>
> <br>
> <br>
> petsc@develop worked with python-3.7.2, Satish. Thank you. The "No module<br>
> named site" error did not have 'python2' in the PATH, only 'python3'.<br>
> <br>
> Elizabeth, approach #2 got me very close, but there were a few minor issues<br>
> in that commit (for instance, the use of a deprecated string.replace in<br>
> config/PETsc/Configure.py).<br>
> <br>
> Greg<br>
> <br>
> On Tue, Feb 12, 2019 at 6:34 PM Balay, Satish <<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>> wrote:<br>
> <br>
> > On Tue, 12 Feb 2019, Jed Brown via petsc-maint wrote:<br>
> ><br>
> > > Petsc4py should work fine with Python-3 (has for quite a while).  The<br>
> > > next PETSc release is due next month, give or take.  You can use<br>
> > > petsc@master in the mean time.<br>
> ><br>
> > This is petsc@develop - in spack notation. This is fixed to work with<br>
> > python3.<br>
> ><br>
> > [and petsc4py@develop should now default to using petsc@develop]<br>
> ><br>
> > > >>> On Tue, Feb 12, 2019 at 6:28 PM Greg Burgreen <<br>
> > <a href="mailto:greg.burgreen@gmail.com" target="_blank">greg.burgreen@gmail.com</a>><br>
> > > >>> wrote:<br>
> > > >>><br>
> > > >>>> I am using the latest development version of spack (commit f65a115).<br>
> > > >>>><br>
> > > >>>> The spack recipe for petsc builds fine with python-2.7-x.<br>
> > > >>>><br>
> > > >>>> When I modify the petsc package to build using python-3.x, I get<br>
> > > >>>> "ImportError: No module named site."<br>
> > > >>>><br>
> > > >>>> I changed only one line in the petsc package to:<br>
> > > >>>><br>
> > > >>>>    depends_on('python@3.4:', type='build', when='@:3.10.99')<br>
> ><br>
> > This is a strange error. It should work [with petsc-3.10.x] if you have<br>
> > 'python2' in PATH.<br>
> ><br>
> > Satish<br>
> ><br>
> ><br>
> <br>
> <br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>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</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>