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 slapos.librecipe

How to install slapos.librecipe

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install slapos.librecipe
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.0.dev-r3958 Available View build log
1.0.dev-r3873 Available View build log
1.0.dev-r3652 Available View build log
1.0.dev-r3530 Available View build log
1.0.dev-r3493 Available View build log
1.0.dev-r3430 Available View build log
1.0.dev-r3326 Available View build log
Windows (64-bit)
1.0.dev-r3958 Available View build log
1.0.dev-r3873 Available View build log
1.0.dev-r3652 Available View build log
1.0.dev-r3530 Available View build log
1.0.dev-r3493 Available View build log
1.0.dev-r3430 Available View build log
1.0.dev-r3326 Available View build log
Mac OS X (10.5+)
1.0.dev-r3958 Available View build log
1.0.dev-r3873 Available View build log
1.0.dev-r3652 Available View build log
1.0.dev-r3530 Available View build log
1.0.dev-r3493 Available View build log
1.0.dev-r3430 Available View build log
1.0.dev-r3326 Available View build log
Linux (32-bit)
1.0.dev-r3958 Available View build log
1.0.dev-r3873 Available View build log
1.0.dev-r3652 Available View build log
1.0.dev-r3530 Available View build log
1.0.dev-r3493 Available View build log
1.0.dev-r3430 Available View build log
1.0.dev-r3326 Available View build log
Linux (64-bit)
1.0.dev-r3958 Available View build log
1.0.dev-r3873 Available View build log
1.0.dev-r3652 Available View build log
1.0.dev-r3530 Available View build log
1.0.dev-r3493 Available View build log
1.0.dev-r3430 Available View build log
1.0.dev-r3326 Available View build log
 
License
GPLv3
Lastest release
version 1.0.dev-r3958 on Jan 29th, 2011

Egg, which contains all needed requirements, libraries and parent classes for easy slap.recipe.* creation.

How to use?

In setup.py of recipe add only one install requires to slap.librecipe.

In code itself subclass from slap.librecipe.BaseSlapRecipe.BaseSlapRecipe.

Use _install hook:

from slap.librecipe.BaseSlapRecipe import BaseSlapRecipe

class Recipe(BaseSlapRecipe):

... def _install(self):

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

Unexpected indentation.
# refer below for list of available objects specific code of recipe

Available variables self.:

  • name and options passed by zc.buildout during init
  • work_directory -- buildout's directory
  • bin_directory -- places for generated binaries
  • running_wrapper_location -- filename of wrapper to create
  • data_root_directory -- directory container for data -- inside this directory it is advised to create named directories for provided servers which needs data
  • var_directory -- container for various, unix following things: * log_directory -- container for logs * run_directory -- container for pidfiles and sockets
  • etc_directory -- place to put named files and directories of configuration for provided servers
  • computer_id -- id of computer
  • computer_partition_id -- if of computer partition
  • server_url - url of Vifib server
  • software_release_url -- url of software release being instantiated
  • slap -- initialised connection to Vifib server
  • computer_partition -- initialised connection to computer partition
  • request -- shortcut to computer partition request method

By default all directories are created before calling _install hook.

In case if subclass would like to change the structure of directories _createDefaultDirectoryStructure method shall be overloaded.

Available helper methods:
  • _writeFile
  • _createDirectory
  • _createRunningWrapper Before calling self.wrapper_template_location shall be set (eg. by pkg_resources.resource_filename)

_install method shall return list of paths which are safe to be removed by buildout during part uninstallation.

1.0 (unreleased)

Subscribe to package updates

Last updated Jan 29th, 2011

Download Stats

Last month:1

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.