Skip to content

BLD: Fix build issues - #2007

Merged
jseabold merged 2 commits into
statsmodels:masterfrom
jseabold:fix-build-issues
Sep 25, 2014
Merged

jseabold merged 2 commits into
statsmodels:masterfrom
jseabold:fix-build-issues

Conversation

@jseabold

Copy link
Copy Markdown
Member

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.

jseabold added a commit that referenced this pull request Sep 25, 2014
@jseabold
jseabold merged commit a4e4eb8 into statsmodels:master Sep 25, 2014
@jseabold
jseabold deleted the fix-build-issues branch September 25, 2014 23:41
Comment thread setup.py

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks to me now you will always trigger an update of numpy, exactly what we want to avoid.
Doesn't it?
unconditional install_requires, setup_requires

pip will have _have_setuptools is True

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On Thu, Sep 25, 2014 at 8:33 PM, Josef Perktold [email protected]
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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If patsy is missing, then install_requires contains 'patsy' (which triggers a chain reaction) ?

@josef-pkt

Copy link
Copy Markdown
Member

What we could do is make it conditional on
if 'numpy not in setup_requires: then let pip/setuptools handle all dependencies.
else throw an error as we did before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consider depending on setuptools in setup.py

2 participants