Re: statsmodels.api

2013-09-17 Thread Josef Perktold
Oscar Benjamin  gmail.com> writes:

> 
> On 17 September 2013 14:35, Josef Pktd  gmail.com> wrote:
> >> (As an aside, this is all much simpler if you're using Ubuntu or some
> >> other Linux distro rather than Windows.)
> >
> > scientific python on a stick
> >
> > https://code.google.com/p/winpython/wiki/PackageIndex_33
> 
> Thanks, I've just installed that and I'll try it out later.
> 
> > I haven't seen any problems so far on python 3.3
> > The statsmodels test suite passes without problems on python 3.3 also,
as far as I remember.
> > (and no problems using Windows. just use the right binaries.)
> 
> Well that's exactly my point. On a Linux distro you would have the
> right binaries first time. No need to search through project webpages
> or documentation, weigh up different installers, or download 750MB of
> software that you mostly won't use. Similarly on a Linux distro it's a
> lot easier to get all of the build tools set up to build these things
> from source if you'd prefer.

This might be true for many Linux users.
However, the last time I tried to install something in a virtual Linux OS
that was not in the standard repository, I was completely lost.
(I'm a Windows user.)


> 
> Windows users are often dependent on inconsistent sources of binaries.
> In this case I imagine that the OP installed numpy from sourceforge
> since it has 3.3 binaries but it doesn't have the same for scipy at
> which point googling would easily lead to Cristoph's page.

Another problem with relying on binaries on Windows is when the matching
binaries are not available. For example, the Windows binaries on pypi of
pandas and statsmodels are compiled against the latest numpy release and
will not work with older numpy versions.
(
http://stackoverflow.com/questions/17709641/valueerror-numpy-dtype-has-the-wrong-size-try-recompiling/18369312
)

On the other hand, python-xy comes with MingW, and I never had any problems
compiling pandas and statsmodels for any version combination of python and
numpy that I tested (although 32 bit only so far, I never set up the
Microsoft sdk).

(latest news: moving to MingW-64 for numpy and scipy, and related packages,
might be on the way.)

Josef


> 
> Oscar
> 




-- 
https://mail.python.org/mailman/listinfo/python-list


Re: statsmodels.api

2013-09-17 Thread Josef Perktold
Oscar Benjamin  gmail.com> writes:

> 
> On 17 September 2013 15:52, Josef Perktold  gmail.com> wrote:
> >
> > On the other hand, python-xy comes with MingW, and I never had any problems
> > compiling pandas and statsmodels for any version combination of python and
> > numpy that I tested (although 32 bit only so far, I never set up the
> > Microsoft sdk).
> 
> Just out of interest: out of the box Python.org distutils is
> incompatible with recent versions of MinGW. If Python-xy distributes
> MinGW (and it works) then they're either creating a special patched
> MinGW set up or patching distutils. I don't want to install Python-xy
> myself since it'll clobber my existing Python installation but could
> you answer the following for me:
> 
> 1) What gcc version did Python-xy install for you?
> 
> 2) Does the distutils.cygwincompiler module it installs contain the
> following lines (around about line 300) specifically with the
> '-mno-cygwin' option?
> 
>  self.set_executables(compiler='gcc -mno-cygwin -O -Wall',
>   compiler_so='gcc -mno-cygwin -mdll -O -Wall',
>   compiler_cxx='g++ -mno-cygwin -O -Wall',
>   linker_exe='gcc -mno-cygwin',
>   linker_so='%s -mno-cygwin %s %s'

I installed python-xy 2 years ago with python 2.6 and didn't update, so my
information is not up-to-date

It looks like my MingW version uses mingw32-gcc-4.4.0.exe

for python 2.6 which came with python-xy:
self.set_executables(compiler='gcc -mno-cygwin -O -Wall',
 compiler_so='gcc -mno-cygwin -mdll -O -Wall',
 compiler_cxx='g++ -mno-cygwin -O -Wall',
 linker_exe='gcc -mno-cygwin',
 linker_so='%s -mno-cygwin %s %s'
% (self.linker_dll, shared_option,
   entry_point))

However, I'm running python 2.5, 2.7, 3.2 and 3.3 additionally. And they are
all python.org versions without any changes (except IDLE bugs :).
I don't have any compilation problems with any of them.

Until recently statsmodels used distutils from numpy which adds some patches
AFAIK. The current statsmodels setup.py just uses plain distutils and
setuptools. (The setup.py is largely copied from pandas which has a lot more
C extensions than statsmodels.)

numpy scipy binaries for Windows are still compiled against MingW 3.x, but
David Cournapeau is looking into upgrading to the latest MingW(-64) right now.

also (from some comments about problems a long time ago): I don't have
cygwin installed, so there is no confusion between cygwin and msys/mingw
paths possible. 

Josef

> 
> Oscar
> 




-- 
https://mail.python.org/mailman/listinfo/python-list


Re: statsmodels.api

2013-09-17 Thread Josef Perktold
Josef Perktold  gmail.com> writes:

> 
> Oscar Benjamin  gmail.com> writes:
> 
> > 
> > On 17 September 2013 15:52, Josef Perktold  gmail.com>
wrote:
> > >
> > > On the other hand, python-xy comes with MingW, and I never had any
problems
> > > compiling pandas and statsmodels for any version combination of python and
> > > numpy that I tested (although 32 bit only so far, I never set up the
> > > Microsoft sdk).
> > 
> > Just out of interest: out of the box Python.org distutils is
> > incompatible with recent versions of MinGW. If Python-xy distributes
> > MinGW (and it works) then they're either creating a special patched
> > MinGW set up or patching distutils. I don't want to install Python-xy
> > myself since it'll clobber my existing Python installation but could
> > you answer the following for me:
> > 
> > 1) What gcc version did Python-xy install for you?

I did a bit of homework. I didn't know about the -mno-cygwin issue since it
didn't affect me yet.

python-xy is staying below 4.6: GCC Core, G77, G++ 4.5.2 ; MingW 4.5.2.3 
https://code.google.com/p/pythonxy/wiki/StandardPlugins
and has open issue on it

pandas has an open issue where a user reported problems with --mno-cygwin.

Josef


> 
> Josef
> 
> > 
> > Oscar
> > 
> 
> 




-- 
https://mail.python.org/mailman/listinfo/python-list