cookbook 'python', '= 1.0.0', :supermarket
The python cookbook has been deprecated
The python cookbook has been deprecated and is no longer being maintained by its authors. Use of the python cookbook is no longer recommended. You may find that the poise-python cookbook is a suitable alternative.
Installs Python, pip and virtualenv. Includes LWRPs for managing Python packages with `pip` and `virtualenv` isolated Python environments.
cookbook 'python', '= 1.0.0'
knife supermarket install python
knife supermarket download python
Installs and configures Python 2.6. Also includes LWRPs for managing
pip packages and
virtualenv isolated Python environments.
- Debian, Ubuntu
- CentOS, Red Hat, Fedora
None at this time.
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
- package_name: name attribute. The name of the pip package to install
- version: the version of the package to install/upgrade. If no version is given latest is assumed.
- virtualenv: virtualenv environment to install pip package into
- options: Add additional options to the underlying pip package command
# install latest gunicorn into system path python_pip "gunicorn" do action :install end # target a virtualenv python_pip "gunicorn" do virtualenv "/home/ubunut/my_ve" action :install end # install Django 1.1.4 python_pip "django" do version "1.1.4" action :install end # use this provider with the core package resource package "django" do provider Chef::Provider::PythonPip action :install end
virtualenv is a great tool that creates isolated python environments. Think of it as RVM without all those hipsters and tight jeans.
- :create: creates a new virtualenv
- :delete: deletes an existing virtualenv
- path: name attribute. The path where the virtualenv will be created
- interpreter: The Python interpreter to use. default is
- owner: The owner for the virtualenv
- group: The group owner of the file (string or id)
# create a 2.6 virtualenv owned by ubuntu user python_virtualenv "/home/ubuntu/my_cool_ve" do owner "ubuntu" group "ubuntu" action :create end # create a Python 2.4 virtualenv python_virtualenv "/home/ubuntu/my_old_ve" do interpreter "python2.4" owner "ubuntu" group "ubuntu" action :create end
Simply include the recipe where you want Python 2.6 installed.
License and Author
Author:: Seth Chisamore (firstname.lastname@example.org)
Copyright:: 2011, Opscode, Inc
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
This cookbook has no specified dependencies.