Commit 137b8a6
committed
Python: Isolate openrewrite package by version and add recipeInstallDir to Builder
When multiple CLI versions share the same home directory, they conflict
over the openrewrite Python package. This change resolves that by:
1. Resolving a version-specific subdirectory under pipPackagesPath
(e.g., `<basePath>/0.5.3/`) so different openrewrite versions
don't overwrite each other. Two CLI versions shipping the same
openrewrite package version share the directory.
2. Adding a `recipeInstallDir` builder method for a separate shared
directory containing user-installed recipe packages (added to
PYTHONPATH alongside the version-specific openrewrite directory).1 parent 12c2c73 commit 137b8a6
1 file changed
Lines changed: 26 additions & 3 deletions
Lines changed: 26 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
| 382 | + | |
382 | 383 | | |
383 | 384 | | |
384 | 385 | | |
| |||
501 | 502 | | |
502 | 503 | | |
503 | 504 | | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
504 | 518 | | |
505 | 519 | | |
506 | 520 | | |
| |||
531 | 545 | | |
532 | 546 | | |
533 | 547 | | |
| 548 | + | |
| 549 | + | |
534 | 550 | | |
535 | | - | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
536 | 554 | | |
537 | 555 | | |
538 | 556 | | |
| |||
562 | 580 | | |
563 | 581 | | |
564 | 582 | | |
565 | | - | |
566 | | - | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
567 | 590 | | |
568 | 591 | | |
569 | 592 | | |
| |||
0 commit comments