aboutsummaryrefslogtreecommitdiffstats
path: root/lua/mason-registry/debugpy/init.lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2022-08-02 18:35:40 +0200
committerGitHub <noreply@github.com>2022-08-02 18:35:40 +0200
commit546d81893bd3d8c3c817bd9c3ec26a0760215500 (patch)
treeaeb2f603424ecb2e282ac10d9288d60b49a0febf /lua/mason-registry/debugpy/init.lua
parentchore: update issue templates (#230) (diff)
downloadmason-546d81893bd3d8c3c817bd9c3ec26a0760215500.tar
mason-546d81893bd3d8c3c817bd9c3ec26a0760215500.tar.gz
mason-546d81893bd3d8c3c817bd9c3ec26a0760215500.tar.bz2
mason-546d81893bd3d8c3c817bd9c3ec26a0760215500.tar.lz
mason-546d81893bd3d8c3c817bd9c3ec26a0760215500.tar.xz
mason-546d81893bd3d8c3c817bd9c3ec26a0760215500.tar.zst
mason-546d81893bd3d8c3c817bd9c3ec26a0760215500.zip
feat(debugpy): write executable for convenient access (#229)
Diffstat (limited to 'lua/mason-registry/debugpy/init.lua')
-rw-r--r--lua/mason-registry/debugpy/init.lua8
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,
}