Commit 73fe28f6 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fix RPATH for rpy2 and scipy.

parent 2cacb77a
[buildout] [buildout]
extends = extends =
../gcc/buildout.cfg
../r-language/buildout.cfg ../r-language/buildout.cfg
# rpy2 needs R in $PATH # rpy2 needs R in $PATH
...@@ -7,7 +8,7 @@ extends = ...@@ -7,7 +8,7 @@ extends =
# see ../manpy/buildout.cfg as an example # see ../manpy/buildout.cfg as an example
[rpy2_env] [rpy2_env]
PATH = ${r-language:location}/bin/:%(PATH)s PATH = ${gcc-fortran:location}/bin:${r-language:location}/bin/:%(PATH)s
CFLAGS = -I${readline:location}/include CFLAGS = -I${readline:location}/include
LDFLAGS = -L${readline:location}/lib -Wl,-rpath=${readline:location}/lib -L${r-language:location}/lib/R/lib -Wl,-rpath=${r-language:location}/lib/R/lib LDFLAGS = -L${readline:location}/lib -Wl,-rpath=${readline:location}/lib -L${r-language:location}/lib/R/lib -Wl,-rpath=${r-language:location}/lib/R/lib
...@@ -19,3 +20,6 @@ initialization = ...@@ -19,3 +20,6 @@ initialization =
# rpy2 needs R in $PATH # rpy2 needs R in $PATH
import os import os
os.environ['PATH'] = '${r-language:location}/bin' + os.pathsep + os.environ.get('PATH', '') os.environ['PATH'] = '${r-language:location}/bin' + os.pathsep + os.environ.get('PATH', '')
rpath =
${gcc-fortran:location}/lib
${gcc-fortran:location}/lib64
...@@ -13,3 +13,4 @@ recipe = zc.recipe.egg:custom ...@@ -13,3 +13,4 @@ recipe = zc.recipe.egg:custom
egg = scipy egg = scipy
environment = scipy-env environment = scipy-env
setup-eggs = ${numpy:egg} setup-eggs = ${numpy:egg}
rpath = ${numpy:rpath}
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