Skip to content

Commit 00bf1e7

Browse files
committed
don't throw away --root parameter of ensurepip
Don't break the default installation on the current system with good `sys.prefix`.
1 parent f309776 commit 00bf1e7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Makefile.pre.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2443,7 +2443,7 @@ install: @FRAMEWORKINSTALLFIRST@ @INSTALLTARGETS@ @FRAMEWORKINSTALLLAST@
24432443
install|*) ensurepip="" ;; \
24442444
esac; \
24452445
$(RUNSHARED) $(PYTHON_FOR_BUILD) -m ensurepip \
2446-
$$ensurepip --prefix=$(prefix) ; \
2446+
$$ensurepip --root=$(DESTDIR)/ --prefix=$(prefix) ; \
24472447
fi
24482448

24492449
.PHONY: altinstall
@@ -2454,7 +2454,7 @@ altinstall: commoninstall
24542454
install|*) ensurepip="--altinstall" ;; \
24552455
esac; \
24562456
$(RUNSHARED) $(PYTHON_FOR_BUILD) -m ensurepip \
2457-
$$ensurepip --prefix=$(prefix) ; \
2457+
$$ensurepip --root=$(DESTDIR)/ --prefix=$(prefix) ; \
24582458
fi
24592459

24602460
.PHONY: commoninstall

0 commit comments

Comments
 (0)