Commit 93c32d2c authored by Marco Mariani's avatar Marco Mariani

scikit: cleanup

parent 0affd68b
...@@ -37,7 +37,6 @@ location = ${buildout:parts-directory}/${:_buildout_section_name_} ...@@ -37,7 +37,6 @@ location = ${buildout:parts-directory}/${:_buildout_section_name_}
[libatlas] [libatlas]
recipe = cp.recipe.cmd recipe = cp.recipe.cmd
location = ${buildout:parts-directory}/${:_buildout_section_name_} location = ${buildout:parts-directory}/${:_buildout_section_name_}
lapack_version = 3.5.0
install_cmd = install_cmd =
set -e set -e
mkdir -p ${:location}__compile__ mkdir -p ${:location}__compile__
......
...@@ -3,6 +3,16 @@ parts = ...@@ -3,6 +3,16 @@ parts =
libblas libblas
[libblas-download]
recipe = hexagonit.recipe.download
filename = blas.tgz
url = http://www.netlib.org/blas/${:filename}
md5sum = 5e99e975f7a1e3ea6abcad7c6e7e42e6
download-only = true
mode = 0644
location = ${buildout:parts-directory}/${:_buildout_section_name_}
[libblas] [libblas]
recipe = cp.recipe.cmd recipe = cp.recipe.cmd
location = ${buildout:parts-directory}/${:_buildout_section_name_} location = ${buildout:parts-directory}/${:_buildout_section_name_}
...@@ -12,8 +22,7 @@ install_cmd = ...@@ -12,8 +22,7 @@ install_cmd =
set -e set -e
mkdir -p ${:location}__compile__ mkdir -p ${:location}__compile__
cd ${:location}__compile__ cd ${:location}__compile__
wget -nc http://www.netlib.org/blas/blas.tgz tar xzf ${libblas-download:location}/${libblas-download:filename}
tar xzf blas.tgz
cd BLAS cd BLAS
${:gfortran} -O3 -std=legacy -m64 -fno-second-underscore -fPIC -c *.f ${:gfortran} -O3 -std=legacy -m64 -fno-second-underscore -fPIC -c *.f
ar r libfblas.a *.o ar r libfblas.a *.o
......
...@@ -21,8 +21,8 @@ branch = master ...@@ -21,8 +21,8 @@ branch = master
git-executable = ${git:location}/bin/git git-executable = ${git:location}/bin/git
[build-venv] [numpy-build-venv]
dependency = ${prerequired-eggs:recipe} dependency = ${numpy-prerequired-egg:recipe}
recipe = cp.recipe.cmd recipe = cp.recipe.cmd
location = ${buildout:parts-directory}/${:_buildout_section_name_} location = ${buildout:parts-directory}/${:_buildout_section_name_}
install_cmd = install_cmd =
...@@ -41,6 +41,7 @@ install_cmd = ...@@ -41,6 +41,7 @@ install_cmd =
. ${:location}/bin/activate . ${:location}/bin/activate
${:location}/bin/pip install numpy ${:location}/bin/pip install numpy
${:location}/bin/pip install Tempita ${:location}/bin/pip install Tempita
# look for numpy in buildout eggs, not in the virtualenv
export PYTHONPATH=${buildout:eggs-directory}/numpy-${versions:numpy}-py2.7-linux-x86_64.egg export PYTHONPATH=${buildout:eggs-directory}/numpy-${versions:numpy}-py2.7-linux-x86_64.egg
cd ${scipy-repository.git:location} cd ${scipy-repository.git:location}
python setupegg.py bdist_egg python setupegg.py bdist_egg
...@@ -49,15 +50,16 @@ install_cmd = ...@@ -49,15 +50,16 @@ install_cmd =
update_cmd = ${:install_cmd} update_cmd = ${:install_cmd}
[prerequired-eggs] [numpy-prerequired-egg]
recipe = zc.recipe.egg recipe = zc.recipe.egg
# this must be installed before building scipy and scikit-learn
eggs = eggs =
slapos.cookbook ${lxml-python:egg}
numpy numpy
[numpy-eggs] [numpy-dependent-eggs]
dependencies = ${build-venv:recipe} dependencies = ${numpy-build-venv:recipe}
recipe = zc.recipe.egg recipe = zc.recipe.egg
find-links = find-links =
${scipy-repository.git:location}/dist ${scipy-repository.git:location}/dist
......
...@@ -6,7 +6,7 @@ extends = ...@@ -6,7 +6,7 @@ extends =
../../component/numpy/buildout.cfg ../../component/numpy/buildout.cfg
parts = parts =
numpy-eggs numpy-dependent-eggs
[versions] [versions]
numpy = 1.8.1 numpy = 1.8.1
......
...@@ -431,7 +431,7 @@ ZODB3-patch-binary = ${patch:location}/bin/patch ...@@ -431,7 +431,7 @@ ZODB3-patch-binary = ${patch:location}/bin/patch
[eggs] [eggs]
recipe = zc.recipe.egg recipe = zc.recipe.egg
eggs = eggs =
${numpy-eggs:eggs} ${numpy-dependent-eggs:eggs}
${mysql-python:egg} ${mysql-python:egg}
${lxml-python:egg} ${lxml-python:egg}
${pil-python:egg} ${pil-python:egg}
......
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 to comment