Commit 098bf763 by source_reader

sketch of building numpy, scipy, matplotlib from wheels hosted on wattsworth pypi server

parent d3c211e4
...@@ -13,6 +13,9 @@ ...@@ -13,6 +13,9 @@
# #
class joule { class joule {
require raspi
require python3
$pip_url="http://puppet:wX27zvbA@pypi.wattsworth.net:8080/" $pip_url="http://puppet:wX27zvbA@pypi.wattsworth.net:8080/"
$pip_cmd="pip3 install --upgrade --extra-index-url ${pip_url} --trusted-host pypi.wattsworth.net" $pip_cmd="pip3 install --upgrade --extra-index-url ${pip_url} --trusted-host pypi.wattsworth.net"
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
# #
class nilm { class nilm {
require raspi require raspi
require python3
$pip_url="http://puppet:wX27zvbA@pypi.wattsworth.net:8080/" $pip_url="http://puppet:wX27zvbA@pypi.wattsworth.net:8080/"
$pip_cmd="pip3 install --upgrade --extra-index-url ${pip_url} --trusted-host pypi.wattsworth.net" $pip_cmd="pip3 install --upgrade --extra-index-url ${pip_url} --trusted-host pypi.wattsworth.net"
......
class python3::build { 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": } notify { "python3 is at [${::python_version}], building 3.5.2 from source": }
$build_deps = ["libssl-dev", $build_deps = ["libssl-dev",
...@@ -11,7 +14,11 @@ class python3::build { ...@@ -11,7 +14,11 @@ class python3::build {
"libsqlite3-dev", "libsqlite3-dev",
"tk-dev", "tk-dev",
"lzma-dev", "lzma-dev",
"libbz2-dev"] "libbz2-dev",
"libatlas-base-dev",
"libblas-dev",
"liblapack-dev",
"gfortran"]
package { $build_deps: package { $build_deps:
ensure => present ensure => present
...@@ -35,7 +42,15 @@ class python3::build { ...@@ -35,7 +42,15 @@ class python3::build {
cwd => "/tmp/Python-3.5.2", cwd => "/tmp/Python-3.5.2",
timeout => 0, #disable timeout timeout => 0, #disable timeout
creates => "/usr/local/bin/python3", 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
} }
} }
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