Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5bbd2cc

Browse files
committed
python v1.0.0, pip install script is now downloaded with remote_file instead of curl
1 parent e0f596c commit 5bbd2cc

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "python",
3-
"description": "Installs python packages",
3+
"description": "Installs python packages. Includes LWRPs for managing `pip` packages and `virtualenv` isolated Python environments.",
44
"long_description": "",
55
"maintainer": "Opscode, Inc.",
66
"maintainer_email": "[email protected]",
@@ -41,5 +41,5 @@
4141
"recipes": {
4242
"python": "Installs python, pip, and virtualenv"
4343
},
44-
"version": "0.99.0"
44+
"version": "1.0.0"
4545
}

metadata.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
maintainer "Opscode, Inc."
22
maintainer_email "[email protected]"
33
license "Apache 2.0"
4-
description "Installs python packages"
5-
version "0.99"
4+
description "Installs python packages. Includes LWRPs for managing `pip` packages and `virtualenv` isolated Python environments."
5+
version "1.0.0"
66

77
recipe "python", "Installs python, pip, and virtualenv"
88

recipes/default.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@
4646
easy_install pip
4747
EOH
4848
not_if "which pip"
49+
action :nothing
50+
end
51+
remote_file "#{Chef::Config[:file_cache_path]}/distribute_setup.py" do
52+
source "http://python-distribute.org/distribute_setup.py"
53+
notifies :run, "bash[install-pip]", :immediate
54+
not_if "which pip"
4955
end
5056

5157
python_pip "virtualenv" do

0 commit comments

Comments
 (0)