mirror of https://github.com/python/cpython
When installing the "python" link in bindir also test for a pre-existing
symlink and remove it.
This commit is contained in:
parent
45c8e92728
commit
1403b9fecd
|
@ -560,7 +560,7 @@ $(DESTSHARED):
|
|||
|
||||
# Install the interpreter (by creating a hard link to python$(VERSION))
|
||||
bininstall: altbininstall
|
||||
-if test -f $(BINDIR)/$(PYTHON); \
|
||||
-if test -f $(BINDIR)/$(PYTHON) -o -L $(BINDIR)/$(PYTHON); \
|
||||
then rm -f $(BINDIR)/$(PYTHON); \
|
||||
else true; \
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue