On 15 November 2010 22:07, Matthew Knepley <knepley at gmail.com> wrote: > On Tue, Nov 16, 2010 at 11:58 AM, Srinath Vadlamani <srinath at txcorp.com> > wrote: >> >> It seems now that petsc4py must be built during a petsc configure/build. >> ?Is this correct? ?I was hoping to install petsc4py in the same location as >> my other python builds, so that I only have to specify one location in my >> PYTHONPATH. > > I also prefer independent installs: > ??1) Clone the petsc4py-dev repo > ??2) make cython (you need Cython 0.13) > ??3) python setup.py sdist > ??4) pip install dist/petsc4py.*.tar.gz --install-option="--user" > which will install it under ~/.local. You can also omit the option to > install it in the default place.
In case you do not have "pip" installed, you can also: $ python setup.py install --user (However, I really recommend you to "pip install --user <package>" for managing all your non-distro Python packages) -- 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
