File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 37
37
default [ 'python' ] [ 'version' ] = '2.7.1'
38
38
default [ 'python' ] [ 'checksum' ] = '80e387bcf57eae8ce26726753584fd63e060ec11682d1145af921e85fd612292'
39
39
default [ 'python' ] [ 'configure_options' ] = %W{ --prefix=#{ python [ 'prefix_dir' ] } }
40
+
41
+ default [ 'python' ] [ 'distribute_script_url' ] = 'http://python-distribute.org/distribute_setup.py'
42
+ default [ 'python' ] [ 'distribute_option' ] [ 'download_base' ] = 'https://pypi.python.org/packages/source/d/distribute/'
Original file line number Diff line number Diff line change 31
31
# http://stackoverflow.com/questions/4324558/whats-the-proper-way-to-install-pip-virtualenv-and-distribute-for-python
32
32
# https://bitbucket.org/ianb/pip/issue/104/pip-uninstall-on-ubuntu-linux
33
33
remote_file "#{ Chef ::Config [ :file_cache_path ] } /distribute_setup.py" do
34
- source "http:// python-distribute.org/distribute_setup.py"
34
+ source node [ ' python' ] [ 'distribute_script_url' ]
35
35
mode "0644"
36
36
not_if { ::File . exists? ( pip_binary ) }
37
37
end
38
38
39
39
execute "install-pip" do
40
40
cwd Chef ::Config [ :file_cache_path ]
41
41
command <<-EOF
42
- #{ node [ 'python' ] [ 'binary' ] } distribute_setup.py
42
+ #{ node [ 'python' ] [ 'binary' ] } distribute_setup.py --download-base= #{ node [ 'python' ] [ 'distribute_option' ] [ 'download_base' ] }
43
43
#{ ::File . dirname ( pip_binary ) } /easy_install pip
44
44
EOF
45
45
not_if { ::File . exists? ( pip_binary ) }
You can’t perform that action at this time.
0 commit comments