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
098bf763
authored
Jun 01, 2017
by
source_reader
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
sketch of building numpy, scipy, matplotlib from wheels hosted on wattsworth pypi server
parent
d3c211e4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
2 deletions
modules/joule/manifests/init.pp
modules/nilm/manifests/init.pp
modules/python3/manifests/build.pp
modules/joule/manifests/init.pp
View file @
098bf763
...
...
@@ -13,6 +13,9 @@
#
class
joule
{
require
raspi
require
python3
$pip_url
=
"http://puppet:wX27zvbA@pypi.wattsworth.net:8080/"
$pip_cmd
=
"pip3 install --upgrade --extra-index-url
${pip_url}
--trusted-host pypi.wattsworth.net"
...
...
modules/nilm/manifests/init.pp
View file @
098bf763
...
...
@@ -11,6 +11,7 @@
#
class
nilm
{
require
raspi
require
python3
$pip_url
=
"http://puppet:wX27zvbA@pypi.wattsworth.net:8080/"
$pip_cmd
=
"pip3 install --upgrade --extra-index-url
${pip_url}
--trusted-host pypi.wattsworth.net"
...
...
modules/python3/manifests/build.pp
View file @
098bf763
class
python3::build
{
$pip_url
=
"http://puppet:wX27zvbA@pypi.wattsworth.net:8080/"
$pip_cmd
=
"pip3 install --upgrade --extra-index-url
${pip_url}
--trusted-host pypi.wattsworth.net"
notify
{
"python3 is at [
${::python_version}
], building 3.5.2 from source"
:
}
$build_deps
=
[
"libssl-dev"
,
...
...
@@ -11,7 +14,11 @@ class python3::build {
"libsqlite3-dev"
,
"tk-dev"
,
"lzma-dev"
,
"libbz2-dev"
]
"libbz2-dev"
,
"libatlas-base-dev"
,
"libblas-dev"
,
"liblapack-dev"
,
"gfortran"
]
package
{
$build_deps
:
ensure
=>
present
...
...
@@ -35,7 +42,15 @@ class python3::build {
cwd
=>
"/tmp/Python-3.5.2"
,
timeout
=>
0
,
#disable timeout
creates
=>
"/usr/local/bin/python3"
,
require
=>
[
Exec
[
'untar_python'
]]
require
=>
[
Exec
[
'untar_python'
]],
notify
=>
Exec
[
'build_pkgs'
]
}
exec
{
'build_pkgs'
:
command
=>
"
${pip_cmd}
numpy matplotlib scipy"
,
timeout
=>
0
,
path
=>
[
"/usr/local/bin"
,
"/usr/bin"
],
require
=>
Exec
[
'compile_python'
],
refresh_only
=>
true
}
}
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