Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shimizukawa/chef-python-build
This cookbook build and install python versions from official source.
https://github.com/shimizukawa/chef-python-build
Last synced: about 1 month ago
JSON representation
This cookbook build and install python versions from official source.
- Host: GitHub
- URL: https://github.com/shimizukawa/chef-python-build
- Owner: shimizukawa
- Created: 2013-01-23T02:00:39.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-10-22T14:16:42.000Z (about 10 years ago)
- Last Synced: 2024-10-03T23:15:08.976Z (about 2 months ago)
- Language: Ruby
- Size: 330 KB
- Stars: 10
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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"]["configure_options"]
array
configure options
['--enable-shared']
["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::defaultInclude `python-build` in your node's `run_list` and specify `python_build` attributes:
```json
{
"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 GithubLicense and Authors
-------------------
Authors: Takayuki Shimizukawa
License: Apache 2.0