Commit 098bf763 by source_reader

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

parent d3c211e4
......@@ -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"
......
......@@ -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"
......
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
}
}
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