diff options
author | Victor Stinner <vstinner@python.org> | 2020-06-11 16:27:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-11 16:27:00 (GMT) |
commit | dc40105c88b968a50c3458e10e1d732e957ef0a3 (patch) | |
tree | 89ddc580dcf009c50f02cbbf2eae0e1da697961e /Makefile.pre.in | |
parent | 2f46c65071c5528ce143bd02786f8fe94fe65d1f (diff) | |
download | cpython-dc40105c88b968a50c3458e10e1d732e957ef0a3.zip cpython-dc40105c88b968a50c3458e10e1d732e957ef0a3.tar.gz cpython-dc40105c88b968a50c3458e10e1d732e957ef0a3.tar.bz2 |
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)
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r-- | Makefile.pre.in | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in index 44e9a89..dede887 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -775,7 +775,6 @@ Modules/getpath.o: $(srcdir)/Modules/getpath.c Makefile -DEXEC_PREFIX='"$(exec_prefix)"' \ -DVERSION='"$(VERSION)"' \ -DVPATH='"$(VPATH)"' \ - -DPLATLIBDIR='"$(PLATLIBDIR)"' \ -o $@ $(srcdir)/Modules/getpath.c Programs/python.o: $(srcdir)/Programs/python.c @@ -807,7 +806,6 @@ Python/dynload_hpux.o: $(srcdir)/Python/dynload_hpux.c Makefile Python/sysmodule.o: $(srcdir)/Python/sysmodule.c Makefile $(srcdir)/Include/pydtrace.h $(CC) -c $(PY_CORE_CFLAGS) \ -DABIFLAGS='"$(ABIFLAGS)"' \ - -DPLATLIBDIR='"$(PLATLIBDIR)"' \ $(MULTIARCH_CPPFLAGS) \ -o $@ $(srcdir)/Python/sysmodule.c |