macOS python-3.10 wheels failing to find Python-3.10
The Python-3.10 wheels have been failing to build on macOS, I think this is because the regex that determines the python version from the job name isn't working correctly. The code that determines the python version from the job name, from current master
, is here. If I try this same code in a local terminal I get the following:
❯ CI_JOB_NAME="wheel:cp310-cp310-macosx:"
❯ PYTHON=$(which python$(echo ${CI_JOB_NAME} | sed 's/.*:cp\(.\)\(.\).*/\1.\2/'))
/usr/bin/which: no python3.1 in (/opt/Conda/condabin:/home/ram/.local/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/ram/bin:/opt/puppetlabs/bin)
i.e. it is returning python3.1
and not python3.10
.
An example of a failed job is here
@duncanmmacleod @leo-singer, any thoughts on how to update the regex? Or do we need to find another way to set the appropriate version?
Edited by Adam Mercer