installation on Mac OS X Yosemite
Hi,
I don't know if it is a problem with the last version of Mac OS X, but I don't manage to build petsc4py
I have succesfully installed mpi4py and upgraded numpy. I built PETSc recently with version 3.5
Then I ran
pip install petsc petsc4py
but got the message
Downloading/unpacking petsc
Could not find any downloads that satisfy the requirement petsc
Some externally hosted files were ignored (use --allow-external petsc to allow).
Cleaning up...
No distributions at all found for petsc
Storing debug log for failure in /Users/timotheenicolas/.pip/pip.log
Just in case, I attached the log file.
So I tried just
pip install petsc4py
It said it compiled succesfully, but actually complained about not finding the PETSC_DIR, although it is exported to /Users/timotheenicolas/PETSC/petsc-3.5.3
Then when I try to use it in python I get messages like
ImportError: invalid 'PETSC_ARCH': 'arch-darwin-c-debug'
So after googling around I found other people had similar issue and a possible work around :
https://code.google.com/p/petsc4py/issues/detail?id=24 where it is said to build python with
ARCHFLAGS='-arch x86_64' PETSC_DIR=/Users/buildbot/data/opt/petsc-3.3-p3 python setup.py build
So I git-cloned the repositery version and implemented the command after replacing PETSC_DIR my its value on my machine, but I got the error message
error: /Users/timotheenicolas/PETSC/petsc-3.5.3/lib/petsc/conf/petscvariables: No such file or directory
Which seems to indicate that petsc does not comply with the structure of my PETSc version 3.5 build.
How could I overcome this issue ?
Best
Comments (3)
-
-
This should work:
pip install https://bitbucket.org/petsc/petsc/get/maint.tar.gz pip install petsc4py
-
- changed status to resolved
- Log in to comment
pip
is still a moving target, supporting it has always been a headache. I'm working right now on getting this working for petsc-3.6.0 and petsc4py/maint (to be released soon as petsc4py-3.6.0).