Installs and configures Python. Also includes LWRPs for managing python packages with pip
and virtualenv
isolated Python environments.
- Debian, Ubuntu
- CentOS, Red Hat, Fedora
- build-essential
- yum
NOTE: The yum
cookbook is a dependency of the cookbook, and will be used to install EPEL on RedHet/CentOS 5.x systems to provide the Python 2.6 packages.
See attributes/default.rb
for default values.
node["python"]["install_method"]
- method to install python with, defaultpackage
.
The file also contains the following attributes:
- platform specific locations and settings.
- source installation settings
This cookbook includes LWRPs for managing:
- pip packages
- virtualenv isolated Python environments
Install packages using the new hotness in Python package management...pip
. Yo dawg...easy_install is so 2009, you better ask your local Pythonista if you don't know! The usage semantics are like that of any normal package provider.
- :install: Install a pip package - if version is provided, install that specific version
- :upgrade: Upgrade a pip package - if version is provided, upgrade to that specific version
- :remove: Remove a pip package
- :purge: Purge a pip package (this usually entails removing configuration files as well as the package itself). With pip packages this behaves the same as
:remove