python2: Fix dependencies, make it non-default python

This commit is contained in:
Alexey Pavlov
2019-07-09 13:28:15 +03:00
parent 5e1379fe55
commit 4c3da4df08
3 changed files with 36 additions and 20 deletions

View File

@@ -0,0 +1,14 @@
--- Python-2.7.16/Makefile.pre.in.orig 2019-07-09 10:06:59.567193900 +0300
+++ Python-2.7.16/Makefile.pre.in 2019-07-09 10:08:32.277323700 +0300
@@ -996,11 +996,8 @@
fi
-rm -f $(DESTDIR)$(BINDIR)/python2$(EXE)
(cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)$(EXE) python2$(EXE))
- (cd $(DESTDIR)$(BINDIR); $(LN) -s python2$(EXE) $(PYTHON))
-rm -f $(DESTDIR)$(BINDIR)/python2-config
(cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)-config python2-config)
- -rm -f $(DESTDIR)$(BINDIR)/python-config
- (cd $(DESTDIR)$(BINDIR); $(LN) -s python2-config python-config)
-test -d $(DESTDIR)$(LIBPC) || $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(LIBPC)
-rm -f $(DESTDIR)$(LIBPC)/python2.pc
(cd $(DESTDIR)$(LIBPC); $(LN) -s python-$(VERSION).pc python2.pc)