Personal tools
You are here: Home Software ScientificPython Installation instructions
Document Actions

Installation instructions

by Konrad Hinsen last modified 2007-06-13 14:47

Prerequisites and installation procedure.

Prerequisites


In order to install ScientificPython, you must first have the following packages installed on your computer:


ScientificPython also contains interfaces to scientific libraries. If you want to build and use those interfaces, you must of course first install the libraries:
  • netCDF (use the option --enable-shared when running the configure script)
  • MPI (any MPI implementation should work)
  • BSPlib (only the Oxford BSP Toolset has been tested)


Basic installation procedure


The following procedure works in principle on all platforms, provided you have a C compiler that is supported by your Python distribution. This is usually the case on Unix systems.

  1. Unpack the distribution file:
    tar xzf ScientificPython-2.x.y.tar.gz
  2. Change to the distribution directory:
    cd ScientificPython-2.x.y
  3. Build ScientificPython components:
    python setup.py build
  4. Install ScientificPython (this may require administrator priviledges):
    python setup.py install

If the netCDF library is installed in a non-standard location on your computer, the ScientificPython installation procedure might not find it and thus not compile the netCDF interface module. In this case, there will be a warning message in step 3. You can tell ScientificPython where to find netCDF by replacing step 5 by
env NETCDF_PREFIX=/path/to/netcdf python setup.py build
The specified path has to contain include/netcdf.h and lib/libnetcdf.a (plus some other files).


Installation under Linux


Most modern Linux distributions contain Python, Numerical Python, and netCDF, although they are not necessarily installed by default. It is recommended to use the versions provided by the distribution. Note that many distributions choose to divide Python into two packages, the second one being called "python-devel" or "python-dev" and containing the parts of the Python installation that are necessary to compile add-on packages. You must install this as well.

Some Linux distributions, for example Debian, provide ScientificPython as well. Installing the distribution packages is of course the easiest way to get ScientificPython, but note that the distributions do not always contain the latest releases.

If you use an RPM-based Linux distribution (e.g. RedHat, Fedora, SuSE, Mandrake), you may wish to use RPM for installing MMTK as well. Due to the proliferation of not-quite-compatible RPM distributions, we do no longer provide ready-made RPM files. However, it is easy to create an RPM file that fits your system exactly:
  1. Unpack the distribution file:
    tar xzf ScientificPython-2.x.y.tar.gz
  2. Change to the distribution directory:
    cd ScientificPython-2.x.y
  3. Build the RPM file:
    python setup.py bdist_rpm


Installation on a Macintosh


MacOS X being a Unix variant, the above installation instructions can be applied to install directly from the source code distribution. The C compiler is provided by Apple's Xcode development environment, which must be installed on your computer.

If you use the Python interpreter from the Fink project, you can also get ScientificPython through Fink. However, you will rarely find the most recent releases of ScientificPython on Fink. Note that it is perfectly possible to install ScientificPython with Fink following the procedure described above.


Installation under Windows


Windows binary installers for ScientificPython are occasionally provided by Windows users and available from the download site. Please note that a Windows binary installer is always made for a specific Python version. If you use an installer for a Python version that you do not have installed, ScientificPython will not be available.

The ScientificPython developers do not have Windows machines, so we cannot provide Windows installers ourselves. If you cannot find a binary installer for the version of ScientificPython you would like to use, we recommend to install the Cygwin environment and its Python intepreter. Follow the instructions for Unix systems to install ScientificPython in a Cygwin environment.



Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: