BLD: Fix build issues

Fixes for #2003 and should fix #1897. AFAICT, there's no reason to be conditional about adding the build and install dependencies depending on what command we've given setup.py. Given that `egg_info` is in `sys.argv` for a regular pip install, let's not try to special case when we do this, because I don't know what any of these mean and a cursory reading of the docs didn't get there.

If everything is already importable, you won't reinstall anything. If not, then you'll install it and you'll get pip's recursive upgrade behavior for any of our dependencies I guess. Oh well.

I think we finally have sane dependency handling.
On Thu, Sep 25, 2014 at 8:33 PM, Josef Perktold <notifications@github.com>
wrote:

> In setup.py:
>
> > @@ -389,12 +389,12 @@ def get_data_files():
> >          # 3.3 needs numpy 1.7+
> >          min_versions.update({"numpy" : "1.7.0b2"})
> >
> > -    if not no_frills:
> > -        (setup_requires,
> > -         install_requires) = check_dependency_versions(min_versions)
> > -        if _have_setuptools:
> > -            setuptools_kwargs['setup_requires'] = setup_requires
> > -            setuptools_kwargs['install_requires'] = install_requires
> > +    (setup_requires,
> > +     install_requires) = check_dependency_versions(min_versions)
> > +
> > +    if _have_setuptools:
> > +        setuptools_kwargs['setup_requires'] = setup_requires
> > +        setuptools_kwargs['install_requires'] = install_requires
>
> This looks to me now you will always trigger an update of numpy, exactly
> what we want to avoid.
> Doesn't it?
>
No.

> unconditional install_requires, setup_requires
>
That are empty.

> pip will have _have_setuptools is True
>
> --
> Reply to this email directly or view it on GitHub
> <https://github.com/statsmodels/statsmodels/pull/2007/files#r18068910>.
>