Commit 1f07e39
committed
ENH: implement editable wheels without having to run meson install
This implementation uses a .pth file to install a custom module
finder. The module finder uses the Meson installation plan
introspection data to build a virtual view of how files would be laid
out in a wheel and looks up the modules from there.
Not having to copy files from the source or build directory to the
installation directory, rebuilds are faster. Executing directly from
the build and source directory is more true to the spirit of editable
wheels. There is no risk for the user to accidentally edit the code in
the installation directory and have their edits to be overwritten at
the next reload.
I haven't verified this, but this approach has also the potential to
allow to set debugger breakpoints from the code in the source
directory and have them work at execution time (this should work if
the code is imported before being executed).1 parent e96a3e7 commit 1f07e39
File tree
12 files changed
+355
-228
lines changed- mesonpy
- tests
- packages
- complex
- complex
- more
- namespace
- imports-itself-during-build
12 files changed
+355
-228
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | 197 | | |
208 | 198 | | |
209 | 199 | | |
| |||
529 | 519 | | |
530 | 520 | | |
531 | 521 | | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | | - | |
538 | | - | |
539 | | - | |
540 | | - | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | 522 | | |
545 | 523 | | |
546 | 524 | | |
547 | 525 | | |
548 | | - | |
| 526 | + | |
549 | 527 | | |
550 | 528 | | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | | - | |
556 | | - | |
557 | | - | |
558 | | - | |
559 | | - | |
560 | | - | |
561 | | - | |
562 | | - | |
563 | | - | |
564 | | - | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
565 | 532 | | |
566 | | - | |
567 | | - | |
568 | | - | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
569 | 542 | | |
570 | 543 | | |
571 | | - | |
572 | | - | |
573 | | - | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | | - | |
| 544 | + | |
| 545 | + | |
582 | 546 | | |
583 | 547 | | |
584 | 548 | | |
| |||
0 commit comments