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

Skip to content

Commit ad6f877

Browse files
committed
Create the hardlink between python-3.2m and python-3.2 in altbininstall target
instead of bininstall target so it shows up when you do 'make altinstall'. Closes issue 10677.
1 parent 6d9839d commit ad6f877

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Makefile.pre.in

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -836,6 +836,11 @@ altbininstall: $(BUILDPYTHON)
836836
fi; \
837837
done
838838
$(INSTALL_PROGRAM) $(BUILDPYTHON) $(DESTDIR)$(BINDIR)/python$(LDVERSION)$(EXE)
839+
-if test -f $(DESTDIR)$(BINDIR)/$(PYTHON)$(VERSION)$(EXE) -o -h $(DESTDIR)$(BINDIR)/$(PYTHON)$(VERSION)$(EXE); \
840+
then rm -f $(DESTDIR)$(BINDIR)/python$(VERSION)$(EXE); \
841+
else true; \
842+
fi
843+
(cd $(DESTDIR)$(BINDIR); $(LN) python$(LDVERSION)$(EXE) python$(VERSION)$(EXE))
839844
if test -f $(LDLIBRARY); then \
840845
if test -n "$(DLLLIBRARY)" ; then \
841846
$(INSTALL_SHARED) $(DLLLIBRARY) $(DESTDIR)$(BINDIR); \
@@ -853,11 +858,6 @@ bininstall: altbininstall
853858
then rm -f $(DESTDIR)$(BINDIR)/$(PYTHON)3$(EXE); \
854859
else true; \
855860
fi
856-
-if test -f $(DESTDIR)$(BINDIR)/$(PYTHON)$(VERSION)$(EXE) -o -h $(DESTDIR)$(BINDIR)/$(PYTHON)$(VERSION)$(EXE); \
857-
then rm -f $(DESTDIR)$(BINDIR)/python$(VERSION)$(EXE); \
858-
else true; \
859-
fi
860-
(cd $(DESTDIR)$(BINDIR); $(LN) python$(LDVERSION)$(EXE) python$(VERSION)$(EXE))
861861
(cd $(DESTDIR)$(BINDIR); $(LN) python$(VERSION)$(EXE) $(PYTHON)3$(EXE))
862862
-rm -f $(DESTDIR)$(BINDIR)/python3-config
863863
-rm -f $(DESTDIR)$(BINDIR)/python$(VERSION)-config

0 commit comments

Comments
 (0)