From b8a6632a0f2d263199d5d480ca85477fe0f414ab Mon Sep 17 00:00:00 2001 From: William Boman Date: Mon, 20 Feb 2023 22:19:39 +0100 Subject: feat: configurable registries (#1016) --- lua/mason-registry/index/debugpy/init.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 lua/mason-registry/index/debugpy/init.lua (limited to 'lua/mason-registry/index/debugpy/init.lua') diff --git a/lua/mason-registry/index/debugpy/init.lua b/lua/mason-registry/index/debugpy/init.lua new file mode 100644 index 00000000..51587a8a --- /dev/null +++ b/lua/mason-registry/index/debugpy/init.lua @@ -0,0 +1,18 @@ +local Pkg = require "mason-core.package" +local pip3 = require "mason-core.managers.pip3" +local path = require "mason-core.path" + +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, +} -- cgit v1.2.3-70-g09d2