]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40947: getpath.c uses PyConfig.platlibdir (GH-20807) (GH-20813)
authorVictor Stinner <vstinner@python.org>
Thu, 11 Jun 2020 16:27:00 +0000 (18:27 +0200)
committerGitHub <noreply@github.com>
Thu, 11 Jun 2020 16:27:00 +0000 (18:27 +0200)
commitdc40105c88b968a50c3458e10e1d732e957ef0a3
tree89ddc580dcf009c50f02cbbf2eae0e1da697961e
parent2f46c65071c5528ce143bd02786f8fe94fe65d1f
bpo-40947: getpath.c uses PyConfig.platlibdir (GH-20807) (GH-20813)

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>
(cherry picked from commit d72b9644a3e6eec83be48b1ebc2ec6ca776134d3)
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