[petsc-dev] Fwd: [petsc-maint #70591] Are the petsc4py directions current?

Matthew Knepley knepley at gmail.com
Mon Apr 18 18:26:54 CDT 2011


On Mon, Apr 18, 2011 at 6:24 PM, Lisandro Dalcin <dalcinl at gmail.com> wrote:

> On 17 April 2011 14:19, Barry Smith <bsmith at mcs.anl.gov> wrote:
> >
> >
> > Begin forwarded message:
> >
> > From: Jed Brown <jed at 59A2.org>
> > Date: April 17, 2011 12:14:03 PM CDT
> > To: petsc-maint <petsc-maint at mcs.anl.gov>
> > Subject: [petsc-maint #70591] Are the petsc4py directions current?
> > Reply-To: petsc-maint at mcs.anl.gov, Jed Brown <jed at 59A2.org>
> >
> >
> http://www.mcs.anl.gov/petsc/petsc-as/documentation/faq.html#install-petsc4py-dev
> >
> > I just had a (Mac) user tell me that this isn't working. He was silently
> > getting some much older install of petsc4py that he had forgotten about,
> so
> > we ended up wasting some time before confirming that he really had not
> > loaded petsc4py dev.
> >
> > When someone follows this procedure, where does petsc4py actually go?
> >
> >
> http://www.mcs.anl.gov/petsc/petsc-as/documentation/faq.html#install-petsc4py-dev
> > I just had a (Mac) user tell me that this isn't working. He was silently
> > getting some much older install of petsc4py that he had forgotten about,
> so
> > we ended up wasting some time before confirming that he really had not
> > loaded petsc4py dev.
> > When someone follows this procedure, where does petsc4py actually go?
> >
>
> Well, these instructions are a bit outdated. The 'make cython' step is
> not required, Cython is run automatically. And I never use the
> --download-petsc4py stuff. This should be as easy as:
>
> $ pip install Cython # or manual "python setup.py install" from tarball
> $ hg clone https://petsc4py.googlecode.com/hg/ petsc4py-dev
> $ export PETSC_DIR=/path/to/petsc-dev PETSC_ARCH=arch-xxx ARCHFLAGS=""
> $ python setup.py install --user
>
> # Using --user with Python >=2.6, gets installed at
> ~/.local/lib/python2.6/site-packages, this is automatically added to
> Python's sys.path.
>
> However, this model is perhaps more appropriate for PETSc releases,
> for petsc-dev the --download-petsc4py could be more convenient for
> some users that also use petsc-3.1 on a regular basis. However, the
> instructions in the FAQ forget to ask users to set PYTHONPATH.
>

Nope, I use the above model for petsc-dev and its in my Chile slides.

   Matt


> --
> Lisandro Dalcin
> ---------------
> CIMEC (INTEC/CONICET-UNL)
> Predio CONICET-Santa Fe
> Colectora RN 168 Km 472, Paraje El Pozo
> 3000 Santa Fe, Argentina
> Tel: +54-342-4511594 (ext 1011)
> Tel/Fax: +54-342-4511169
>



-- 
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20110418/4384daf8/attachment.html>


More information about the petsc-dev mailing list