Skip to content

Commit 996cf29

Browse files
committed
Include debugpy in debug pex when requested
1 parent ac6bbb4 commit 996cf29

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

third_party/python/BUILD

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,9 +417,12 @@ pip_library(
417417

418418
python_wheel(
419419
name = "debugpy",
420-
hashes = ["f058c204341fd7ff800ee0edafc106ca0fb1c9857e8a8895a6e04cca3ddcb7bf"],
420+
hashes = ["5be9bed9ae3be00665a06acaa48f8329d2b9632f15fd09f6a9a8c8d9907e54d7"],
421421
licences = ["MIT"],
422-
version = "1.5.0",
422+
version = "1.8.20",
423+
zip_safe = False,
424+
# There doesn't seem to be a predictable URL for this version of debugpy so we need to resolve it instead.
425+
tool = "//tools/wheel_resolver",
423426
)
424427

425428
python_wheel(

tools/please_pex/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ genrule(
4444
visibility = ["PUBLIC"],
4545
deps = [
4646
"//third_party/python:behave_bootstrap",
47+
"//third_party/python:debugpy",
4748
"//third_party/python:pytest_bootstrap",
4849
"//third_party/python:unittest_bootstrap",
4950
],

tools/please_pex/pex/pex_main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ def _explode_zip():
9292
# that the cache has already been prepared.
9393
lockfile.write("pex unzip completed")
9494
sys.path = [PEX_PATH] + [x for x in sys.path if x != PEX]
95+
sys.path.insert(1, os.path.join(sys.path[0], '.bootstrap'))
9596
try:
9697
yield
9798
finally:

0 commit comments

Comments
 (0)