Skip to main content

ZC Buildout recipe for freezing buildouts in RPM's, tar.gz's, etc

Project description

Introduction
============

This recipe enables you to freeze your buildout in a RPM, tgz's, etc.
You can specify the package details, the installation prefix, and the eggs and
scripts that must be copied to the package.

Only RPM packing is currently implemented.

This recipe is EXPERIMENTAL and quite unstable, so use at your own risk...

.. contents::

- PyPI page: http://pypi.python.org/pypi?:action=display&name=as.recipe.frozenpkg

Options
=======

pkg-name
Mandatory. The package name.

pkg-version
The package version.

pkg-vendor
The package vendor.

pkg-packager
The packager.

pkg-url
The package URL.

pkg-license
The license.

pkg-deps
Package dependencies. It must be a space-separated list of RPM packages.

pkg-prefix
The installation prefix. Default: /opt/pkg-name

pkg-pre-install
Shell commands to run before installing the RPM

pkg-post-install
Shell commands to run after installing the RPM

eggs
The list of eggs that must be copied to the RPM package.

eggs-skip
A list of eggs to always skip when copying to the package.

scripts
The scripts that will be copied to the package. Tese scripts will have their paths relocated to the installation prefix.

extra-dirs
Any additional directories to create in the package (ie, _"logs"_).

extra-copies
Any additional extra copies. They must be specified as "orig -> dest", where orig can be any valid glob expression, and dest must be a path relative to install-prefix.

extra-cleanups
Any additional files that must be removed in the package.




Example
=======


[rpm]
recipe = as.recipe.frozenpkg:rpm
pkg-name = testapp
pkg-version = 1.0
pkg-vendor = The Vendor
pkg-packager = My Company
pkg-url = http://www.mycomp.com
pkg-license = GPL
pkg-deps =
libevent
openssl
pkg-prefix = /opt/testapp
pkg-pre-install =
echo "Installing at ${buildout:pkg-prefix}"

pkg-post-install =
echo "Installed at ${buildout:pkg-prefix}"

eggs = ${main:eggs}

eggs-skip =
pip
extra-copies =
/usr/local/lib/mylib.so -> lib/
/usr/local/lib/myextras*.so -> lib/
conf/some-local-config.cfg -> conf/
extra-dirs =
logs
var/run
extra-cleanups =
bin/activate.*

debug = yes

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

as.recipe.frozenpkg-0.2.22.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

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

as.recipe.frozenpkg-0.2.22-py2.7.egg (19.5 kB view details)

Uploaded Egg

File details

Details for the file as.recipe.frozenpkg-0.2.22.tar.gz.

File metadata

File hashes

Hashes for as.recipe.frozenpkg-0.2.22.tar.gz
Algorithm Hash digest
SHA256 f1fb9f4b2a088e983f7237d6a3ee28396577514c75beebd4e6da89bd4f305bc7
MD5 963c44805828b0d69d418086f9043371
BLAKE2b-256 b1afa1a26a1da7b33773f6e1bbd6e2f0f69fd5081ae2fcdf52480298801d60b5

See more details on using hashes here.

File details

Details for the file as.recipe.frozenpkg-0.2.22-py2.7.egg.

File metadata

File hashes

Hashes for as.recipe.frozenpkg-0.2.22-py2.7.egg
Algorithm Hash digest
SHA256 01636711bf793914ad922c34c632dff019806c6c441b2090fb230bb113021adc
MD5 b8e92d2d80c172c96998bff479860158
BLAKE2b-256 c520b9d2258a1e8e92c28dac2becc1c5efd50078d3cdf73eb5b63719bc86476b

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