Hi All,
After a ridiculously long delay, the install script for dedalus is finally ready for testing. This install script is based heavily on the yt install script. It is designed to make the full stack required for running Dedalus in parallel on a variety of machines. It is *not* designed to provide the absolute fastest performance possible. My goal with this is to help new users get started, especially on small machines like laptops and desktops. For supercomputing centers and larger high-performance clusters, we should probably continue to update the directions on the website.
It works by first detecting the running operating system, then prompting the user to install several prerequisite packages, either by the system's package manager (if on linux), or manually (if on OSX). Once the user has done this, hitting enter will cause the script to download, from
dedalus-project.org, the required software stack, including openmpi (if necessary), python, numpy, scipy, FFTW, HDF5 (if necessary), and freetype (if necessary). After installing all of these packages, the scrip then pip installs nose, mpi4py, h5py, cython, matplotlib, sympy, and optionally ipython. The script does not rely on homebrew for OS X. If you're on OS X, this will also include an OpenMPI install. If you're
on linux, we assume you've installed OpenMPI via your package manager.
After the install script successfully completes, the user then enters
$ source path/to/dedalus_x86-64/bin/activate
and, just as in virtualenv, you are in an environment that includes a python3 with dedalus ready to go.
I've tested it on two Ubuntu 14.04 systems (including that the required packages are complete if you have a totally fresh installation), and one OS X 10.8.5 system. However, I have not completed the script for any linux distribution other than Ubuntu (Red Hat, Debian, OpenSUSE, etc), though stubs are in there. I should note that all this means is that the script will not correctly tell you what packages to install. If you have them installed, it should *work* just fine.
to somewhere you'd like to install Dedalus, and do
$ bash install.sh
The install it makes will be completely self-contained, so you can just delete the directory it makes, and everything will be back the way you were before.
I've isseued a PR, but please consider it work in progress until we get some more testing done. Please let me know of any problems via comments on the PR.
thanks,
j