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.
build-essential
- building python needs gcc and related headers.
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 | [] |
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"]
}
}
}
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write you change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
Authors: Takayuki Shimizukawa License: Apache 2.0