[New-bugs-announce] [issue24418] "make install" will not install pip if already present in user site-packages

Antoine Pitrou report at bugs.python.org
Tue Jun 9 20:01:53 CEST 2015


New submission from Antoine Pitrou:

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=/ ; \
fi
Ignoring indexes: https://pypi.python.org/simple/
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"!

----------
components: Build
messages: 245078
nosy: dstufft, ncoghlan, pitrou
priority: normal
severity: normal
status: open
title: "make install" will not install pip if already present in user site-packages
type: behavior
versions: Python 3.4, Python 3.5, Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24418>
_______________________________________


More information about the New-bugs-announce mailing list