Skip to content

Commit a8847c2

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 5c4b65b commit a8847c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile.pre.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2336,7 +2336,7 @@ install: @FRAMEWORKINSTALLFIRST@ @INSTALLTARGETS@ @FRAMEWORKINSTALLLAST@
23362336
install|*) ensurepip="" ;; \
23372337
esac; \
23382338
$(RUNSHARED) $(PYTHON_FOR_BUILD) -m ensurepip \
2339-
$$ensurepip --prefix=$(prefix) ; \
2339+
$$ensurepip --root=$(DESTDIR)/ --prefix=$(prefix) ; \
23402340
fi
23412341

23422342
.PHONY: altinstall
@@ -2347,7 +2347,7 @@ altinstall: commoninstall
23472347
install|*) ensurepip="--altinstall" ;; \
23482348
esac; \
23492349
$(RUNSHARED) $(PYTHON_FOR_BUILD) -m ensurepip \
2350-
$$ensurepip --prefix=$(prefix) ; \
2350+
$$ensurepip --root=$(DESTDIR)/ --prefix=$(prefix) ; \
23512351
fi
23522352

23532353
.PHONY: commoninstall

0 commit comments

Comments
 (0)