3535 - name : Install Python build tools
3636 run : |
3737 python -m pip install --upgrade pip
38- pip install wheel setuptools auditwheel
38+ pip install build wheel setuptools auditwheel
3939
4040 - name : Clone dlib
4141 run : |
5757 run : |
5858 cd dlib_src
5959 mkdir -p dist_repaired/
60- if [ -f dist/*.whl ]; then
61- auditwheel repair dist/*.whl -w dist_repaired/ || cp dist/*.whl dist_repaired/
62- else
63- echo "No wheel found to repair"
64- exit 1
65- fi
60+ # auditwheel may fail on ubuntu-latest, so fallback to copy
61+ auditwheel repair dist/*.whl -w dist_repaired/ || cp dist/*.whl dist_repaired/
6662
6763 - name : Upload build artifact
6864 uses : actions/upload-artifact@v4
7672 strategy :
7773 fail-fast : false
7874 matrix :
79- python-version : ['3.11', '3.12', '3.13', '3.14' ]
75+ python-version : ['3.11', '3.12']
8076 timeout-minutes : 90
8177
8278 steps :
9490 -v ${{ github.workspace }}:/workspace \
9591 -w /workspace \
9692 quay.io/pypa/manylinux2014_aarch64 \
97- bash -c "
93+ bash -c '
9894 export PYTHON_VERSION=${{ matrix.python-version }}
9995
10096 # Install system dependencies
@@ -104,37 +100,35 @@ jobs:
104100 libpng-devel libjpeg-devel libtiff-devel git \
105101 gcc gcc-c++ make atlas-devel
106102
107- # Set up Python
108- if [ \"\ $PYTHON_VERSION\ " = \ "3.11\ " ]; then
103+ # Set up Python based on version
104+ if [ " $PYTHON_VERSION" = "3.11" ]; then
109105 PYBIN=/opt/python/cp311-cp311/bin
110- elif [ \"\ $PYTHON_VERSION\ " = \ "3.12\ " ]; then
106+ elif [ " $PYTHON_VERSION" = "3.12" ]; then
111107 PYBIN=/opt/python/cp312-cp312/bin
108+ else
109+ echo "Unsupported Python version: $PYTHON_VERSION"
110+ exit 1
112111 fi
113112
114- \ $PYBIN/pip install --upgrade pip wheel setuptools
113+ $PYBIN/pip install --upgrade pip wheel setuptools auditwheel
115114
116115 # Clone and build dlib
117116 git clone --depth 1 --branch v19.24 https://github.com/davisking/dlib.git dlib_src
118117 cd dlib_src
119118
120- # Use cmake3 if available
121- CMAKE_CMD=cmake3
122- if ! command -v cmake3 &> /dev/null; then
123- CMAKE_CMD=cmake
124- fi
125- export CMAKE_EXECUTABLE=\$CMAKE_CMD
126-
127- \$PYBIN/python setup.py bdist_wheel
119+ # Build wheel
120+ $PYBIN/python setup.py bdist_wheel
128121
129- # Create output directory and repair wheel if it exists
122+ # Create output directory and repair wheel
130123 mkdir -p /workspace/dist_final/
131124 if [ -f dist/*.whl ]; then
132- auditwheel repair dist/*.whl -w /workspace/dist_final/
125+ $PYBIN/ auditwheel repair dist/*.whl -w /workspace/dist_final/
133126 else
134- echo \"No wheel found to repair\"
127+ echo "No wheel found to repair"
128+ ls -la dist/
135129 exit 1
136130 fi
137- "
131+ '
138132
139133 - name : Upload build artifact
140134 uses : actions/upload-artifact@v4
@@ -168,15 +162,13 @@ jobs:
168162 with :
169163 name : Release ${{ github.ref_name }}
170164 body : |
171- Prebuilt dlib wheels for Linux (x86_64 and aarch64) on Python 3.11, 3.12, 3.13, and 3.14
165+ Prebuilt dlib wheels for Linux (x86_64 and aarch64) on Python 3.11 and 3.12
172166
173167 **Installation:**
174- ```bash
175168 pip install dlib-*.whl
176- ```
177169
178170 Choose the wheel that matches your:
179- - Python version (cp311, cp312, cp313, or cp314 )
171+ - Python version (cp311 or cp312 )
180172 - Architecture (x86_64 or aarch64)
181173 files : wheels/*.whl
182174 draft : false
0 commit comments