6767 with :
6868 python-version : ' 3.11'
6969
70- # Something changed somewhere that prevents the downloaded-at-build-time
71- # licenses from being included in built wheels, so pre-download them so
72- # that they exist before the build and are included.
73- - name : Pre-download bundled licenses
74- run : |
75- mkdir -p LICENSE
76- curl -Lo LICENSE/LICENSE_QHULL https://github.com/qhull/qhull/raw/2020.2/COPYING.txt
7770
7871 - name : Install dependencies
7972 run : python -m pip install build twine
@@ -101,10 +94,12 @@ jobs:
10194 runs-on : ${{ matrix.os }}
10295 env :
10396 CIBW_BEFORE_BUILD : >-
104- rm -rf {package}/build
97+ rm -rf {package}/build &&
98+ cat {package}/../tools/wheel/LICENSE_binary.txt >> {package}/LICENSE/LICENSE
10599 CIBW_BEFORE_BUILD_WINDOWS : >-
106100 pip install delvewheel &&
107- rm -rf {package}/build
101+ rm -rf {package}/build &&
102+ cat {package}/../tools/wheel/LICENSE_binary.txt >> {package}/LICENSE/LICENSE
108103 CIBW_REPAIR_WHEEL_COMMAND_WINDOWS : >-
109104 delvewheel repair -w {dest_dir} {wheel}
110105 # On Windows, we explicitly request MSVC compilers (as GitHub Action runners have
@@ -121,7 +116,7 @@ jobs:
121116 CIBW_TEST_COMMAND : >-
122117 python -m pip install build twine &&
123118 twine check {wheel} &&
124- python {package}/ci/check_wheel_licenses.py {wheel} &&
119+ # python {package}/ci/check_wheel_licenses.py {wheel} && # Disabled because we concatenate into one file here
125120 python {package}/ci/check_version_number.py
126121 MACOSX_DEPLOYMENT_TARGET : " 10.12"
127122 strategy :
0 commit comments