diff --git a/itamae/caffe.rb b/itamae/caffe.rb index fb65d24..5bf3df1 100644 --- a/itamae/caffe.rb +++ b/itamae/caffe.rb @@ -7,5 +7,5 @@ execute 'install caffe' do command "env CPU_ONLY=#{node['caffe']['cpu_only'] ? 1 : 0} sh /vagrant/itamae/install_caffe.sh" - not_if 'test -x /usr/local/caffe/bin/caffe.bin' + not_if 'test -x /usr/local/caffe/distribute/bin/caffe.bin' end diff --git a/itamae/default.rb b/itamae/default.rb index 2815efc..7306b2d 100644 --- a/itamae/default.rb +++ b/itamae/default.rb @@ -2,4 +2,5 @@ include_recipe 'cuda.rb' include_recipe 'torch.rb' include_recipe 'caffe.rb' +include_recipe 'pylearn2.rb' include_recipe 'r.rb' diff --git a/itamae/install_pylearn2.sh b/itamae/install_pylearn2.sh new file mode 100644 index 0000000..f3d6787 --- /dev/null +++ b/itamae/install_pylearn2.sh @@ -0,0 +1,3 @@ +git clone git://github.com/lisa-lab/pylearn2.git /usr/local/pylearn2 +cd /usr/local/pylearn2 +python setup.py develop diff --git a/itamae/pylearn2.rb b/itamae/pylearn2.rb new file mode 100644 index 0000000..2e55359 --- /dev/null +++ b/itamae/pylearn2.rb @@ -0,0 +1,5 @@ +include_recipe 'pylearn2_deps.rb' + +execute 'install pylearn2' do + command "sh /vagrant/itamae/install_pylearn2.sh" +end diff --git a/itamae/pylearn2_deps.rb b/itamae/pylearn2_deps.rb new file mode 100644 index 0000000..8eb21fb --- /dev/null +++ b/itamae/pylearn2_deps.rb @@ -0,0 +1,6 @@ +include_recipe 'theano.rb' + +package 'python-pil' +package 'python-yaml' +package 'python-matplotlib' +package 'cython' diff --git a/itamae/theano.rb b/itamae/theano.rb new file mode 100644 index 0000000..ef144f7 --- /dev/null +++ b/itamae/theano.rb @@ -0,0 +1,5 @@ +include_recipe 'theano_deps.rb' + +execute 'install Theano' do + command 'pip install Theano' +end diff --git a/itamae/theano_deps.rb b/itamae/theano_deps.rb new file mode 100644 index 0000000..1e22c07 --- /dev/null +++ b/itamae/theano_deps.rb @@ -0,0 +1,11 @@ +package 'gcc' +package 'g++' +package 'gfortran' +package 'build-essential' +package 'linux-image-generic' +package 'libopenblas-dev' +package 'python-dev' +package 'python-pip' +package 'python-nose' +package 'python-numpy' +package 'python-scipy'