UGE Python Configuration Library
Project description
Copyright 2016, 2017 Univa Corporation This software is licensed using Apache License 2.0 Please read the LICENSE file for a complete listing of the License.
UGE Python Configuration Library
Prerequisites
UGE PyCL requires recent versions of the following software:
UGE (8.3.1p9, 8.4.0, or later)
Python (v2.7.5 or later in v2.7 series)
Setuptools (0.9.8 or later; for egg installation)
Nose (1.3.7 or later; for testing)
Sphinx (1.1.3 or later; for generating documentation)
Standard development tools (make)
The software versions listed above were used for prototype development and testing, on CentOS 7.2 (64-bit). It is likely that any recent version of Python (such as those that come with current linux distributions) should work. UGE versions 8.3.1p9 or later or 8.4.0 and later will work with the Configuration API. Minor modifications to the code that checks versions will have to be made to support versions greater than 8.4.0.
Build
In the top level directory run:
$ make
The above command will create UGE PyCL egg package in the dist directory, which can be installed using the easy_install command. It will also run sphinx-build command and generate HTML documentation in the dist/doc/html directory.
Basic API Usage
For simple testing, without installing UGE PyCL egg package, do the following:
Setup PYTHONPATH environment variable to point to the top level directory:
$ export PYTHONPATH=<UGE_PYCL_ROOT>
Note that the above step is not needed if UGE PyCL egg package is installed.
Source the appropriate UGE setup file:
$ source <SGE_ROOT>/<SGE_CELL>/settings.sh
List queues using QconfApi object:
$ python -c "from uge.api import QconfApi; api = QconfApi(); print api.list_queues()"
Running Test Suite
Setup PYTHONPATH environment variable to point to the top level directory:
$ export PYTHONPATH=<UGE_PYCL_ROOT>
This step is not needed if UGE PyCL egg package is installed.
Source the appropriate UGE setup file:
$ source <SGE_ROOT>/<SGE_CELL>/settings.sh
Run test suite:
adjust test_values.json according to your needs, esp. the host_names have to be resolvable, otherwise some execution host tests might fail
$ make test
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for uge_pycl-8.6.16-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7461c84ca72dac9b07994b646636736a5821f46d8f9cd42073996bea58006b0c |
|
MD5 | e5440a37355191f3cdb8d9cfaf6d37f6 |
|
BLAKE2b-256 | 6c8c39a1a1b7883170440da5d68bea73a404adbfcf1ec74c3fb21e8c1d2af34c |