Commit fd4db2c9 authored by Jérome Perrin's avatar Jérome Perrin

rpy2: simplify initialisation code

parent 9d06ab97
...@@ -30,8 +30,5 @@ eggs = dream ...@@ -30,8 +30,5 @@ eggs = dream
environment = manpy-env environment = manpy-env
setup-eggs = setup-eggs =
${scipy:egg} ${scipy:egg}
${rpy2:egg}
initialization = initialization =
# rpy2 needs R in $PATH ${rpy2:initialization}
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', '')
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