Package osh :: Package command :: Module install
[frames] | no frames]

Module install

source code

install [-d INSTALL_DIRECTORY] [-p PACKAGE] DIRECTORY

install [-d INSTALL_DIRECTORY] [-p PACKAGE] PYTHON_MODULE ...

Installs Python modules a cluster. The cluster is identified using remote execution syntax, for example:

   osh @fred [ install ~/foobar.py ]

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 @fred [ install -p foo.bar ~/myproject/foo/bar ]

To install a single module, xyz, directly in site-packages:

   osh @fred [ install ~/myproject/util/xyz.py ]

Not available through the API.