Skip to content

Commit 1ce667f

Browse files
committed
Add python3t shortcuts
1 parent 3ec719f commit 1ce667f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Makefile.pre.in

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2274,6 +2274,18 @@ bininstall: commoninstall altbininstall
22742274
echo "Creating directory $(LIBPC)"; \
22752275
$(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(LIBPC); \
22762276
fi
2277+
-if test "$(ABIFLAGS)"; then \
2278+
if test -f $(DESTDIR)$(BINDIR)/python3$(ABIFLAGS)$(EXE) -o -h $(DESTDIR)$(BINDIR)/python3$(ABIFLAGS)$(EXE); then \
2279+
rm -f $(DESTDIR)$(BINDIR)/python3$(ABIFLAGS)$(EXE); \
2280+
fi; \
2281+
(cd $(DESTDIR)$(BINDIR); $(LN) -s python$(LDVERSION)$(EXE) python3$(ABIFLAGS)$(EXE)); \
2282+
rm -f $(DESTDIR)$(BINDIR)/python3$(ABIFLAGS)-config; \
2283+
(cd $(DESTDIR)$(BINDIR); $(LN) -s python$(LDVERSION)-config python3$(ABIFLAGS)-config); \
2284+
rm -f $(DESTDIR)$(LIBPC)/python3$(ABIFLAGS).pc; \
2285+
(cd $(DESTDIR)$(LIBPC); $(LN) -s python-$(LDVERSION).pc python3$(ABIFLAGS).pc); \
2286+
rm -f $(DESTDIR)$(LIBPC)/python3$(ABIFLAGS)-embed.pc; \
2287+
(cd $(DESTDIR)$(LIBPC); $(LN) -s python-$(LDVERSION)-embed.pc python3$(ABIFLAGS)-embed.pc); \
2288+
fi
22772289
-if test -f $(DESTDIR)$(BINDIR)/python3$(EXE) -o -h $(DESTDIR)$(BINDIR)/python3$(EXE); \
22782290
then rm -f $(DESTDIR)$(BINDIR)/python3$(EXE); \
22792291
else true; \

0 commit comments

Comments
 (0)