Skip to content

Commit 4f2161c

Browse files
authored
Merge pull request #61 from TEOS-10/wheel_take_4
2 parents 168ed91 + 6029255 commit 4f2161c

File tree

3 files changed

+25
-19
lines changed

3 files changed

+25
-19
lines changed
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/sh
2+
3+
PYTHONS=("cp36-cp36m" "cp37-cp37m" "cp38-cp38")
4+
5+
for PYTHON in ${PYTHONS[@]}; do
6+
/opt/python/${PYTHON}/bin/pip install --upgrade pip wheel setuptools setuptools_scm pep517 twine auditwheel
7+
/opt/python/${PYTHON}/bin/pip install numpy==1.18
8+
/opt/python/${PYTHON}/bin/python -m pep517.build --source --binary . --out-dir /github/workspace/wheelhouse/
9+
done
10+
11+
for whl in /github/workspace/wheelhouse/gsw*.whl; do
12+
auditwheel repair $whl
13+
done
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: 'build wheels with manylinux2010_x86_64'
2+
description: 'build wheels with manylinux2010_x86_64'
3+
runs:
4+
using: 'docker'
5+
image: docker://quay.io/pypa/manylinux2010_x86_64
6+
args:
7+
- .github/workflows/actions/entrypoint.sh

.github/workflows/build_linux.yml

+5-19
Original file line numberDiff line numberDiff line change
@@ -7,33 +7,19 @@ on:
77

88
jobs:
99
packages:
10-
name: Build wheel on ${{ matrix.os }} and ${{ matrix.python-version }}
11-
runs-on: ${{ matrix.os }}
12-
strategy:
13-
matrix:
14-
os: [ubuntu-latest]
15-
python-version: [3.6, 3.7, 3.8]
16-
10+
runs-on: ubuntu-latest
1711
steps:
1812
- uses: actions/checkout@v2
1913

2014
- name: Get tags
2115
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
2216
shell: bash
2317

24-
- name: Set up Python ${{ matrix.python-version }}
25-
uses: actions/setup-python@v2
26-
with:
27-
python-version: ${{ matrix.python-version }}
28-
29-
- name: Install build tools
18+
- uses: ./.github/workflows/actions/manylinux2010_x86_64
19+
- name: copy manylinux wheels
3020
run: |
31-
python -m pip install --upgrade pip wheel setuptools setuptools_scm pep517 twine
32-
python -m pip install numpy==1.18
33-
shell: bash
34-
35-
- name: Build binary wheel
36-
run: python -m pep517.build --binary . --out-dir dist
21+
mkdir dist
22+
cp wheelhouse/gsw*-manylinux2010_x86_64.whl dist/
3723
3824
- name: CheckFiles
3925
run: |

0 commit comments

Comments
 (0)