File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 35
35
version = node [ 'python' ] [ 'version' ]
36
36
install_path = "#{ node [ 'python' ] [ 'prefix_dir' ] } /bin/python#{ version . split ( /(^\d +\. \d +)/ ) [ 1 ] } "
37
37
38
- remote_file "#{ Chef ::Config [ :file_cache_path ] } /Python-#{ version } .tar.bz2 " do
39
- source "#{ node [ 'python' ] [ 'url' ] } /#{ version } /Python-#{ version } .tar.bz2 "
38
+ remote_file "#{ Chef ::Config [ :file_cache_path ] } /Python-#{ version } .tgz " do
39
+ source "#{ node [ 'python' ] [ 'url' ] } /#{ version } /Python-#{ version } .tgz "
40
40
checksum node [ 'python' ] [ 'checksum' ]
41
41
mode "0644"
42
42
not_if { ::File . exists? ( install_path ) }
45
45
bash "build-and-install-python" do
46
46
cwd Chef ::Config [ :file_cache_path ]
47
47
code <<-EOF
48
- tar -jxvf Python-#{ version } .tar.bz2
48
+ tar -zxvf Python-#{ version } .tgz
49
49
(cd Python-#{ version } && ./configure #{ configure_options } )
50
50
(cd Python-#{ version } && make && make #{ make_options } )
51
51
EOF
You can’t perform that action at this time.
0 commit comments