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.24.tar.gz (7.7 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.24-py2.7.egg (19.7 kB view details)

Uploaded Egg

File details

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

File metadata

File hashes

Hashes for as.recipe.frozenpkg-0.2.24.tar.gz
Algorithm Hash digest
SHA256 cede608246b750e2de4806d8dc4ecdaa5d3eb37320353e930355758ba2362d03
MD5 9a6487894cd7e9ec58928e9a795e67bb
BLAKE2b-256 f8be68f6fe251734a66b0a47f8e82c8636950b66e1e25480d1658dfe76383914

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for as.recipe.frozenpkg-0.2.24-py2.7.egg
Algorithm Hash digest
SHA256 4b13dff7516fd92d3d9930943f118ea613205880d1d7819abb44362456b54907
MD5 2d0ef59202b2bf83be1b8080271ea974
BLAKE2b-256 c51d9a1b38133c48dd906c05e18ceea2cf80ba1fd8385c901108cbca5792521e

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