@@ -133852,7 +133852,7 @@ async function fetchUrlAsBuffer(url2) {
133852133852 throw new Error(`Failed to fetch ${url2}`);
133853133853 return import_node_buffer4.Buffer.from(response.body);
133854133854}
133855- async function findPythonVersion(version3, architecture, allowPreReleases, updateEnvironment = true) {
133855+ async function findPythonVersion(version3, architecture, allowPreReleases, freethreaded, updateEnvironment = true) {
133856133856 let pythonVersion = "";
133857133857 if (isPyPyVersion(version3)) {
133858133858 const installed = await findPyPyVersion(
@@ -133874,7 +133874,7 @@ async function findPythonVersion(version3, architecture, allowPreReleases, updat
133874133874 updateEnvironment,
133875133875 false,
133876133876 allowPreReleases,
133877- false
133877+ freethreaded
133878133878 );
133879133879 pythonVersion = installed.version;
133880133880 info(`Successfully set up ${installed.impl} (${pythonVersion})`);
@@ -133999,14 +133999,15 @@ async function run() {
133999133999 const pythonVersion = resolveVersionInput()[0] || "3.x";
134000134000 const updateEnvironment = getBooleanInput("update-python");
134001134001 const allowPythonPreReleases = getBooleanInput("allow-python-prereleases");
134002+ const freethreaded = getBooleanInput("freethreaded");
134002134003 const cmdArgs = ["-"];
134003134004 if (getBooleanInput("prerelease"))
134004134005 cmdArgs.push("--prerelease");
134005134006 if (pdmVersion)
134006134007 cmdArgs.push("--version", pdmVersion);
134007134008 cmdArgs.push("-o", "install-output.json");
134008134009 try {
134009- const installedPython = await findPythonVersion(pythonVersion, arch4, allowPythonPreReleases, updateEnvironment);
134010+ const installedPython = await findPythonVersion(pythonVersion, arch4, allowPythonPreReleases, freethreaded, updateEnvironment);
134010134011 if (import_node_process5.default.platform === "linux") {
134011134012 if (import_node_process5.default.arch === "x64") {
134012134013 exportVariable("LD_PRELOAD", "/lib/x86_64-linux-gnu/libgcc_s.so.1");
0 commit comments