Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #54319

Re: statsmodels.api

From Josef Perktold <josef.pktd@gmail.com>
Subject Re: statsmodels.api
Date 2013-09-17 16:15 +0000
References (5 earlier) <mailman.68.1379423249.18130.python-list@python.org> <41a1e4b3-e497-43eb-8095-c2254afa2407@googlegroups.com> <CAHVvXxTDyCYzg0=82S0qDdeXOvxyHrh_Sa1CmWFkFaOkBtYSkQ@mail.gmail.com> <loom.20130917T163532-288@post.gmane.org> <CAHVvXxS_R-GBFw65T55QYLRnJ5Nzy=82UW0KmyOh3L7aQDmxng@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.83.1379434533.18130.python-list@python.org> (permalink)

Show all headers | View raw


Oscar Benjamin <oscar.j.benjamin <at> gmail.com> writes:

> 
> On 17 September 2013 15:52, Josef Perktold <josef.pktd <at> 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
> 



Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

statsmodels.api Davide Dalmasso <davide.dalmasso@gmail.com> - 2013-09-16 08:37 -0700
  Re: statsmodels.api John Gordon <gordon@panix.com> - 2013-09-16 16:30 +0000
  Re: statsmodels.api Ethan Furman <ethan@stoneleaf.us> - 2013-09-16 08:47 -0700
    Re: statsmodels.api Davide Dalmasso <davide.dalmasso@gmail.com> - 2013-09-17 03:10 -0700
      Re: statsmodels.api Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2013-09-17 12:55 +0100
        Re: statsmodels.api Davide Dalmasso <davide.dalmasso@gmail.com> - 2013-09-17 05:13 -0700
          Re: statsmodels.api Josef Pktd <josef.pktd@gmail.com> - 2013-09-17 06:02 -0700
          Re: statsmodels.api Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2013-09-17 14:06 +0100
            Re: statsmodels.api Josef Pktd <josef.pktd@gmail.com> - 2013-09-17 06:35 -0700
              Re: statsmodels.api Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2013-09-17 15:10 +0100
                Re: statsmodels.api Davide Dalmasso <davide.dalmasso@gmail.com> - 2013-09-17 07:46 -0700
              Re: statsmodels.api Josef Perktold <josef.pktd@gmail.com> - 2013-09-17 14:52 +0000
              Re: statsmodels.api Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2013-09-17 16:41 +0100
              Re: statsmodels.api Josef Perktold <josef.pktd@gmail.com> - 2013-09-17 16:15 +0000
              Re: statsmodels.api Josef Perktold <josef.pktd@gmail.com> - 2013-09-18 00:03 +0000
  Re: statsmodels.api Davide Dalmasso <davide.dalmasso@gmail.com> - 2013-09-17 05:15 -0700

csiph-web