python3: Update to 3.7.4, make python3 default python

This commit is contained in:
Alexey Pavlov
2019-07-09 13:52:34 +03:00
parent 4c3da4df08
commit 228cc0cf16
5 changed files with 35 additions and 27 deletions

View File

@@ -0,0 +1,18 @@
--- Python-3.7.4/Makefile.pre.in.orig 2019-07-09 11:16:23.393804800 +0300
+++ Python-3.7.4/Makefile.pre.in 2019-07-09 12:15:23.141089200 +0300
@@ -1252,12 +1252,15 @@
else true; \
fi
(cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)$(EXE) python3$(EXE))
+ (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)$(EXE) python$(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)/python-config
+ (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)-config python-config)
-rm -f $(DESTDIR)$(BINDIR)/python3-config
(cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)-config python3-config)
-rm -f $(DESTDIR)$(LIBPC)/python3.pc