Skip to content

Commit 5561066

Browse files
committed
license: add winpthreads license for wheels
1 parent 1bb4155 commit 5561066

File tree

2 files changed

+69
-6
lines changed

2 files changed

+69
-6
lines changed

pyproject.toml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,18 @@ before-build = "pip install wheel delvewheel"
149149
repair-wheel-command = [
150150
"""python bin/cibw_repair_wheel_licenses.py {wheel} \
151151
--license LGPL-3.0-or-later \
152-
--license-file '.local/src/gmp-*/COPYING:python-flint.libs/gmp-*/COPYING' \
153-
--license-file '.local/src/gmp-*/COPYING.LESSERv3:python-flint.libs/gmp-*/COPYING.LESSERv3' \
154-
--license-file '.local/src/mpfr-*/COPYING:python-flint.libs/mpfr-*/COPYING' \
155-
--license-file '.local/src/mpfr-*/COPYING.LESSER:python-flint.libs/mpfr-*/COPYING.LESSER' \
156-
--license-file '.local/src/flint-*/COPYING:python-flint.libs/flint-*/COPYING' \
157-
--license-file '.local/src/flint-*/COPYING.LESSER:python-flint.libs/flint-*/COPYING.LESSER' \
152+
--license-file .local/src/gmp-*/COPYING:python-flint.libs/gmp-*/COPYING \
153+
--license-file .local/src/gmp-*/COPYING.LESSERv3:python-flint.libs/gmp-*/COPYING.LESSERv3 \
154+
--license-file .local/src/mpfr-*/COPYING:python-flint.libs/mpfr-*/COPYING \
155+
--license-file .local/src/mpfr-*/COPYING.LESSER:python-flint.libs/mpfr-*/COPYING.LESSER \
156+
--license-file .local/src/flint-*/COPYING:python-flint.libs/flint-*/COPYING \
157+
--license-file .local/src/flint-*/COPYING.LESSER:python-flint.libs/flint-*/COPYING.LESSER \
158+
\
159+
--license MIT AMD BSD-3-Clause-Clear \
160+
--license-file wheels/winpthread_COPYING:python-flint.libs/winpthreads/COPYING \
161+
\
162+
--license GPL-3.0-or-later WITH GCC-exception-3.1 AND LGPL-2.1-or-later \
158163
""",
164+
# Need license file for libgcc_s_seh-1.dll
159165
"delvewheel repair -w {dest_dir} {wheel} --add-path .local/bin",
160166
]

wheels/winpthreads_COPYING

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
Copyright (c) 2011 mingw-w64 project
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a
4+
copy of this software and associated documentation files (the "Software"),
5+
to deal in the Software without restriction, including without limitation
6+
the rights to use, copy, modify, merge, publish, distribute, sublicense,
7+
and/or sell copies of the Software, and to permit persons to whom the
8+
Software is furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in
11+
all copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
18+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
19+
DEALINGS IN THE SOFTWARE.
20+
21+
22+
/*
23+
* Parts of this library are derived by:
24+
*
25+
* Posix Threads library for Microsoft Windows
26+
*
27+
* Use at own risk, there is no implied warranty to this code.
28+
* It uses undocumented features of Microsoft Windows that can change
29+
* at any time in the future.
30+
*
31+
* (C) 2010 Lockless Inc.
32+
* All rights reserved.
33+
*
34+
* Redistribution and use in source and binary forms, with or without modification,
35+
* are permitted provided that the following conditions are met:
36+
*
37+
*
38+
* * Redistributions of source code must retain the above copyright notice,
39+
* this list of conditions and the following disclaimer.
40+
* * Redistributions in binary form must reproduce the above copyright notice,
41+
* this list of conditions and the following disclaimer in the documentation
42+
* and/or other materials provided with the distribution.
43+
* * Neither the name of Lockless Inc. nor the names of its contributors may be
44+
* used to endorse or promote products derived from this software without
45+
* specific prior written permission.
46+
*
47+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AN
48+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
49+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
50+
* IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
51+
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
52+
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
53+
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
54+
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
55+
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
56+
* OF THE POSSIBILITY OF SUCH DAMAGE.
57+
*/

0 commit comments

Comments
 (0)