[petsc-dev] easyinstall for petsc4py
Barry Smith
bsmith at mcs.anl.gov
Thu Aug 5 13:16:49 CDT 2010
On Aug 5, 2010, at 9:59 AM, Matthew Knepley wrote:
> On Thu, Aug 5, 2010 at 9:56 AM, Lisandro Dalcin <dalcinl at gmail.com> wrote:
> On 5 August 2010 00:39, Lisandro Dalcin <dalcinl at gmail.com> wrote:
> > On 4 August 2010 12:44, Barry Smith <bsmith at mcs.anl.gov> wrote:
> >>
> >> Lisandro,
> >>
> >> We would like to help you make it possible for petsc4py to be installed by easyinstall and automatically install PETSc with it, thus making it trivial for Python users to start using petsc4py. How can we help make this happen?
> >>
> >
> > $ export PETSC_DIR=/path/to/petsc
> > $ export PETSC_ARCH=arch-name
> > $ easy_install petsc4py
> >
> > This should work and be enough (at least on Linux)...
> >
>
> I confirm this works out of the box (on Linux) for prefix installs and
> non-prefix builds of petsc-3.1
>
> All this assuming a previous installation/build of PETSc is available.
> Barry, Do you actually mean that "easy_install petsc4py" should handle
> the download and build of core PETSc?
>
As Matt says in too many words "absolutely"
We'd like to remove all the pain of using petsc4py so it will be trivially used with packages like SAGE and Scipy etc. It is too painful now for Python users since it requires installing PETSc manually.
The reason I want to look for mpi4py is to determine what MPI it was built with so PETSc would be built with the same MPI (and hence can be used with mpi4py).
Barry
> What I was hoping for is something along the lines of Atlas in numpy. If
> we find PETSc, use it. If not, do we find mpi4py? If so, use that and
> build plain vanilla PETSc. If not, build PETSc with mpiuni. That way, it
> will always work out of the box for everyone, and for savvy users, it does
> the right thing too.
>
> Matt
>
> --
> Lisandro Dalcin
> ---------------
> CIMEC (INTEC/CONICET-UNL)
> Predio CONICET-Santa Fe
> Colectora RN 168 Km 472, Paraje El Pozo
> 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/20100805/3827abc1/attachment.html>
More information about the petsc-dev
mailing list