Skip to content

Commit cbed117

Browse files
committed
Fixup wheel for ubuntu
1 parent c08914c commit cbed117

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

.github/workflows/publish-to-pypi.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,13 @@ jobs:
6868
os: ubuntu-latest
6969
arch: x86_64
7070
pyarch: x64
71-
asset: "liblsl-${LSL_RELEASE}-noble_amd64.tar.gz"
71+
asset: "liblsl-${LSL_RELEASE}-noble_amd64.deb"
7272
extract: |
73-
tar -xzf liblsl.tar.gz
74-
cp liblsl-${LSL_RELEASE}-noble_amd64/lib/liblsl.so* src/pylsl/lib/
73+
sudo apt-get update && sudo apt-get install -y libpugixml1v5
74+
ar x liblsl.deb
75+
tar -xf data.tar.* --wildcards '*/liblsl.so*'
76+
cp ./usr/lib/liblsl.so* src/pylsl/lib/
77+
repair: true
7578
steps:
7679
- uses: actions/checkout@v4
7780
with:
@@ -85,6 +88,8 @@ jobs:
8588
curl -L "${LSL_RELEASE_URL}/${ASSET}" -o xcframework.zip
8689
elif [[ "$ASSET" == *.zip ]]; then
8790
curl -L "${LSL_RELEASE_URL}/${ASSET}" -o liblsl.zip
91+
elif [[ "$ASSET" == *.deb ]]; then
92+
curl -L "${LSL_RELEASE_URL}/${ASSET}" -o liblsl.deb
8893
else
8994
curl -L "${LSL_RELEASE_URL}/${ASSET}" -o liblsl.tar.gz
9095
fi
@@ -109,6 +114,13 @@ jobs:
109114
- name: Build wheel
110115
run: uv build --wheel
111116

117+
- name: Repair wheel (Linux)
118+
if: matrix.config.repair
119+
run: |
120+
pip install auditwheel patchelf
121+
auditwheel repair dist/*.whl -w dist/
122+
rm dist/*-none-any.whl
123+
112124
- name: Upload wheels
113125
uses: actions/upload-artifact@v4
114126
with:

0 commit comments

Comments
 (0)