Skip to content

Commit 066fb86

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 b5283e7 commit 066fb86

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
@@ -2371,7 +2371,7 @@ install: @FRAMEWORKINSTALLFIRST@ @INSTALLTARGETS@ @FRAMEWORKINSTALLLAST@
23712371
install|*) ensurepip="" ;; \
23722372
esac; \
23732373
$(RUNSHARED) $(PYTHON_FOR_BUILD) -m ensurepip \
2374-
$$ensurepip --prefix=$(prefix) ; \
2374+
$$ensurepip --root=$(DESTDIR)/ --prefix=$(prefix) ; \
23752375
fi
23762376

23772377
.PHONY: altinstall
@@ -2382,7 +2382,7 @@ altinstall: commoninstall
23822382
install|*) ensurepip="--altinstall" ;; \
23832383
esac; \
23842384
$(RUNSHARED) $(PYTHON_FOR_BUILD) -m ensurepip \
2385-
$$ensurepip --prefix=$(prefix) ; \
2385+
$$ensurepip --root=$(DESTDIR)/ --prefix=$(prefix) ; \
23862386
fi
23872387

23882388
.PHONY: commoninstall

0 commit comments

Comments
 (0)