]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-108819: fix LIBDEST not honoring --with-platlibdir (#133163)
authorFilipe Laíns <lains@riseup.net>
Tue, 9 Dec 2025 19:14:51 +0000 (19:14 +0000)
committerGitHub <noreply@github.com>
Tue, 9 Dec 2025 19:14:51 +0000 (19:14 +0000)
commit7f497c3c7107feecd9b1e7ff20caac1160a33689
treeccdbe005124de85ef85bc434189c89f37df086c9
parentb5576d814604fec0591f10d7516520c6446f6832
GH-108819: fix LIBDEST not honoring --with-platlibdir (#133163)

* GH-108819: fix LIBDEST not honoring --with-platlibdir

We look for the pure-Python part of the standard library in
PLATSTDLIBDIR, which may not match the default LIBDIR subdir.

From ``getpath.py``:

```python
    ...
    STDLIB_SUBDIR = f'{platlibdir}/python{VERSION_MAJOR}.{VERSION_MINOR}{ABI_THREAD}'
    STDLIB_LANDMARKS = [f'{STDLIB_SUBDIR}/os.py', f'{STDLIB_SUBDIR}/os.pyc']
    PLATSTDLIB_LANDMARK = f'{platlibdir}/python{VERSION_MAJOR}.{VERSION_MINOR}{ABI_THREAD}/lib-dynload'
    ...
```

Signed-off-by: Filipe Laíns <lains@riseup.net>
* Add news

Signed-off-by: Filipe Laíns <lains@riseup.net>
* Always set LIBDEST and BINLIBDEST based on PLATLIBDIR

Signed-off-by: Filipe Laíns <lains@riseup.net>
* Add XXX comment on PLATLIBDIR default value

Signed-off-by: Filipe Laíns <lains@riseup.net>
* Regen configure

Signed-off-by: Filipe Laíns <lains@riseup.net>
---------

Signed-off-by: Filipe Laíns <lains@riseup.net>
Makefile.pre.in
Misc/NEWS.d/next/Build/2025-04-29-18-25-34.gh-issue-108819.qMUTRB.rst [new file with mode: 0644]
configure
configure.ac