]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40947: getpath.c uses PyConfig.platlibdir (GH-20807)
authorVictor Stinner <vstinner@python.org>
Thu, 11 Jun 2020 15:28:52 +0000 (17:28 +0200)
committerGitHub <noreply@github.com>
Thu, 11 Jun 2020 15:28:52 +0000 (17:28 +0200)
commitd72b9644a3e6eec83be48b1ebc2ec6ca776134d3
tree5ea7e7aa01e7f10f35d8b70837c73a81d29e8e75
parentb2dca49ca3769cb60713f5c2b43e5d5bbdc1f9c7
bpo-40947: getpath.c uses PyConfig.platlibdir (GH-20807)

Followup of bpo-40854, there is one remaining usage of PLATLIBDIR
which should be replaced by config->platlibdir.

test_sys checks that sys.platlibdir attribute exists and is a string.

Update Makefile: getpath.c and sysmodule.c no longer need PLATLIBDIR
macro, PyConfig.platlibdir member is used instead.

Co-authored-by: Sandro Mani <manisandro@gmail.com>
Lib/test/test_sys.py
Makefile.pre.in
Misc/NEWS.d/next/Core and Builtins/2020-06-11-16-06-49.bpo-40947.72cZcR.rst [new file with mode: 0644]
Modules/getpath.c