mirror of
https://github.com/python/cpython.git
synced 2025-08-28 20:56:54 +00:00
Issue 10687. When --without-pymalloc is given, $VERSION is the same as
$LDVERSION, which screws up the sym/hard-links. This avoids those games when $VERSION == $LDVERSION. Also, include a drive-by fix for an obvious syntax error.
This commit is contained in:
parent
e98e8a3aa8
commit
771d33e113
2 changed files with 15 additions and 9 deletions
|
@ -2,6 +2,6 @@
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
if __name__ = "__main__":
|
if __name__ == "__main__":
|
||||||
for line in sys.stdin:
|
for line in sys.stdin:
|
||||||
pass
|
pass
|
||||||
|
|
|
@ -836,11 +836,12 @@ altbininstall: $(BUILDPYTHON)
|
||||||
fi; \
|
fi; \
|
||||||
done
|
done
|
||||||
$(INSTALL_PROGRAM) $(BUILDPYTHON) $(DESTDIR)$(BINDIR)/python$(LDVERSION)$(EXE)
|
$(INSTALL_PROGRAM) $(BUILDPYTHON) $(DESTDIR)$(BINDIR)/python$(LDVERSION)$(EXE)
|
||||||
-if test -f $(DESTDIR)$(BINDIR)/$(PYTHON)$(VERSION)$(EXE) -o -h $(DESTDIR)$(BINDIR)/$(PYTHON)$(VERSION)$(EXE); \
|
-if test "$(VERSION)" != "$(LDVERSION)"; then \
|
||||||
then rm -f $(DESTDIR)$(BINDIR)/python$(VERSION)$(EXE); \
|
if test -f $(DESTDIR)$(BINDIR)/$(PYTHON)$(VERSION)$(EXE) -o -h $(DESTDIR)$(BINDIR)/$(PYTHON)$(VERSION)$(EXE); \
|
||||||
else true; \
|
then rm -f $(DESTDIR)$(BINDIR)/python$(VERSION)$(EXE); \
|
||||||
|
fi; \
|
||||||
|
(cd $(DESTDIR)$(BINDIR); $(LN) python$(LDVERSION)$(EXE) python$(VERSION)$(EXE)); \
|
||||||
fi
|
fi
|
||||||
(cd $(DESTDIR)$(BINDIR); $(LN) python$(LDVERSION)$(EXE) python$(VERSION)$(EXE))
|
|
||||||
if test -f $(LDLIBRARY); then \
|
if test -f $(LDLIBRARY); then \
|
||||||
if test -n "$(DLLLIBRARY)" ; then \
|
if test -n "$(DLLLIBRARY)" ; then \
|
||||||
$(INSTALL_SHARED) $(DLLLIBRARY) $(DESTDIR)$(BINDIR); \
|
$(INSTALL_SHARED) $(DLLLIBRARY) $(DESTDIR)$(BINDIR); \
|
||||||
|
@ -859,14 +860,16 @@ bininstall: altbininstall
|
||||||
else true; \
|
else true; \
|
||||||
fi
|
fi
|
||||||
(cd $(DESTDIR)$(BINDIR); $(LN) python$(VERSION)$(EXE) $(PYTHON)3$(EXE))
|
(cd $(DESTDIR)$(BINDIR); $(LN) python$(VERSION)$(EXE) $(PYTHON)3$(EXE))
|
||||||
|
-if test "$(VERSION)" != "$(LDVERSION)"; then \
|
||||||
|
rm -f $(DESTDIR)$(BINDIR)/python$(VERSION)-config; \
|
||||||
|
(cd $(DESTDIR)$(BINDIR); $(LN) -s python$(LDVERSION)-config python$(VERSION)-config); \
|
||||||
|
rm -f $(DESTDIR)$(LIBPC)/python-$(LDVERSION).pc; \
|
||||||
|
(cd $(DESTDIR)$(LIBPC); $(LN) -s python-$(VERSION).pc python-$(LDVERSION).pc); \
|
||||||
|
fi
|
||||||
-rm -f $(DESTDIR)$(BINDIR)/python3-config
|
-rm -f $(DESTDIR)$(BINDIR)/python3-config
|
||||||
-rm -f $(DESTDIR)$(BINDIR)/python$(VERSION)-config
|
|
||||||
(cd $(DESTDIR)$(BINDIR); $(LN) -s python$(LDVERSION)-config python$(VERSION)-config)
|
|
||||||
(cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)-config python3-config)
|
(cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)-config python3-config)
|
||||||
-rm -f $(DESTDIR)$(LIBPC)/python3.pc
|
-rm -f $(DESTDIR)$(LIBPC)/python3.pc
|
||||||
-rm -f $(DESTDIR)$(LIBPC)/python-$(LDVERSION).pc
|
|
||||||
(cd $(DESTDIR)$(LIBPC); $(LN) -s python-$(VERSION).pc python3.pc)
|
(cd $(DESTDIR)$(LIBPC); $(LN) -s python-$(VERSION).pc python3.pc)
|
||||||
(cd $(DESTDIR)$(LIBPC); $(LN) -s python-$(VERSION).pc python-$(LDVERSION).pc)
|
|
||||||
|
|
||||||
# Install the manual page
|
# Install the manual page
|
||||||
maninstall:
|
maninstall:
|
||||||
|
@ -1307,3 +1310,6 @@ Python/thread.o: @THREADHEADERS@
|
||||||
.PHONY: gdbhooks
|
.PHONY: gdbhooks
|
||||||
|
|
||||||
# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
|
# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
|
||||||
|
# Local Variables:
|
||||||
|
# mode: makefile
|
||||||
|
# End:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue