Commit 1c65153d authored by Jérome Perrin's avatar Jérome Perrin

rpy2: reorganise "initilisation" part for easier reuse

parent 60062d9c
...@@ -31,7 +31,4 @@ environment = manpy-env ...@@ -31,7 +31,4 @@ environment = manpy-env
setup-eggs = setup-eggs =
${scipy:egg} ${scipy:egg}
${rpy2:egg} ${rpy2:egg}
initialization = initialization = ${rpy2:initialization}
# rpy2 needs R in $PATH
import os
os.environ['PATH'] = '${r-language:location}/bin' + os.pathsep + os.environ.get('PATH', '')
...@@ -15,3 +15,7 @@ LDFLAGS = -L${readline:location}/lib -Wl,-rpath=${readline:location}/lib -L${r-l ...@@ -15,3 +15,7 @@ LDFLAGS = -L${readline:location}/lib -Wl,-rpath=${readline:location}/lib -L${r-l
recipe = zc.recipe.egg:custom recipe = zc.recipe.egg:custom
environment = rpy2_env environment = rpy2_env
egg = rpy2 egg = rpy2
initialization =
# rpy2 needs R in $PATH
import os
os.environ['PATH'] = '${r-language:location}/bin' + os.pathsep + os.environ.get('PATH', '')
...@@ -24,6 +24,8 @@ eggs += ...@@ -24,6 +24,8 @@ eggs +=
${pandas:egg} ${pandas:egg}
${scikit-learn:egg} ${scikit-learn:egg}
${manpy:eggs} ${manpy:eggs}
initialization += ${manpy:initialization}
[slapos.cookbook-repository] [slapos.cookbook-repository]
branch = dream branch = dream
......
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