File tree Expand file tree Collapse file tree 2 files changed +18
-8
lines changed Expand file tree Collapse file tree 2 files changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -56,26 +56,27 @@ Install packages using the new hotness in Python package management...[`pip`](ht
56
56
- version: the version of the package to install/upgrade. If no version is given latest is assumed.
57
57
- virtualenv: virtualenv environment to install pip package into
58
58
- options: Add additional options to the underlying pip package command
59
+ - timeout: timeout in seconds for the command to execute. Useful for pip packages that may take a long time to install. Default 900 seconds.
59
60
60
61
# Example
61
-
62
+
62
63
# install latest gunicorn into system path
63
64
python_pip "gunicorn" do
64
65
action :install
65
66
end
66
-
67
+
67
68
# target a virtualenv
68
69
python_pip "gunicorn" do
69
70
virtualenv "/home/ubunut/my_ve"
70
71
action :install
71
72
end
72
-
73
+
73
74
# install Django 1.1.4
74
75
python_pip "django" do
75
76
version "1.1.4"
76
77
action :install
77
78
end
78
-
79
+
79
80
# use this provider with the core package resource
80
81
package "django" do
81
82
provider Chef::Provider::PythonPip
@@ -100,22 +101,22 @@ Install packages using the new hotness in Python package management...[`pip`](ht
100
101
- group: The group owner of the file (string or id)
101
102
102
103
# Example
103
-
104
+
104
105
# create a 2.6 virtualenv owned by ubuntu user
105
106
python_virtualenv "/home/ubuntu/my_cool_ve" do
106
107
owner "ubuntu"
107
108
group "ubuntu"
108
109
action :create
109
110
end
110
-
111
+
111
112
# create a Python 2.4 virtualenv
112
113
python_virtualenv "/home/ubuntu/my_old_ve" do
113
114
interpreter "python2.4"
114
115
owner "ubuntu"
115
116
group "ubuntu"
116
117
action :create
117
118
end
118
-
119
+
119
120
Usage
120
121
=====
121
122
@@ -144,6 +145,15 @@ virtualenv
144
145
145
146
Installs virtualenv using the ` python_pip ` resource.
146
147
148
+ Changes
149
+ =======
150
+
151
+ ## v1.0.4:
152
+
153
+ * [ COOK-960] - add timeout to python_pip
154
+ * [ COOK-651] - 'install_path' not correctly resolved when using python::source
155
+ * [ COOK-650] - Add ability to specify version when installing distribute.
156
+ * [ COOK-553] - FreeBSD support in the python cookbook
147
157
148
158
License and Author
149
159
==================
Original file line number Diff line number Diff line change 2
2
maintainer_email "[email protected] "
3
3
license "Apache 2.0"
4
4
description "Installs Python, pip and virtualenv. Includes LWRPs for managing Python packages with `pip` and `virtualenv` isolated Python environments."
5
- version "1.0.2 "
5
+ version "1.0.4 "
6
6
7
7
depends "build-essential"
8
8
You can’t perform that action at this time.
0 commit comments