diff options
Diffstat (limited to 'lua/mason-registry/debugpy/init.lua')
| -rw-r--r-- | lua/mason-registry/debugpy/init.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lua/mason-registry/debugpy/init.lua b/lua/mason-registry/debugpy/init.lua index fefe7bfc..38f46911 100644 --- a/lua/mason-registry/debugpy/init.lua +++ b/lua/mason-registry/debugpy/init.lua @@ -1,5 +1,6 @@ local Pkg = require "mason-core.package" local pip3 = require "mason-core.managers.pip3" +local path = require "mason-core.path" return Pkg.new { name = "debugpy", @@ -7,5 +8,10 @@ return Pkg.new { homepage = "https://github.com/microsoft/debugpy", languages = { Pkg.Lang.Python }, categories = { Pkg.Cat.DAP }, - install = pip3.packages { "debugpy" }, + ---@async + ---@param ctx InstallContext + install = function(ctx) + pip3.install({ "debugpy" }).with_receipt() + ctx:link_bin("debugpy", ctx:write_pyvenv_exec_wrapper("debugpy", "debugpy")) + end, } |
