Repository navigation
Commit d4f300b
gh-119696: Add --enable-relocatable, for relative pkg-config prefixes
Add an `--enable-relocatable` configure option (off by default) for
changes that make an installation easier to move but aren't right for
every build. It is a work in progress: this is the first thing it does,
and it doesn't make an installation fully relocatable yet.
With the option, `make install` writes `prefix=${pcfiledir}/../..` in
`python-3.X.pc` and `python-3.X-embed.pc` (with as many `..` as needed)
instead of the absolute prefix, so the files stay correct when the
installation is moved. It isn't the default because pkg-config doesn't
recognise the resulting paths as system directories for an install
under /usr. Without the option the installed files are unchanged.
Co-authored-by: Zanie Blue <contact@zanie.dev>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>1 parent d8bc666 commit d4f300b
5 files changed
Lines changed: 88 additions & 4 deletions
File tree
- Lib/test
- Misc/NEWS.d/next/Build
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
709 | 709 | | |
710 | 710 | | |
711 | 711 | | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
712 | 734 | | |
713 | 735 | | |
714 | 736 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| |||
2940 | 2941 | | |
2941 | 2942 | | |
2942 | 2943 | | |
| 2944 | + | |
| 2945 | + | |
| 2946 | + | |
| 2947 | + | |
| 2948 | + | |
| 2949 | + | |
| 2950 | + | |
| 2951 | + | |
| 2952 | + | |
| 2953 | + | |
| 2954 | + | |
| 2955 | + | |
| 2956 | + | |
| 2957 | + | |
| 2958 | + | |
| 2959 | + | |
| 2960 | + | |
| 2961 | + | |
2943 | 2962 | | |
2944 | 2963 | | |
2945 | 2964 | | |
| |||
3026 | 3045 | | |
3027 | 3046 | | |
3028 | 3047 | | |
3029 | | - | |
| 3048 | + | |
3030 | 3049 | | |
3031 | 3050 | | |
3032 | 3051 | | |
| |||
3059 | 3078 | | |
3060 | 3079 | | |
3061 | 3080 | | |
3062 | | - | |
3063 | | - | |
| 3081 | + | |
| 3082 | + | |
3064 | 3083 | | |
3065 | 3084 | | |
3066 | 3085 | | |
| |||
3426 | 3445 | | |
3427 | 3446 | | |
3428 | 3447 | | |
3429 | | - | |
| 3448 | + | |
| 3449 | + | |
3430 | 3450 | | |
3431 | 3451 | | |
3432 | 3452 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1759 | 1759 | | |
1760 | 1760 | | |
1761 | 1761 | | |
| 1762 | + | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
1762 | 1774 | | |
1763 | 1775 | | |
1764 | 1776 | | |
| |||
0 commit comments