digidem/better-sqlite3-nodejs-mobile

Workflow fails due to lack of python 2

Closed this issue · 2 comments

I effectively updated the workflow runner from Ubuntu 20 to 24 via #1 due to 20 no longer being available. However, the reason we had it pinned to 20 was the availability of python 2 on the machine by default, which is used by the version of node-gyp that's used in the workflow for creating the prebuilds. python 2 was removed as of Ubuntu 22, so we'll need to update the workflow to install a compatible python version separately.

Seems like https://github.com/actions/setup-python no longer allows using python 2, so other options include:

  • attempt to use the python2 container image via the container workflow options
  • build python 2 from source
  • find another third-party action that allows us to use python 2
  • somehow use a different version of node-gyp that supports python 3

Example worfklow failure: https://github.com/digidem/better-sqlite3-nodejs-mobile/actions/runs/17554603118

Potential option that seems to try its best to allow usage of python versions removed from the official action: https://github.com/MatteoH2O1999/setup-python

Fixed via #4