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.

classification
Title: compile fail when make install run pip install as sudo
Type: Stage:
Components: Build Versions: Python 3.11
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Battant
Priority: normal Keywords:

Created on 2021-06-03 16:39 by Battant, last changed 2022-04-11 14:59 by admin.

Files
File name Uploaded Description Edit
output.log Battant, 2021-06-03 16:39 install output log
Messages (1)
msg395017 - (view) Author: Battant (Battant) Date: 2021-06-03 16:39
Hello,
5.4.0-73-generic
Here is my configuration
ubuntu 20.04
linux kernel 5.4.0-73-generic

step to reproduce

clone cpytjpm 3.11 repository

https://github.com/python/cpython

compile with this tcl
./configure -with-tcltk-includes=/usr/include/ --with-tcltk-libs=/usr/local/lib/libtcl.so --enable-optimizations

make
sudo make install

Actual result :

compil fail because pip is run as sudo to install python

rm -f /usr/local/bin/idle3
(cd /usr/local/bin; ln -s idle3.11 idle3)
rm -f /usr/local/bin/pydoc3
(cd /usr/local/bin; ln -s pydoc3.11 pydoc3)
rm -f /usr/local/bin/2to3
(cd /usr/local/bin; ln -s 2to3-3.11 2to3)
if test "x" != "x" ; then \
	rm -f /usr/local/bin/python3-32; \
	(cd /usr/local/bin; ln -s python3.11-32 python3-32) \
fi
if test "x" != "x" ; then \
	rm -f /usr/local/bin/python3-intel64; \
	(cd /usr/local/bin; ln -s python3.11-intel64 python3-intel64) \
fi
rm -f /usr/local/share/man/man1/python3.1
(cd /usr/local/share/man/man1; ln -s python3.11.1 python3.1)
if test "xupgrade" != "xno"  ; then \
	case upgrade in \
		upgrade) ensurepip="--upgrade" ;; \
		install|*) ensurepip="" ;; \
	esac; \
	 ./python -E -m ensurepip \
		$ensurepip --root=/ ; \
fi
Looking in links: /tmp/tmpr3j5u6l0
Requirement already satisfied: setuptools in /usr/local/lib/python3.11/site-packages (56.0.0)
Requirement already satisfied: pip in /usr/local/lib/python3.11/site-packages (21.1.1)
WARNING: Running pip as root will break packages and permissions. You should install packages reliably by using venv: https://pip.pypa.io/warnings/venv

See attachement log detais

Could you help me please to fix this issus

Best regards

Battant
History
Date User Action Args
2022-04-11 14:59:46adminsetgithub: 88468
2021-06-03 16:39:15Battantcreate