Obtaining
the Code
The program is available in tarball form from the PyQuante
download page. The SVN archive for the program is also at
Sourceforge, and is recommended for anyone wanting to
stay current with the codebase; information on how to
access the SVN archive is available here.
License
The software is released under the modified BSD license,
which means that everyone is free to download, use, and
modify the code without charge.
Prerequisites
You will need to have a recent (2.3 or later) version of
Python installed on your computer; this can be installed by
following instructions on the Python Website, and binary
packages exist for most platforms. Additionally, you need
the multidimensional arrays and linear algebra libraries
provided by either Numeric or numpy; both of these can be
downloaded from the Numpy Website.
Given the choice between Numeric and Numpy, please use
Numpy. The library is much newer, and future developments
will center on this library. Although we will make every
effort to continue supporting Numeric, Numpy is what we
will use as the default, and should be much more stable
with PyQuante.
Note: If you're installing on a Macintosh, I recommend the
Framework binaries of Python and Numpy from the Pythonmac Packages Directory.
Building
the Code
Much of the code is written in Python, and
thus is platform independent. The rest of the code now uses
the python distutils procedures for building the C modules.
Type
% (sudo) python
setup.py install
and the code should build and install
properly. I've tested this on Linux, Windows/Cygwin, and
Macintosh OS X. Installing the module like this will insure
that the modules are installed where Python can find them.
However, the above assumes that you have write priviledges
in the Python site-packages directory, possibly via the
_sudo_ command. If you do not have access to these
directories, create an install directory where you do have
access and pass this directory to the install process:
% mkdir
~/pyquante_lib
% python setup.py install --install-lib=~/pyquante_lib
% export PYTHONPATH=~/pyquante_lib:$PYTHONPATH
If this doesn't work for you, email me.