Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
wattsworth
/
puppet
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b8336241
authored
Feb 26, 2018
by
source_reader
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
using vendor pip
parent
e82857d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
13 deletions
modules/python/manifests/init.pp
modules/python/manifests/init.pp
View file @
b8336241
...
...
@@ -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]
#
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment