Commit b8336241 by source_reader

using vendor pip

parent e82857d6
Showing with 14 additions and 13 deletions
......@@ -19,7 +19,7 @@
class python {
require common
$deps = ['python3-scipy', 'python3-numpy',
$deps = ['python3-scipy', 'python3-numpy', 'python3-pip', 'python-pip',
'python-numpy', 'python-scipy',
'cython','python2.7','python2.7-dev','python-setuptools',
'python-cherrypy3','python-decorator','python-requests','python3-dev',
......@@ -35,18 +35,19 @@ class python {
mode => '0755',
source => 'puppet:///modules/python/get-pip.py'
}
$dist_pip = ['python-pip', 'python3-pip', 'python3-matplotlib', 'python-matplotlib']
package{$dist_pip:
#ubuntu 16.04 matplotlib breaks pip :(
$matplotlib = ['python3-matplotlib', 'python-matplotlib']
package{$matplotlib:
ensure => absent
}
exec{'install_pip3':
command => 'python3 /tmp/get-pip.py',
path => ['/usr/local/bin','/usr/bin'],
require => Package[$deps]
}
exec{'install_pip2':
command => 'python2 /tmp/get-pip.py',
path => ['/usr/local/bin','/usr/bin'],
require => Package[$deps,$dist_pip]
}
# exec{'install_pip3':
# command => 'python3 /tmp/get-pip.py',
# path => ['/usr/local/bin','/usr/bin'],
# require => Package[$deps]
# }
# exec{'install_pip2':
# command => 'python2 /tmp/get-pip.py',
# path => ['/usr/local/bin','/usr/bin'],
# require => Package[$deps,$dist_pip]
# }
}
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