[petsc-dev] Fwd: [petsc-maint] [spack] Petsc build with Python3

Matthew Knepley knepley at gmail.com
Tue Feb 12 19:41:49 CST 2019


On Tue, Feb 12, 2019 at 8:10 PM Balay, Satish <balay at mcs.anl.gov> wrote:

> spack is central to xsdk project - which supports petsc.
>

Design mistakes are fine, but they should be corrected.

   Matt


> Satish
>
> On Tue, 12 Feb 2019, Matthew Knepley via petsc-dev wrote:
>
> > Why are we supporting this? Spack seems to generate a string of maint
> > requests while providing marginal value at best.
> >
> >    Matt
> >
> > ---------- Forwarded message ---------
> > From: Greg Burgreen via petsc-maint <petsc-maint at mcs.anl.gov>
> > Date: Tue, Feb 12, 2019 at 7:53 PM
> > Subject: Re: [petsc-maint] [spack] Petsc build with Python3
> > To: petsc-maint <petsc-maint at mcs.anl.gov>
> > Cc: elizabeth.fischer at columbia.edu <elizabeth.fischer at columbia.edu>, Jed
> > Brown <jedbrown at mcs.anl.gov>
> >
> >
> > petsc at develop worked with python-3.7.2, Satish. Thank you. The "No
> module
> > named site" error did not have 'python2' in the PATH, only 'python3'.
> >
> > Elizabeth, approach #2 got me very close, but there were a few minor
> issues
> > in that commit (for instance, the use of a deprecated string.replace in
> > config/PETsc/Configure.py).
> >
> > Greg
> >
> > On Tue, Feb 12, 2019 at 6:34 PM Balay, Satish <balay at mcs.anl.gov> wrote:
> >
> > > On Tue, 12 Feb 2019, Jed Brown via petsc-maint wrote:
> > >
> > > > Petsc4py should work fine with Python-3 (has for quite a while).  The
> > > > next PETSc release is due next month, give or take.  You can use
> > > > petsc at master in the mean time.
> > >
> > > This is petsc at develop - in spack notation. This is fixed to work with
> > > python3.
> > >
> > > [and petsc4py at develop should now default to using petsc at develop]
> > >
> > > > >>> On Tue, Feb 12, 2019 at 6:28 PM Greg Burgreen <
> > > greg.burgreen at gmail.com>
> > > > >>> wrote:
> > > > >>>
> > > > >>>> I am using the latest development version of spack (commit
> f65a115).
> > > > >>>>
> > > > >>>> The spack recipe for petsc builds fine with python-2.7-x.
> > > > >>>>
> > > > >>>> When I modify the petsc package to build using python-3.x, I get
> > > > >>>> "ImportError: No module named site."
> > > > >>>>
> > > > >>>> I changed only one line in the petsc package to:
> > > > >>>>
> > > > >>>>    depends_on('python at 3.4:', type='build', when='@:3.10.99')
> > >
> > > This is a strange error. It should work [with petsc-3.10.x] if you have
> > > 'python2' in PATH.
> > >
> > > Satish
> > >
> > >
> >
> >
>
>

-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener

https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20190212/64c3284e/attachment.html>


More information about the petsc-dev mailing list