Skip to content

This cookbook build and install python versions from official source.

Notifications You must be signed in to change notification settings

jlope001/chef-python-build

 
 

Repository files navigation

python-build Cookbook

This cookbook build and install several python versions from official source. Python-2.4, 2.5, 2.6, 2.7, 3.0, 3.1, 3.2, 3.3. however 3.0 is limited work with 'packages' attribute.

Requirements

cookbook

  • build-essential - building python needs gcc and related headers.

Attributes

python-build::default

Key Type Description Default
["python_build"]["archive_url_base"] string Python source file location. python official site is default. nil
["python_build"]["install_prefix"] string Install path prefix "/usr/local"
["python_build"]["versions"] string Install versions list. If you want to specify default version of python then it place last of the list. for example: `"versions": ["2.5.6", "3.3.1", "2.7.3"]` []
["python_build"]["packages"] string Install python 3rd-party package list. "setuptools" will install by default. BTW setuptools did not support Python-3.0 then this feature did not work when specify '3.0.x' in versions. []
["python_build"]["owner"] string Install file/directory owner. "root"
["python_build"]["group"] string Install file/directory group. "root"
["python_build"]["find_links"] string list of package urls for easy_install -f []

Usage

python-build::default

Include python-build in your node's run_list and specify python_build attributes:

{
  "name":"my_node",
  "run_list": [
    "recipe[python-build]"
  ],
  "override_attributes" : {
    "python_build": {
      "versions" : ["2.6.8", "2.7.3", "3.2.3", "3.3.0"],
      "packages" : ["pip", "tox", "virtualenv"]
    }
  }
}

Contributing

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write you change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request using Github

License and Authors

Authors: Takayuki Shimizukawa License: Apache 2.0

About

This cookbook build and install python versions from official source.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%