Skip to content

Commit 55fa51f

Browse files
committed
Build fixes
1 parent fc957cc commit 55fa51f

3 files changed

Lines changed: 9 additions & 47 deletions

File tree

.github/workflows/deploy-package-action.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,6 @@ jobs:
2626
name: Python Wheel aarch64
2727
path: dist
2828

29-
- name: Download Windows Python Package Artifacts
30-
uses: actions/download-artifact@v4
31-
with:
32-
name: Python Wheel Windows
33-
path: dist
34-
3529
- name: List dist directory
3630
run: ls -la dist/
3731

.github/workflows/package-action.yml

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
runs-on: ${{ matrix.runner }}
6060

6161
container:
62-
image: debian:11
62+
image: python:3.10-bullseye
6363
outputs:
6464
version: ${{ steps.version.outputs.version }}
6565
steps:
@@ -71,8 +71,7 @@ jobs:
7171
7272
- name: Install OS Dependencies
7373
run: >-
74-
apt-get install -y python3
75-
python3-pip python3-venv patchelf build-essential m4 texinfo
74+
apt-get install -y patchelf build-essential m4 texinfo
7675
7776
- name: Create virtualenv
7877
run: >-
@@ -114,31 +113,3 @@ jobs:
114113
>>
115114
$GITHUB_OUTPUT
116115
id: version
117-
118-
build-windows:
119-
name: Build Python Wheel (Windows)
120-
runs-on: windows-latest
121-
steps:
122-
- uses: actions/checkout@master
123-
124-
- name: Set up Python
125-
uses: actions/setup-python@v4
126-
with:
127-
python-version: '3.10'
128-
129-
- name: Install Python Dependencies
130-
run: |
131-
pip install build wheel setuptools pkginfo
132-
133-
- name: Build Wheel
134-
run: |
135-
${{ inputs.cmd }}
136-
shell: bash
137-
138-
- name: Python Build Artifact
139-
uses: actions/upload-artifact@v4
140-
if: always()
141-
with:
142-
name: Python Wheel Windows
143-
path: dist/*.whl
144-
retention-days: 5

setup.py

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,11 @@ def plat_name():
1212
return f"manylinux_{GLIBC_VERSION.replace('.', '_')}_{platform.machine()}"
1313

1414

15-
options = {
16-
"bdist_wheel": {
17-
"python_tag": "py3",
15+
setup(
16+
options={
17+
"bdist_wheel": {
18+
"plat_name": f"{plat_name()}",
19+
"python_tag": "py3",
20+
}
1821
}
19-
}
20-
21-
if platform.system() == "Linux":
22-
options["bdist_wheel"]["plat_name"] = plat_name()
23-
24-
25-
setup(options=options)
22+
)

0 commit comments

Comments
 (0)