This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Installing additional packages with hashdist

+2 votes

Hi:

I am installing Fenics with hashdist:

curl -s http://fenicsproject.org/fenics-install.sh | bash

with good results. However, I need to add another package (scipy).

Can anyone tell me how to add a pacakge?

Thanks!

asked Aug 24, 2015 by jessejohnson FEniCS Novice (150 points)

2 Answers

+3 votes

The easiest way to add additional packages, is probably to download fenics-developer-tools, set up a custom profile and run fenics-install.sh with this profile:

git clone https://bitbucket.org/fenics-project/fenics-developer-tools.git
cd fenics-developer-tools
editor install/profiles/fenics.Linux.yaml  # add scipy 
./install/fenics-install.sh install/profiles/fenics.Linux.yaml

Use fenics.Darwin.yaml instead of fenics.Linux.yaml if you are running OS X.

PS: I am currently writing some more detailed instructions about this, which will be added to the website soon.

answered Aug 25, 2015 by johannr FEniCS Expert (17,350 points)

Thank you johannr. I prefer this answer because it seems to be more consistent with hashdist approach.

+2 votes

You can build SciPy using the python interpreter from the hashdist profile as suggested in this answer (depending on your system this might also be the easiest way to circumvent any encoding conflicts).
Download the SciPy source (at the moment this is version 0.16), extract and cd into the folder. With the python interpreter from your hashdist installation (enable with source fenics.stable) type

 python setup.py install --prefix=$HOME/.hashdist/bld/profile/$PROFILE/

Check also the build instructions for SciPy.

answered Aug 25, 2015 by konstantin FEniCS Novice (900 points)
...