This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: "make install" will not install pip if already present in user site-packages
Type: behavior Stage: needs patch
Components: Build Versions: Python 3.6, Python 3.4, Python 3.5, Python 2.7
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Aaron.Meurer, dstufft, ncoghlan, ned.deily, pitrou
Priority: normal Keywords:

Created on 2015-06-09 18:01 by pitrou, last changed 2022-04-11 14:58 by admin.

Messages (3)
msg245078 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2015-06-09 18:01
This is what happens when building Python with conda-build (which implies doing "make install" with a custom prefix):

if test "xupgrade" != "xno"  ; then \
	case upgrade in \
		upgrade) ensurepip="--upgrade" ;; \
		install|*) ensurepip="" ;; \
	esac; \
	LD_LIBRARY_PATH=/home/antoine/miniconda3/conda-bld/work/cpython-default ./python -E -m ensurepip \
		$ensurepip --root=/ ; \
Ignoring indexes:
Requirement already up-to-date: setuptools in /home/antoine/.local/lib/python3.5/site-packages
Requirement already up-to-date: pip in /home/antoine/.local/lib/python3.5/site-packages

Note that conda-build *does* set PYTHONNOUSERSITE to make builds as isolated as possible, but the Python Makefile deliberately ignores it using "python -E"!
msg245079 - (view) Author: Donald Stufft (dstufft) * (Python committer) Date: 2015-06-09 18:06
We should probably pass ``-s`` to the ensurepip call.

Adding 2.7 here as well because I think this will probably affect more than just the Makefile, probably the Windows installers and OSX installers too.
msg245081 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2015-06-09 18:40
Do we need to add Steve and Ned for the installers?
Date User Action Args
2022-04-11 14:58:17adminsetgithub: 68606
2015-06-09 22:32:06ned.deilysetnosy: + ned.deily

stage: needs patch
2015-06-09 18:41:26Aaron.Meurersetnosy: + Aaron.Meurer
2015-06-09 18:40:57pitrousetmessages: + msg245081
2015-06-09 18:06:11dstufftsetmessages: + msg245079
versions: + Python 2.7
2015-06-09 18:01:53pitroucreate