Skip to content

Commit 4212973

Browse files
committed
format
1 parent 7bd464e commit 4212973

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/installer/get-python.js

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,20 @@ async function installPythonWithUV(destinationDir, pythonVersion = '3.13') {
199199
const absolutePath = path.resolve(destinationDir);
200200

201201
// Use --python-preference managed to allow UV to download Python if not found on system
202-
await execFile('uv', ['venv', absolutePath, '--python', pythonVersion, '--python-preference', 'managed'], {
203-
timeout: 300000, // 5 minutes timeout for download and installation
204-
});
202+
await execFile(
203+
'uv',
204+
[
205+
'venv',
206+
absolutePath,
207+
'--python',
208+
pythonVersion,
209+
'--python-preference',
210+
'managed',
211+
],
212+
{
213+
timeout: 300000, // 5 minutes timeout for download and installation
214+
},
215+
);
205216

206217
// Verify that Python executable was successfully created
207218
await ensurePythonExeExists(destinationDir);

0 commit comments

Comments
 (0)