Skip to content

Commit d586aad

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 0940129 commit d586aad

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
@@ -2366,7 +2366,7 @@ install: @FRAMEWORKINSTALLFIRST@ @INSTALLTARGETS@ @FRAMEWORKINSTALLLAST@
23662366
install|*) ensurepip="" ;; \
23672367
esac; \
23682368
$(RUNSHARED) $(PYTHON_FOR_BUILD) -m ensurepip \
2369-
$$ensurepip --prefix=$(prefix) ; \
2369+
$$ensurepip --root=$(DESTDIR)/ --prefix=$(prefix) ; \
23702370
fi
23712371

23722372
.PHONY: altinstall
@@ -2377,7 +2377,7 @@ altinstall: commoninstall
23772377
install|*) ensurepip="--altinstall" ;; \
23782378
esac; \
23792379
$(RUNSHARED) $(PYTHON_FOR_BUILD) -m ensurepip \
2380-
$$ensurepip --prefix=$(prefix) ; \
2380+
$$ensurepip --root=$(DESTDIR)/ --prefix=$(prefix) ; \
23812381
fi
23822382

23832383
.PHONY: commoninstall

0 commit comments

Comments
 (0)