[PD, ZCM and DA - Latest version, December 21, 1998]
Notice: There have been bugs reported when loading on a platform where there is a native version of the BLAS or LAPACK. Somehow there is a confusion between different versions of the routines. Please be sure to alter the file Setup to remove the files indicated from the build of module lapack_lite and to set the location of your libraries appropriately if working on such a platform.
This document is aimed at those building the LLNLPython distribution from source. This distribution includes several packages (not in the Python sense, just in the sense of 'collection of modules').
For each package there are some Pythons scripts to install, and for all but PyHistory, there are some C or C++ files to compile.
Compilation and Installation in a sketch:
[../LLNLPython] cd Numerical
[../LLNLPython/Numerical] python makethis.py
[../LLNLPython/Numerical] python installthis.py
[../LLNLPython/Numerical] cd ../CXX
[../LLNLPython/CXX] python makethis.py
[../LLNLPython/CXX] python installthis.py
[../LLNLPython/CXX] cd ../PyPDB
etc...
or, in words:
Perform the following two steps in each subdirectory of the LLNLDistribution directory which has a Src subdirectory you wish to build.
Installation involves moving both the shared libraries (on UNIX, these files typically end with .so or .sl, and should be created by the makethis process in the root directory of each package) and the Python source files (in the Lib subdirectory(ies)) to any directory in your path. You can either do this by hand, or by executing python installthis.py in the root directory of each package.
c:\wherever> python makethis.py
c:\wherever> msdev workspace.dsw
[Go to "Build", pull down "Batch Build", do "Build All",
exit DevStudio]
On Windows, the shared libraries are produced in a subdirectory named "pyds". A .pyd file is a Windows DLL renamed to have the .pyd extension, which Python recognizes as corresponding to a dynamically loadable Python module.
Running:
c:\wherever> python installthis.py
should create a directory C:\Program Files\LLNLDistribution\
(Note: this is for source builders only; if you are using the Windows installer the path is set correctly in the registry.)
Please send feedback about the automatic scripts to da@python.net.