Recently I had to try to build it from the source. Got a version of rpy2-2.2.2, so I can use it with Python 2.6.6 on Oracle Linux.
The solution to how this works was to commit a couple of things in a setup.py script.
First enable get_rconfig () to allow empty lines. If there was a way to mark this, this was not obvious to me:
config = RConfig() for about in ('--ldflags', '--cppflags', 'LAPACK_LIBS', 'BLAS_LIBS'):
Secondly, fix the error with going to RConfig.from_string, where it referred to a nonexistent variable:
elif rconfig_m is None: if allow_empty:
This then allows the CMD R configuration contours to handle empty cases as well (which you will probably encounter if your R assembly was not created as a shared library), and I can end the loop with
install python setup.py build
Robert Casey
source share