Module install
source code
install [-c CLUSTER] [-d INSTALL_DIRECTORY] [-p PACKAGE]
DIRECTORY
install [-c CLUSTER] [-d INSTALL_DIRECTORY] [-p PACKAGE]
PYTHON_MODULE ...
Installs Python modules to each node of CLUSTER. If
-d is not specified, then installation is to the standard
site-packages directory (e.g. /usr/lib/python2.4/site-packages).
Otherwise, installation goes to INSTALL_DIRECTORY.
(INSTALL_DIRECTORY replaces the entire path, not just the
/usr or /usr/lib part of the path.) The
modules are identified as individual PYTHON_MODULEs, (i.e.
filenames ending in .py), or as a DIRECTORY
containing the modules of interest. In the latter case, the contents of
sub-directories will be copied also, as sub-packages of
PACKAGE.
Modules are installed into the remote site-packages
directory, in the subdirectory specified by PACKAGE, (or in
site-packages directly, if PACKAGE is
omitted).
For example, to install the local foo.bar package on
cluster fred:
osh install -c fred -p foo.bar ~/myproject/foo/bar
To install a single module, xyz, directly in
site-packages:
osh install -c fred ~/myproject/util/xyz.py
If CLUSTER is omitted, then installation is done
locally.
Not available through the API.