Commit 04c51f7b by John Donnal

manually install pip

parent fd54bf66
This diff could not be displayed because it is too large.
...@@ -22,24 +22,30 @@ class python { ...@@ -22,24 +22,30 @@ class python {
$deps = ['python3-scipy', 'python3-numpy', 'python3-matplotlib', $deps = ['python3-scipy', 'python3-numpy', 'python3-matplotlib',
'python-numpy', 'python-scipy', 'python-matplotlib', 'python-numpy', 'python-scipy', 'python-matplotlib',
'cython','python2.7','python2.7-dev','python-setuptools', 'cython','python2.7','python2.7-dev','python-setuptools',
'python-cherrypy3','python-decorator','python-requests', 'python-cherrypy3','python-decorator','python-requests','python3-dev',
'python-dateutil','python-tz','python-progressbar','python-psutil', 'python-dateutil','python-tz','python-progressbar','python-psutil',
'python-simplejson'] 'python-simplejson']
package{$deps: package{$deps:
ensure => present ensure => present
} }
file{'/tmp/get-pip.py':
owner => root,
group => root,
mode => '0755',
source => 'puppet:///modules/python/get-pip.py'
}
package{['python-pip', 'python3-pip']: package{['python-pip', 'python3-pip']:
ensure => absent, ensure => absent,
require => Exec['upgrade_pip3','upgrade_pip2'] require => Exec['upgrade_pip3','upgrade_pip2']
} }
exec{'upgrade_pip3': exec{'install_pip3':
command => 'pip3 install --upgrade pip', command => 'python3 /tmp/get-pip.py',
path => ['/usr/local/bin','/usr/bin'], path => ['/usr/local/bin','/usr/bin'],
require => Package[$deps] require => Package[$deps]
} }
exec{'upgrade_pip2': exec{'upgrade_pip2':
command => 'pip2 install --upgrade pip', command => 'python2 /tmp/get-pip.py',
path => ['/usr/local/bin','/usr/bin'], path => ['/usr/local/bin','/usr/bin'],
require => Package[$deps] require => Package[$deps]
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment