GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||
GeezerVison is showing github.com — BLD: add libquadmath to licences and other tweaks by mattip · Pull Request #24753 · numpy/numpy Conversation
Member
As pointed out in MacPython/openblas-libs#114, we are bundling libquadmath which is licensed differently than the rest of the gcc runtimes. This PR
cc @rgommers for review? I think this should be backported. While #24613 to use Accelerate for macos-arm64 was backported, I see the 1.26 wheels are still using OpenBLAS, so the license should not change.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
|
I took the libquadmath license from the appropriate section in my (debian) /usr/share/doc/gcc-12-base/copyright. Note that that file mistakenly lists the wrong license for Edit: here is the debian bug https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1052314 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Diving into the actual code will show that each file has a license, most are like this |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
I don't think we need to include very granular per-file copyright statements. The upstream GCC license I linked is standard LGPL as far as I can tell.
That is perfectly normal, but not really relevant imho. We also have public-domain code in NumPy and SciPy, and since that's BSD-3 compatible we make no attempt to list per-file differences in our own |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
libgfortan, as the LICENSE text in NumPy currently indicates, is released under gpl v3 with an exception. libquadmath, as you point out, is released under lgpl 2.1 and some files are specifically LGPL2.0 or later. So I can simplify the PR to use LGPL2.1 for libquadmath. A single file has a "Public Domain" license, I guess we can put that in the "more permissive" category and not list it separately. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…] [skip azp] [skip actions]
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks Matti. A few minor comments, and one that looks critical: the path to the bundled libraries for the Windows wheels is indeed numpy.libs\ now and not .libs, however the _distributor_init.py still uses .libs. I don't quite understand how this isn't broken. If you have a Windows machine at hand, can you check?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
A bit of magic that came in with the overly-large #23838 and I didn't realize at the time. We now use delvewheel to repair the wheel, which adds this snippet to the beginning of so actually, we don't need the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I fixed the review comments and changed all the specifiers to be spdx compliant |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
We do on Python 3.9: conda/conda#10897 (comment). We should fix |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
For python3.9 or conda, delvewheel does it differently: Edit: Note I agree we should make CI more like |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I cherry-picked the change from #24765 into this PR |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Closes #24764 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks Matti! I'll squash-merge this for ease of backporting.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This is an uncertain backport due to the changes made during the testing cleanup. I'm tempted to just take all the changes into 1.26.x, but that requires some checking that nothing gets lost . 2.0.0 and 1.26.x do build the same wheels at this point. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
It looks like all changes are okay to backport here, except possibly the env var removal in |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Other improvements: - use SPDX short specifiers, fixes from review - only use `openblas_support.make_init()` in CI, fix paths - fix license concatenation for wheels we distribute Closes numpygh-24764
Other improvements: - use SPDX short specifiers, fixes from review - only use `openblas_support.make_init()` in CI, fix paths - fix license concatenation for wheels we distribute Closes numpygh-24764
BLD: add libquadmath to licences and other tweaks (#24753)
Other improvements: - use SPDX short specifiers, fixes from review - only use `openblas_support.make_init()` in CI, fix paths - fix license concatenation for wheels we distribute Closes numpygh-24764
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.