Skip to content

Commit

Permalink
use virtualenv instead of venv
Browse files Browse the repository at this point in the history
  • Loading branch information
Lattay committed Dec 3, 2024
1 parent e2f7f90 commit dd137f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/mason-core/managers/pip3/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ local settings = require "mason.settings"
local spawn = require "mason-core.spawn"

local VENV_DIR = "venv"
local VENV_MANAGER = "virutalenv"

local M = {}

Expand Down Expand Up @@ -55,7 +56,7 @@ function M.install(packages)

-- Find first executable that manages to create venv
local executable = _.find_first(function(executable)
return pcall(ctx.spawn[executable], { "-m", "venv", VENV_DIR })
return pcall(ctx.spawn[executable], { "-m", VENV_MANAGER, VENV_DIR })
end, executables)

Optional.of_nilable(executable)
Expand Down

0 comments on commit dd137f6

Please sign in to comment.