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 {
$deps = ['python3-scipy', 'python3-numpy', 'python3-matplotlib',
'python-numpy', 'python-scipy', 'python-matplotlib',
'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-simplejson']
package{$deps:
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']:
ensure => absent,
require => Exec['upgrade_pip3','upgrade_pip2']
}
exec{'upgrade_pip3':
command => 'pip3 install --upgrade pip',
exec{'install_pip3':
command => 'python3 /tmp/get-pip.py',
path => ['/usr/local/bin','/usr/bin'],
require => Package[$deps]
}
exec{'upgrade_pip2':
command => 'pip2 install --upgrade pip',
command => 'python2 /tmp/get-pip.py',
path => ['/usr/local/bin','/usr/bin'],
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