Skip to content

Commit 6bfb15b

Browse files
committed
Add Manylinux 2_24 and 2_28
1 parent 2161858 commit 6bfb15b

2 files changed

Lines changed: 27 additions & 4 deletions

File tree

‎.github/workflows/appimage.yml‎

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
image: ['1', '2010', '2014']
17+
image: ['1', '2010', '2014', '2_24', '2_28']
1818
arch: [x86_64, i686]
1919
tag: [cp27-cp27m, cp27-cp27mu, cp35-cp35m, cp36-cp36m, cp37-cp37m,
2020
cp38-cp38, cp39-cp39, cp310-cp310, cp311-cp311]
@@ -37,6 +37,20 @@ jobs:
3737
tag: cp27-cp27mu
3838
- image: '2014'
3939
tag: cp35-cp35m
40+
- image: '2_24'
41+
tag: cp27-cp27m
42+
- image: '2_24'
43+
tag: cp27-cp27mu
44+
- image: '2_24'
45+
tag: cp35-cp35m
46+
- image: '2_28'
47+
tag: cp27-cp27m
48+
- image: '2_28'
49+
tag: cp27-cp27mu
50+
- image: '2_28'
51+
tag: cp35-cp35m
52+
- image: '2_28'
53+
arch: i686
4054

4155
steps:
4256
- uses: actions/checkout@v2

‎python_appimage/commands/build/manylinux.py‎

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@ def _unpack_args(args):
1919
return args.tag, args.abi, args.contained
2020

2121

22+
def _manylinux_tag(tag):
23+
'''Format Manylinux tag
24+
'''
25+
if tag.startswith('2_'):
26+
return 'manylinux_' + tag
27+
else:
28+
return 'manylinux' + tag
29+
30+
2231
def _get_appimage_name(abi, tag):
2332
'''Format the Python AppImage name using the ABI and OS tags
2433
'''
@@ -27,8 +36,8 @@ def _get_appimage_name(abi, tag):
2736
fullversion = desktop[13:-8]
2837

2938
# Finish building the AppImage on the host. See below.
30-
return 'python{:}-{:}-manylinux{:}.AppImage'.format(
31-
fullversion, abi, tag)
39+
return 'python{:}-{:}-{:}.AppImage'.format(
40+
fullversion, abi, _manylinux_tag(tag))
3241

3342

3443
def execute(tag, abi, contained=False):
@@ -37,7 +46,7 @@ def execute(tag, abi, contained=False):
3746

3847
if not contained:
3948
# Forward the build to a Docker image
40-
image = 'quay.io/pypa/manylinux' + tag
49+
image = 'quay.io/pypa/' + _manylinux_tag(tag)
4150
python = '/opt/python/' + abi + '/bin/python'
4251

4352
pwd = os.getcwd()

0 commit comments

Comments
 (0)