Skip to content

add custom editable_wheel command to hijack pdb in editable installs#82

Merged
bretello merged 3 commits intomasterfrom
build-py-editable
Feb 23, 2026
Merged

add custom editable_wheel command to hijack pdb in editable installs#82
bretello merged 3 commits intomasterfrom
build-py-editable

Conversation

@bretello
Copy link
Owner

@bretello bretello commented Feb 23, 2026

Editable installs (pip install -e .) were broken because pdbpp_hijack_pdb.pth was not installed, resulting in pdbpp not hijacking pdb since the .pth file inserts _pdbpp_path_hack in sys.path.

This adds a custom editable_wheel class editable_install_with_pth_file that uses a custom EditableWheel strategy that takes care of inserting _pdbpp_path_hack in the path, allowing pdbpp editable installs to correctly hijack pdb.

@bretello bretello marked this pull request as draft February 23, 2026 11:53
@bretello bretello marked this pull request as ready for review February 23, 2026 12:29
@bretello bretello force-pushed the build-py-editable branch 2 times, most recently from 093f3aa to 3868174 Compare February 23, 2026 13:35
@bretello bretello changed the title add custom editable_wheel command to hijack pdbpp in editable installs add custom editable_wheel command to hijack pdb in editable installs Feb 23, 2026
…able installs

Editable installs (`pip install -e .`) were broken because `pdbpp_hijack_pdb.pth`
was not installed, resulting in `pdbpp` not hijacking `pdb` since the `.pth` file
inserts `_pdbpp_path_hack` in sys.path.

This adds a custom `editable_wheel` class `editable_install_with_pth_file` that uses
a custom `EditableWheel` strategy that takes care of inserting `_pdbpp_path_hack`
in the path, allowing `pdbpp` editable installs to correctly hijack `pdb`.
@bretello bretello force-pushed the build-py-editable branch 2 times, most recently from dd76561 to 005bfea Compare February 23, 2026 13:49
@bretello bretello merged commit f2f6c99 into master Feb 23, 2026
16 checks passed
@bretello bretello deleted the build-py-editable branch February 23, 2026 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant