File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 3535version = node [ 'python' ] [ 'version' ]
3636install_path = "#{ node [ 'python' ] [ 'prefix_dir' ] } /bin/python#{ version . split ( /(^\d +\. \d +)/ ) [ 1 ] } "
3737
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 "
4040 checksum node [ 'python' ] [ 'checksum' ]
4141 mode "0644"
4242 not_if { ::File . exists? ( install_path ) }
4545bash "build-and-install-python" do
4646 cwd Chef ::Config [ :file_cache_path ]
4747 code <<-EOF
48- tar -jxvf Python-#{ version } .tar.bz2
48+ tar -zxvf Python-#{ version } .tgz
4949 (cd Python-#{ version } && ./configure #{ configure_options } )
5050 (cd Python-#{ version } && make && make #{ make_options } )
5151 EOF
You can’t perform that action at this time.
0 commit comments