Skip to content

Commit

Permalink
src: switch to Python 3.11 rather than Python 3.x for now
Browse files Browse the repository at this point in the history
This is a workaround for Python 3.12 dropping distutils.

For a proper fix, we could either depend on setuptools still for the bundled copy
of tree-sitter-bash (we allow using the system copy but the action doesn't use it)
or port away from that too.

Fixes: #13
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
thesamesam committed Oct 28, 2023
1 parent 5e6e4a1 commit 5ecf967
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65936,7 +65936,7 @@ async function run() {
// use vendored setup-python action
// https://github.com/actions/setup-python/issues/38
await core.group('Set up python', async () => {
const installed = await setupPython.findPythonVersion('3.x', 'x64');
const installed = await setupPython.findPythonVersion('3.11', 'x64');
core.info(`Successfully set up ${installed.impl}-${installed.version}`);
});

Expand Down
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ async function run() {
// use vendored setup-python action
// https://github.com/actions/setup-python/issues/38
await core.group('Set up python', async () => {
const installed = await setupPython.findPythonVersion('3.x', 'x64');
// XXX: 3.11 is a temporary hack for https://github.com/pkgcore/pkgcheck-action/issues/13
const installed = await setupPython.findPythonVersion('3.11', 'x64');
core.info(`Successfully set up ${installed.impl}-${installed.version}`);
});

Expand Down

0 comments on commit 5ecf967

Please sign in to comment.