Hi,

I've run into a minor glitch when trying to install rpy 2.1.9 with R
2.12 and Python 2.7.1 when using Intel'ls MKL.For compiling R, the
specification of the MKL libs looks something like this:

   ... -Wl,--start-group -lmkl_intel -lmkl_sequential -lmkl_core
-Wl,--end-group -lpthread ...

where the -Wl,--start-group and -Wl,--end-group are taken from Intel's
link advisor (see
http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/).
Unfortunately, the setup.py isn't prepared to accept these linker
options and complains when getting them in its RConfig class. The
attached patch solved the problem for me.

More generally, is it really a good idea to check arguments to the
compiler when trying to build Rpy? Every user might have a differently
tweaked environment, and trying to support them all seems like a
nightmare to me. If I understand the code correctly, the compiler
options are obtained from the R setup, and should reflect those used
to compile R - is that correct? But if R has been installed
successfully, the compiler and linker options should be ok, no?

Kind regards,

   Christian.
*** rpy2-2.1.9/setup.py.orig	2010-12-02 13:39:06.989782783 +0000
--- rpy2-2.1.9/setup.py	2010-12-02 13:40:58.353509705 +0000
***************
*** 219,225 ****
                               '^-l(?P<libraries>[^ ]+)$',
                               '^-I(?P<include_dirs>[^ ]+)$',
                               '^(?P<framework_dirs>-F[^ ]+?)$',
!                              '^(?P<frameworks>-framework [^ ]+)$')
          pp = [re.compile(x) for x in possible_patterns]
          # sanity check of what is returned into rconfig
          rconfig_m = None        
--- 219,226 ----
                               '^-l(?P<libraries>[^ ]+)$',
                               '^-I(?P<include_dirs>[^ ]+)$',
                               '^(?P<framework_dirs>-F[^ ]+?)$',
!                              '^(?P<frameworks>-framework [^ ]+)$',
!                              '^(-Wl,.+)$')
          pp = [re.compile(x) for x in possible_patterns]
          # sanity check of what is returned into rconfig
          rconfig_m = None        
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to