pythonbrew Cookbook
Installs pythonbrew for specified user
Requirements
patch
, curl
, and sed
utilities required
Attributes
Key | Type | Description | Default |
---|---|---|---|
['pythonbrew']['user'] | String | System user to install pythonbrew for. If is set to "root" (default) - will install system-wide. | root |
['pythonbrew']['HOME'] | String | User home path. For "root" user - "/root" path is hardcoded. | /home/%user% |
['pythonbrew']['setups'] | Arrau | Array of python brew installations, check attributes/default.rb for example. | [] |
Usage
Include pythonbrew
in your node's run_list
and add "setups" to configuration:
{
"name":"my_node",
"run_list": [
"recipe[pythonbrew]"
],
"pythonbrew": {
"setups": [
{
"user": "vagrant",
"python_version": "2.7.3",
"python_is_default": true,
"venv": "my_site",
"packages": ["pymongo", {"name": "django", "version": "1.1.4"}]
}
]
}
}
Contributing
- 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
License and Authors
Authors: lostintime.dev@gmail.com
Licensed under MIT license
http://opensource.org/licenses/MIT