Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
isaak yansane-sisk
slapos
Commits
00ad757b
Commit
00ad757b
authored
Aug 11, 2014
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scikit: build with no virtualenv
parent
cba81391
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
96 additions
and
38 deletions
+96
-38
component/numpy/buildout.cfg
component/numpy/buildout.cfg
+94
-38
component/numpy/software.cfg
component/numpy/software.cfg
+2
-0
No files found.
component/numpy/buildout.cfg
View file @
00ad757b
...
@@ -5,6 +5,16 @@ extends =
...
@@ -5,6 +5,16 @@ extends =
../gcc/buildout.cfg
../gcc/buildout.cfg
../libatlas/buildout.cfg
../libatlas/buildout.cfg
../libblas/buildout.cfg
../libblas/buildout.cfg
../python-setuptools/buildout.cfg
[numpy-prerequired-eggs]
recipe = zc.recipe.egg
# These must be installed before building scipy and scikit-learn
eggs =
${lxml-python:egg}
cython
numpy
[scipy-repository.git]
[scipy-repository.git]
...
@@ -13,6 +23,7 @@ repository = https://github.com/scipy/scipy.git
...
@@ -13,6 +23,7 @@ repository = https://github.com/scipy/scipy.git
branch = maintenance/0.13.x
branch = maintenance/0.13.x
git-executable = ${git:location}/bin/git
git-executable = ${git:location}/bin/git
[scikit-learn-repository.git]
[scikit-learn-repository.git]
recipe = slapos.recipe.build:gitclone
recipe = slapos.recipe.build:gitclone
repository = https://github.com/scikit-learn/scikit-learn.git
repository = https://github.com/scikit-learn/scikit-learn.git
...
@@ -20,55 +31,58 @@ branch = 0.15.X
...
@@ -20,55 +31,58 @@ branch = 0.15.X
git-executable = ${git:location}/bin/git
git-executable = ${git:location}/bin/git
[numpy-build-venv]
[numpy-environment]
dependency = ${numpy-prerequired-egg:recipe}
# need to find our gcc and cython
PATH=${gcc-fortran:location}/bin:${buildout:directory}/bin:$PATH
LD_PRELOAD=${gcc-fortran:location}/lib64/libgfortran.so.3 ${libblas:location}/libf77blas.so.3
ATLAS=${libatlas:location}/lib/libsatlas.so
BLAS=${libblas:location}/libfblas.a
LAPACK=${libatlas:location}/lib/liblapack.a
PYTHONPATH=${buildout:eggs-directory}/numpy-${versions:numpy}-py2.7-linux-x86_64.egg:${python-setuptools:pythonpath}
[sh-numpy-environment]
recipe = collective.recipe.template
input = inline:
export PATH="${numpy-environment:PATH}"
export LD_PRELOAD="${numpy-environment:LD_PRELOAD}"
export ATLAS="${numpy-environment:ATLAS}"
export BLAS="${numpy-environment:BLAS}"
export LAPACK="${numpy-environment:LAPACK}"
export PYTHONPATH="${numpy-environment:PYTHONPATH}"
output = ${buildout:directory}/numpy-environment.sh
mode = 755
[scikit-build]
dependency = ${numpy-prerequired-eggs:recipe} ${python-setuptools:recipe}
recipe = cp.recipe.cmd
recipe = cp.recipe.cmd
location = ${buildout:parts-directory}/${:_buildout_section_name_}
egg-location = ${scikit-learn-repository.git:location}/dist
install_cmd =
install_cmd =
if [ -d ${:location} ]; then
[ -d ${:egg-location} ] && exit
exit
. ${sh-numpy-environment:output}
fi
mkdir -p ${:location}
cd ${:location}
unset PYTHONPATH
# need to find our gcc, and cython
export PATH="${gcc-fortran:location}/bin:${buildout:directory}/bin:$PATH"
export LD_PRELOAD="${gcc-fortran:location}/lib64/libgfortran.so.3 ${libblas:location}/libf77blas.so.3"
export ATLAS=${libatlas:location}/lib/libsatlas.so
export BLAS=${libblas:location}/libfblas.a
export LAPACK=${libatlas:location}/lib/liblapack.a
export NUMPY_EGG=${buildout:eggs-directory}/numpy-${versions:numpy}-py2.7-linux-x86_64.egg
${buildout:directory}/bin/virtualenv ${:location}
. ${:location}/bin/activate
# we need to install numpy to satisfy the dependency...
# ${:location}/bin/pip install numpy
# ...but we can reuse the numpy egg that has been built by buildout.
${:location}/bin/easy_install $NUMPY_EGG
# look for numpy in buildout eggs, not in the virtualenv
export PYTHONPATH=$NUMPY_EGG
cd ${scipy-repository.git:location}
python setupegg.py bdist_egg
cd ${scikit-learn-repository.git:location}
cd ${scikit-learn-repository.git:location}
python setup.py bdist_egg
${python2.7:location}/bin/
python setup.py bdist_egg
update_cmd = ${:install_cmd}
update_cmd = ${:install_cmd}
[numpy-prerequired-egg]
[scipy-build]
recipe = zc.recipe.egg
dependency = ${numpy-prerequired-eggs:recipe} ${python-setuptools:recipe}
# this must be installed before building scipy and scikit-learn
recipe = cp.recipe.cmd
eggs =
egg-location = ${scipy-repository.git:location}/dist
${lxml-python:egg}
install_cmd =
virtualenv
[ -d ${:egg-location} ] && exit
cython
. ${sh-numpy-environment:output}
numpy
cd ${scipy-repository.git:location}
${python2.7:location}/bin/python setupegg.py bdist_egg
update_cmd = ${:install_cmd}
[numpy-dependent-eggs]
[numpy-dependent-eggs]
dependencies = ${numpy-build-venv:recipe}
recipe = zc.recipe.egg
recipe = zc.recipe.egg
find-links =
find-links =
${scipy-
repository.git:location}/dist
${scipy-
build:egg-location}
${scikit-
learn-repository.git:location}/dist
${scikit-
build:egg-location}
eggs =
eggs =
numpy
numpy
scipy
scipy
...
@@ -77,8 +91,50 @@ eggs =
...
@@ -77,8 +91,50 @@ eggs =
interpreter = python-numpy
interpreter = python-numpy
#[numpy-build-venv]
## For more complex dependencies, it may be easier to build eggs
## within a virtual environment in this way.
## This section is provided as an example.
## If you use it, add virtualenv to [numpy-prerequired-eggs]
#dependency = ${numpy-prerequired-eggs:recipe}
#recipe = cp.recipe.cmd
#location = ${buildout:parts-directory}/${:_buildout_section_name_}
#install_cmd =
# if [ -d ${:location} ]; then
# exit
# fi
# mkdir -p ${:location}
# cd ${:location}
# unset PYTHONPATH
# # need to find our gcc, and cython
# export PATH="${gcc-fortran:location}/bin:${buildout:directory}/bin:$PATH"
# export LD_PRELOAD="${gcc-fortran:location}/lib64/libgfortran.so.3 ${libblas:location}/libf77blas.so.3"
# export ATLAS=${libatlas:location}/lib/libsatlas.so
# export BLAS=${libblas:location}/libfblas.a
# export LAPACK=${libatlas:location}/lib/liblapack.a
# export NUMPY_EGG=${buildout:eggs-directory}/numpy-${versions:numpy}-py2.7-linux-x86_64.egg
# ${buildout:directory}/bin/virtualenv ${:location}
# . ${:location}/bin/activate
# # we need to install numpy to satisfy the dependency...
# # ${:location}/bin/pip install numpy
# # ...but we can reuse the numpy egg that has been built by buildout.
# ${:location}/bin/easy_install $NUMPY_EGG
# # look for numpy in buildout eggs, not in the virtualenv
# export PYTHONPATH=$NUMPY_EGG
# cd ${scipy-repository.git:location}
# python setupegg.py bdist_egg
# cd ${scikit-learn-repository.git:location}
# python setup.py bdist_egg
#update_cmd = ${:install_cmd}
[versions]
[versions]
Cython = 0.20.2
numpy = 1.8.1
numpy = 1.8.1
scipy = 0.13.3
scipy = 0.13.3
scikit-learn = 0.15.1
scikit-learn = 0.15.1
simpy = 3.0.5
component/numpy/software.cfg
View file @
00ad757b
...
@@ -9,7 +9,9 @@ parts =
...
@@ -9,7 +9,9 @@ parts =
numpy-dependent-eggs
numpy-dependent-eggs
[versions]
[versions]
Cython = 0.20.2
numpy = 1.8.1
numpy = 1.8.1
scipy = 0.13.3
scipy = 0.13.3
scikit-learn = 0.15.1
scikit-learn = 0.15.1
simpy = 3.0.5
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