Re: [Rpy] compiling rpy2 on windows R-2.8.1

2009-01-12 Thread Laurent Gautier
Odd. The error message suggests missing definitions found in R headers. L. James Yoo wrote: > okay, I'm making some progress... finally figured out how to make sure > mingw32 is used as the compiler du jour: > > python setup.py build --compiler=mingw32 > > running build > running build_py >

Re: [Rpy] compiling rpy2 on windows R-2.8.1

2009-01-12 Thread Peter
On Mon, Jan 12, 2009 at 5:49 PM, James Yoo wrote: > Hmmm, I'm trying to use mingw to compile rpy2. I've setup my paths to only > include R, Rtools, mingw... but for some dang reason, setup.py keeps finding > msvc instead... what am I missing here? I think setup.py will default to the MS compile

Re: [Rpy] compiling rpy2 on windows R-2.8.1

2009-01-12 Thread James Yoo
okay, I'm making some progress... finally figured out how to make sure mingw32 is used as the compiler du jour: python setup.py build --compiler=mingw32 running build running build_py running build_ext building 'rpy2.rinterface.rinterface' extension \tools\Rtools\MinGW\bin\gcc.exe -mno-cygwin - m

Re: [Rpy] compiling rpy2 on windows R-2.8.1

2009-01-12 Thread James Yoo
Hmmm, I'm trying to use mingw to compile rpy2. I've setup my paths to only include R, Rtools, mingw... but for some dang reason, setup.py keeps finding msvc instead... what am I missing here? On Sat, Jan 3, 2009 at 2:22 AM, Laurent Gautier wrote: > James Yoo wrote: > >> >> line 112 (or thereab

Re: [Rpy] compiling rpy2 on windows R-2.8.1

2009-01-03 Thread Laurent Gautier
James Yoo wrote: > > line 112 (or thereabouts) in setup.py: > > include_dirs = [x.lstrip('-I') for x in include_dirs] > > lstrip tends to be too greedy and turns "-II:\path\to\include" into > ":\path\to\include"... I see. I misused 'lstrip' (thinking that the characters '-I' passed w

Re: [Rpy] compiling rpy2 on windows R-2.8.1

2009-01-02 Thread James Yoo
line 112 (or thereabouts) in setup.py: include_dirs = [x.lstrip('-I') for x in include_dirs] lstrip tends to be too greedy and turns "-II:\path\to\include" into ":\path\to\include"... On Fri, Jan 2, 2009 at 2:18 PM, Laurent Gautier wrote: > James Yoo wrote: > >> >> Sorry for the redundan

Re: [Rpy] compiling rpy2 on windows R-2.8.1

2009-01-02 Thread Laurent Gautier
James Yoo wrote: > > Sorry for the redundant post, but I felt that I should change the > subject header. > On Fri, Jan 2, 2009 at 11:31 AM, James Yoo > wrote: > > Hi, > > Running into a couple problems compiling rpy2 on windows. > I have R_HOME defined a

[Rpy] compiling rpy2 on windows R-2.8.1

2009-01-02 Thread James Yoo
Sorry for the redundant post, but I felt that I should change the subject header. On Fri, Jan 2, 2009 at 11:31 AM, James Yoo wrote: > Hi, > > Running into a couple problems compiling rpy2 on windows. > I have R_HOME defined and R in the system path. > > first off in setup.py, def getRinterface_ex