aboutsummaryrefslogtreecommitdiffstats
path: root/lua/mason-registry/index/debugpy/init.lua
blob: f5837e4e5394507a25aff8f9dc074bb8d4d1f4e2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
local Pkg = require "mason-core.package"
local path = require "mason-core.path"
local pip3 = require "mason-core.managers.pip3"

return Pkg.new {
    name = "debugpy",
    desc = [[An implementation of the Debug Adapter Protocol for Python]],
    homepage = "https://github.com/microsoft/debugpy",
    languages = { Pkg.Lang.Python },
    categories = { Pkg.Cat.DAP },
    ---@async
    ---@param ctx InstallContext
    install = function(ctx)
        pip3.install({ "debugpy" }).with_receipt()
        ctx:link_bin("debugpy", ctx:write_pyvenv_exec_wrapper("debugpy", "debugpy"))
        ctx:link_bin("debugpy-adapter", ctx:write_pyvenv_exec_wrapper("debugpy-adapter", "debugpy.adapter"))
    end,
}