[Letux-kernel] X1600 upstreaming efforts
Paul Boddie
paul at boddie.org.uk
Fri Mar 28 22:31:50 CET 2025
On 2025-03-28 16:18, H. Nikolaus Schaller wrote:
>
> iMac:Linux hns$ sudo pip3 install --upgrade dtschema
I would advise against running Python's own packaging tools as root. Of
course, if someone is wanting you to use the very latest of the latest
for their software, which says something about their development
practices, in my opinion, then an entirely separate Python installation
can be the way to go. Alternatively, user-specific library management
used to work with pip, which can be acceptable if you do not have
complicated needs. See...
https://docs.python.org/3/installing/index.html
Specifically:
pip3 install --user package...
The official guidance probably suggests a "virtualenv" or "venv" or
something similar for a separate installation, but you can fairly easily
build and install your own Python along with library directory and then
use that with pip. In other words, configure, make and make install with
a prefix of your choice. Then, make sure that you invoke your own
separate Python binary.
> It appears as if pip3 upgrades a local python3.11 installation while
> the default python on this
> machine is 3.7. python 3.7 is good from kernel perspective:
> https://www.kernel.org/doc/html/v6.11/process/changes.html
>
> But I may have to tell the kernel make which Python interpreter to
> use...
> I know CC= or LD= but what to switch for Python?
Just make sure that you invoke the appropriate pip3 binary. It should
reside alongside the corresponding python3 binary in the filesystem.
That should set up the PYTHONPATH which is the equivalent to PATH but
for Python packages.
Paul
More information about the Letux-kernel
mailing list