Skip to content

Commit 478cdc6

Browse files
committed
Append to LICENSE before CIBW step
1 parent 02bc984 commit 478cdc6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/wheels.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,9 @@ jobs:
9595
env:
9696
CIBW_BEFORE_BUILD: >-
9797
rm -rf {package}/build &&
98-
cat ${{ github.workspace }}/tools/wheels/LICENSE_binary.txt >> {package}/LICENSE/LICENSE
9998
CIBW_BEFORE_BUILD_WINDOWS: >-
10099
pip install delvewheel &&
101100
rm -rf {package}/build &&
102-
cat ${{ github.workspace }}/tools/wheels/LICENSE_binary.txt >> {package}/LICENSE/LICENSE
103101
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: >-
104102
delvewheel repair -w {dest_dir} {wheel}
105103
# On Windows, we explicitly request MSVC compilers (as GitHub Action runners have
@@ -148,6 +146,9 @@ jobs:
148146
name: cibw-sdist
149147
path: dist/
150148

149+
- name: Update LICENSE for binary distrobution
150+
run: cat ${{ github.workspace }}/tools/wheels/LICENSE_binary.txt >> dist/${{ needs.build_sdist.outputs.SDIST_NAME }}/LICENSE/LICENSE
151+
151152
- name: Build wheels for CPython 3.14
152153
uses: pypa/cibuildwheel@9c00cb4f6b517705a3794b22395aedc36257242c # v3.2.1
153154
with:

0 commit comments

Comments
 (0)