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

Skip to content

Commit a553743

Browse files
committed
fix python install from source to work with chef 12
Also update the test suite to reflect the right python version
1 parent 8b3fd0f commit a553743

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

attributes/default.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535

3636
default['python']['url'] = 'http://www.python.org/ftp/python'
3737
default['python']['version'] = '2.7.7'
38-
default['python']['checksum'] = '3b477554864e616a041ee4d7cef9849751770bc7c39adaf78a94ea145c488059'
39-
default['python']['configure_options'] = %W{--prefix=#{python['prefix_dir']}}
38+
default['python']['checksum'] = '7f49c0a6705ad89d925181e27d0aaa025ee4731ce0de64776c722216c3e66c42'
39+
default['python']['configure_options'] = %W{--prefix=#{node['python']['prefix_dir']}}
4040
default['python']['make_options'] = %W{install}
4141

4242
default['python']['pip_location'] = "#{node['python']['prefix_dir']}/bin/pip"

test/integration/source/bats/source.bats

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
[ -x "/usr/local/bin/python" ]
55
}
66

7-
@test "python should be version 2.7.5" {
8-
/usr/local/bin/python -c 'import sys; print sys.version' | grep '2.7.5'
7+
@test "python should be version 2.7.7" {
8+
/usr/local/bin/python -c 'import sys; print sys.version' | grep '2.7.7'
99
}

0 commit comments

Comments
 (0)