Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install plone.recipe.command

How to install plone.recipe.command

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install plone.recipe.command
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.1 Available View build log
Windows (64-bit)
1.1 Available View build log
Mac OS X (10.5+)
1.1 Available View build log
Linux (32-bit)
1.1 Available View build log
Linux (64-bit)
1.1 Available View build log
 
Author
License
GPL
Dependencies
Lastest release
version 1.1 on Jan 5th, 2011

Introduction

The plone.recipe.command buildout recipe allows you to run a command when a buildout part is installed or updated. It is very easy to use:

[buildout]

System Message: ERROR/3 (<string>, line 8)

Inconsistent literal block quoting.

parts = command

[command] recipe = plone.recipe.command command = cat README.txt

This configures a buildout part called command which lists the contents of README.txt when it is installed.

Reference

Unless otherwise specified all commands are run in the directory in which buildout is invoked. Commands have to be present in the PATH or be specified using an absolute pathname.

The following options are supported:

command Command to run when the buildout part is installed.

update-command Command to run when the buildout part is updated. This happens when buildout is run but the configuration for this buildout part has not changed.

location A list of filesystem paths that buildout should consider as being managed by this buildout part. These will be removed when buildout (re)installs or removes this part.

stop-on-error When yes, on or true, buildout will stop if the command ends with a non zero exit code.

Changes

1.1 - 2010-02-25
  • Added stop-on-error option to stop buildout on non zero return code of

System Message: WARNING/2 (<string>, line 52)

Bullet list ends without a blank line; unexpected unindent.

the command. [fschulze]

  • Use subprocess instead of os.system.

System Message: WARNING/2 (<string>, line 56)

Bullet list ends without a blank line; unexpected unindent.

[fschulze]

1.0 - 2007-09-14
  • Initial release.

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:4

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.