Re: Update PYTHONPATH after install

2020-10-07 Thread Paul Wise
On Wed, Oct 7, 2020 at 5:56 PM Francis Murtagh wrote:

> My understanding of Debian policy means python3 modules should be installed 
> in /usr/lib/python3/dist-packages/

Correct.

> Once the package installs there how is the PYTHONPATH meant to be updated so 
> that user can import the module into the python3 interpreter?

This is not necessary...

> As the PYTHONPATH would normally look in /usr/local/ rather than /usr/lib/

... since the default import path includes /usr/lib:

$ unset PYTHONPATH
$ python3 -c 'import sys ; print("\n".join(sys.path))'

/usr/lib/python38.zip
/usr/lib/python3.8
/usr/lib/python3.8/lib-dynload
/usr/local/lib/python3.8/dist-packages
/usr/lib/python3/dist-packages
/usr/lib/python3.8/dist-packages

-- 
bye,
pabs

https://wiki.debian.org/PaulWise



Update PYTHONPATH after install

2020-10-07 Thread Francis Murtagh
Hi,

My understanding of Debian policy means python3 modules should be installed in 
/usr/lib/python3/dist-packages/

Once the package installs there how is the PYTHONPATH meant to be updated so 
that user can import the module into the python3 interpreter?

As the PYTHONPATH would normally look in /usr/local/ rather than /usr/lib/

Thanks,
Francis.
IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you.