The PySimulators package is under the CECILL-B license, a BSD-like free software license, with a citation requirement. The source code and development is hosted at github. The current version of the PySimulators package is 1.0, and it is still in beta stage.
The pip program allows the installation of Python packages from the internet. It is recommended to use it instead of easy_install, which cannot uninstall packages. If pip
is not installed, but easy_install
is (or easy_install-2.7
), the latter can be used to install the former. First, check that easy_install
actually runs the Python interpreter you’re using, by inspecting its first first line of code. Then, type
$ sudo easy_install pip
Some number-crunching parts are written in modern Fortran. Currently gfortran >=4.5 is required.
$ sudo apt-get install gfortran
First, make sure that Xcode and MacPorts are installed (and make sure that /opt/local/bin is in your PATH
). Then search for and install the latest stable gcc version:
$ port search --glob "gcc??"
...skipped...
gcc47 @4.7.3_3 (lang)
The GNU compiler collection
gcc48 @4.8.2 (lang)
The GNU compiler collection
gcc49 @4.9-20140416 (lang)
The GNU compiler collection, prerelease BETA
$ sudo port install gcc_select gcc48
$ sudo port select --set gcc mp-gcc48
$ sudo apt-get install libfftw3-dev
$ sudo pip install pyFFTW
$ sudo port install py-pyfftw
$ sudo port install fftw-3 fftw-3-long fftw-3-single
$ sudo CPATH=/opt/local/include LIBRARY_PATH=/opt/local/lib pip install pyFFTW
The easiest way to download and install the PySimulators package is by using pip. It will fetch the package and its dependencies from the Python Package Index and install them.
$ pip install --user pysimulators
To upgrade the PySimulators package if it is already installed in the user site:
$ pip install --user --upgrade pysimulators
Note that the --upgrade
option will attempt to uninstall the previously installed version. The whole process may fail if you don’t have the proper permissions to do so.
You can also clone the Github repository, using the version control system Git:
$ git clone git://github.com/pchanial/pysimulators
$ pip install --user ./pysimulators
This method is convenient to test PySimulators’ development branch but package dependencies must be installed beforehand (see the setup.py file for the list of requirements). The package can be updated by typing (if you’ve just cloned the repository, you will obviously not get anything new):
$ git pull
Already up-to-date.