Skip to content

BLD: update openblas download to new location, use manylinux2010-base - #15639

Merged
charris merged 1 commit into
numpy:masterfrom
mattip:update-openblas
Feb 25, 2020
Merged

charris merged 1 commit into
numpy:masterfrom
mattip:update-openblas

Conversation

@mattip

@mattip mattip commented Feb 24, 2020

Copy link
Copy Markdown
Member

Since our free rackspace hosting ran out, we have begun uploading build artifacts to anaconda.org. This PR:

  • updates the URL to download from anaconda.org
  • uses urllib3 to download, since the new URL on anaconda.org does not work with the stdlib urllib (at least not for me)
  • uses a manylinux2010 build of openblas instead of the manylinux1 one, perhaps that will help with the segfault on 32-bit linux in update submodules to latest versions MacPython/numpy-wheels#73

@charris

charris commented Feb 24, 2020

Copy link
Copy Markdown
Member

The libraries all say they are OpenBLAS version 0.3.5, I thought we had fixed that.

@mattip

mattip commented Feb 24, 2020

Copy link
Copy Markdown
Member Author

Only the file name is 0.3.5, since this was before the release of 0.3.8 (which was released but has some problems). Internally it is 0.3.8

@charris

charris commented Feb 24, 2020

Copy link
Copy Markdown
Member

Only the file name is 0.3.5,

That is what I was curious about. The last on the old site were 0.3.7.

@tylerjereddy

Copy link
Copy Markdown
Contributor

Yeah, it is possible for the version numbers in openblas filenames to go backwards when the version of OpenBLAS increases, at least on the development branch. It is a little confusing and we should clean it up, but there are always other fires to put out... like this rackspace thing!

I actually started the work to vendor openblas_support.py for SciPy this morning & ran into the urllib issue as well, although my approach may be slightly different... anyway I'll ping Matti when I open that PR..

@tylerjereddy

tylerjereddy commented Feb 25, 2020 •

Copy link
Copy Markdown
Contributor

At least there is an actual version check happening on the linked in OpenBLAS. The Shippable failure is the Python OpenBLAS download failure.

Comment thread tools/openblas_support.py
return None
print("Saving to file", file=sys.stderr)
with open(target, 'wb') as fid:
fid.write(response.data)

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.

Rather than change to urllib3, scipy went in the direction of adding a agent header to the url request in scipy/sicpy#11585. I didn't want to do anything non-standard when downloading, even a the cost of another pip install

@mattip

mattip commented Feb 25, 2020

Copy link
Copy Markdown
Member Author

Build is green: openblas now uploads to the correct places.

@mattip
mattip requested a review from charris February 25, 2020 18:46
Comment thread azure-pipelines.yml
target=\$(python3 tools/openblas_support.py) && \
cp -r \$target/lib/* /usr/lib && \
cp \$target/include/* /usr/include && \
yum install -y libgfortran-4.4.7 && \

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 version fo gfortran is no longer used?

@charris

charris commented Feb 25, 2020

Copy link
Copy Markdown
Member

Don't see anything obviously wrong and the CI is green. In it goes. Thanks Matti.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants