Skip to main content

UGE Python Configuration Library

Project description

  1. Copyright 2016-2024 Altair Engineering Inc. Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License.

    You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

    See the License for the specific language governing permissions and limitations under the License.

UGE Python Configuration Library

Prerequisites

UGE PyCL requires recent versions of the following software:

  1. UGE (8.3.1p9, 8.4.0, or later)

  2. Python (v2.7.5 or later in v2.7 series)

  3. Setuptools (0.9.8 or later; for egg installation)

  4. Nose (1.3.7 or later; for testing)

  5. Sphinx (1.1.3 or later; for generating documentation)

  6. 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:

  1. 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.

  1. Source the appropriate UGE setup file:

$ source <SGE_ROOT>/<SGE_CELL>/settings.sh
  1. List queues using QconfApi object:

$ python -c "from uge.api import QconfApi; api = QconfApi(); print api.list_queues()"

Running Test Suite

  1. 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.

  1. Source the appropriate UGE setup file:

$ source <SGE_ROOT>/<SGE_CELL>/settings.sh
  1. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uge-pycl-8.11.0.tar.gz (74.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uge_pycl-8.11.0-py2.py3-none-any.whl (155.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file uge-pycl-8.11.0.tar.gz.

File metadata

  • Download URL: uge-pycl-8.11.0.tar.gz
  • Upload date:
  • Size: 74.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/60.2.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.23

File hashes

Hashes for uge-pycl-8.11.0.tar.gz
Algorithm Hash digest
SHA256 786aeb12236c9ac7124dfabdc5ce8be0f4bab8f95f6db85fc8a20de9e8f719ac
MD5 59a0f3a6e87a79f36ce81bc728f4573e
BLAKE2b-256 7730ef082490de4bb30fa8adcbd441904cfa51c840c2736a380364a354e06b0b

See more details on using hashes here.

File details

Details for the file uge_pycl-8.11.0-py2.py3-none-any.whl.

File metadata

  • Download URL: uge_pycl-8.11.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 155.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/60.2.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.23

File hashes

Hashes for uge_pycl-8.11.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8a98de05cf6bd6f03c9f0dd79f43803827c4d9d9c219b4ff96cb768e1f08cfcd
MD5 2605a99a998c30dc36bc91b958336f3e
BLAKE2b-256 c03f7b24babc96087f4e0d5db00f3d5df85ab4243e46970473be51f212ea54e1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page