Skip to main content

Buildout recipe to check various dependencies are in place.

Project description

If you are relying on the OS to provide some facilities for your software, this recipe can help verify that the dependencies exist.

Right now this will check only two types of things:

  • If certain files exist in the filesystem and that they are executable

  • If certain locales are available on the system

For the latter this is done in quite a Debian/Ubuntu specific way, so may not work for you.

If any dependencies fail, the recipe will raise an exception immediately.

An example:

[foo]
program = /usr/sbin/foo

[bar]
binary = /usr/sbin/bar
locale = nl_NL.UTF-8

[dependencies]
recipe = isotoma.recipe.depcheck
executable =
    ${foo:program}
    ${bar:binary}
locale = ${bar:locale}

Parameters

executable

A list of one or more paths to files that must be executable

directory

A list of one or more paths to inodes that must exist and be directories

file

A list of one or more paths to inodes that must exist and be files

locale-file

The name of a file on disk to look for locales in (defaults to the Ubuntu location)

locale

A list of one or more locales to check are in locale-file

License

Copyright 2010 Isotoma Limited

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.

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

isotoma.recipe.depcheck-0.0.1.tar.gz (3.5 kB view hashes)

Uploaded Source

Supported by

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