Commit b8336241 by source_reader

using vendor pip

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