Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1345d20

Browse files
committed
- Use PLATDIR for the platform directory everywhere (refactoring only)
1 parent 7f82522 commit 1345d20

4 files changed

Lines changed: 9 additions & 2 deletions

File tree

Makefile.pre.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1123,7 +1123,7 @@ maninstall: altmaninstall
11231123
(cd $(DESTDIR)$(MANDIR)/man1; $(LN) -s python$(VERSION).1 python3.1)
11241124

11251125
# Install the library
1126-
PLATDIR= plat-$(MACHDEP)
1126+
PLATDIR= @PLATDIR@
11271127
EXTRAPLATDIR= @EXTRAPLATDIR@
11281128
MACHDEPS= $(PLATDIR) $(EXTRAPLATDIR)
11291129
XMLLIBSUBDIRS= xml xml/dom xml/etree xml/parsers xml/sax

Modules/Setup.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ SITEPATH=
9191
TESTPATH=
9292

9393
# Path components for machine- or system-dependent modules and shared libraries
94-
MACHDEPPATH=:plat-$(MACHDEP)
94+
MACHDEPPATH=:$(PLATDIR)
9595
EXTRAMACHDEPPATH=
9696

9797
COREPYTHONPATH=$(DESTPATH)$(SITEPATH)$(TESTPATH)$(MACHDEPPATH)$(EXTRAMACHDEPPATH)

configure

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,7 @@ CFLAGS
711711
CC
712712
EXPORT_MACOSX_DEPLOYMENT_TARGET
713713
CONFIGURE_MACOSX_DEPLOYMENT_TARGET
714+
PLATDIR
714715
SGI_ABI
715716
_PYTHON_HOST_PLATFORM
716717
MACHDEP
@@ -3493,6 +3494,9 @@ fi
34933494
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5
34943495
$as_echo "$MACHDEP" >&6; }
34953496

3497+
3498+
PLATDIR=plat-$MACHDEP
3499+
34963500
# Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
34973501
# it may influence the way we can build extensions, so distutils
34983502
# needs to check it

configure.ac

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,9 @@ then
556556
fi
557557
AC_MSG_RESULT($MACHDEP)
558558

559+
AC_SUBST(PLATDIR)
560+
PLATDIR=plat-$MACHDEP
561+
559562
# Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
560563
# it may influence the way we can build extensions, so distutils
561564
# needs to check it

0 commit comments

Comments
 (0)