Show More
@@ -0,0 +1,28 | |||||
|
1 | #!/bin/bash | |||
|
2 | # build a single linux wheel within a prepared imaged based on manylinux images | |||
|
3 | # | |||
|
4 | # | |||
|
5 | # | |||
|
6 | set -eu | |||
|
7 | ||||
|
8 | # enforce that the translation are built | |||
|
9 | export MERCURIAL_SETUP_FORCE_TRANSLATIONS=1 | |||
|
10 | ||||
|
11 | if [ $# -lt 2 ]; then | |||
|
12 | echo "usage $0 PYTHONTAG DEST_DIR" >&2 | |||
|
13 | echo "" >&2 | |||
|
14 | echo 'PYTHONTAG should be of the form "cp310-cp310"' >&2 | |||
|
15 | exit 64 | |||
|
16 | fi | |||
|
17 | py_tag=$1 | |||
|
18 | destination_directory=$2 | |||
|
19 | ||||
|
20 | ||||
|
21 | tmp_wheel_dir=./tmp-wheelhouse | |||
|
22 | ||||
|
23 | if [ -e $tmp_wheel_dir ]; then | |||
|
24 | rm -rf $tmp_wheel_dir | |||
|
25 | fi | |||
|
26 | /opt/python/$py_tag/bin/python setup.py bdist_wheel --dist-dir $tmp_wheel_dir | |||
|
27 | # adjust it to make it universal | |||
|
28 | auditwheel repair $tmp_wheel_dir/*.whl -w $destination_directory |
@@ -63,8 +63,7 variables: | |||||
63 | - test -n "$WHEEL_TYPE" |
|
63 | - test -n "$WHEEL_TYPE" | |
64 | - echo $FLAVOR |
|
64 | - echo $FLAVOR | |
65 | - mkdir -p wheels/$PLATFORM/$WHEEL_TYPE/$BUILD_PY_ID |
|
65 | - mkdir -p wheels/$PLATFORM/$WHEEL_TYPE/$BUILD_PY_ID | |
66 | - /opt/python/$BUILD_PY_ID/bin/python setup.py bdist_wheel --dist-dir tmp-wheelhouse |
|
66 | - contrib/build-one-linux-wheel.sh $BUILD_PY_ID wheels/$PLATFORM/$WHEEL_TYPE/$BUILD_PY_ID | |
67 | - auditwheel repair tmp-wheelhouse/*.whl -w wheels/$PLATFORM/$WHEEL_TYPE/$BUILD_PY_ID |
|
|||
68 | artifacts: |
|
67 | artifacts: | |
69 | paths: |
|
68 | paths: | |
70 | - wheels/ |
|
69 | - wheels/ |
General Comments 0
You need to be logged in to leave comments.
Login now