This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Make default attribute name more obvious.

  • Loading branch information...
benjaminws authored and jtimberman committed Jul 19, 2011
1 parent b294961 commit 0d076972873c977545578bfd1d1bd6201288619d
Showing with 5 additions and 4 deletions.
  1. +2 −2 python/attributes/default.rb
  2. +3 −2 python/recipes/pip.rb
@@ -18,10 +18,10 @@
# limitations under the License.
#
-# Version of python to use when installing distribute/pip
+# Version of python to use when installing distribute
# default is '', which uses the 'python' binary.
# example value = '2.6' which will use the python2.6 binary
-default['python']['base_version'] = ''
+default['python']['distribute_install_py_version'] = ''
default['python']['install_method'] = 'package'
View
@@ -28,11 +28,12 @@
not_if "which pip"
end
-base_version = node['python']['base_version']
+use_version = node['python']['distribute_install_py_version']
+
bash "install-pip" do
cwd Chef::Config[:file_cache_path]
code <<-EOF
- python#{base_version} distribute_setup.py
+ python#{use_version} distribute_setup.py
easy_install pip
EOF
not_if "which pip"

0 comments on commit 0d07697

Please sign in to comment.