mirror of
https://github.com/astral-sh/setup-uv.git
synced 2025-04-18 22:47:05 -05:00
Compare commits
No commits in common. "main" and "v5.4" have entirely different histories.
2 changed files with 8 additions and 2 deletions
5
dist/setup/index.js
generated
vendored
5
dist/setup/index.js
generated
vendored
|
@ -124394,9 +124394,12 @@ async function setupPython() {
|
||||||
if (inputs_1.pythonVersion !== "") {
|
if (inputs_1.pythonVersion !== "") {
|
||||||
core.exportVariable("UV_PYTHON", inputs_1.pythonVersion);
|
core.exportVariable("UV_PYTHON", inputs_1.pythonVersion);
|
||||||
core.info(`Set UV_PYTHON to ${inputs_1.pythonVersion}`);
|
core.info(`Set UV_PYTHON to ${inputs_1.pythonVersion}`);
|
||||||
|
const options = {
|
||||||
|
silent: !core.isDebug(),
|
||||||
|
};
|
||||||
const execArgs = ["venv", "--python", inputs_1.pythonVersion];
|
const execArgs = ["venv", "--python", inputs_1.pythonVersion];
|
||||||
core.info("Activating python venv...");
|
core.info("Activating python venv...");
|
||||||
await exec.exec("uv", execArgs);
|
await exec.exec("uv", execArgs, options);
|
||||||
let venvBinPath = ".venv/bin";
|
let venvBinPath = ".venv/bin";
|
||||||
if (process.platform === "win32") {
|
if (process.platform === "win32") {
|
||||||
venvBinPath = ".venv/Scripts";
|
venvBinPath = ".venv/Scripts";
|
||||||
|
|
|
@ -167,10 +167,13 @@ async function setupPython(): Promise<void> {
|
||||||
if (pythonVersion !== "") {
|
if (pythonVersion !== "") {
|
||||||
core.exportVariable("UV_PYTHON", pythonVersion);
|
core.exportVariable("UV_PYTHON", pythonVersion);
|
||||||
core.info(`Set UV_PYTHON to ${pythonVersion}`);
|
core.info(`Set UV_PYTHON to ${pythonVersion}`);
|
||||||
|
const options: exec.ExecOptions = {
|
||||||
|
silent: !core.isDebug(),
|
||||||
|
};
|
||||||
const execArgs = ["venv", "--python", pythonVersion];
|
const execArgs = ["venv", "--python", pythonVersion];
|
||||||
|
|
||||||
core.info("Activating python venv...");
|
core.info("Activating python venv...");
|
||||||
await exec.exec("uv", execArgs);
|
await exec.exec("uv", execArgs, options);
|
||||||
|
|
||||||
let venvBinPath = ".venv/bin";
|
let venvBinPath = ".venv/bin";
|
||||||
if (process.platform === "win32") {
|
if (process.platform === "win32") {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue