On Tue, Jun 21, 2022 at 07:05:17AM +0100, Julian Gilbey wrote:
> Here's a data point:
> 
> $ python3.9
> Python 3.9.13 (main, Jun  8 2022, 09:45:57) 
> [GCC 11.3.0] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import sysconfig
> >>> sysconfig.get_path('purelib')
> '/usr/lib/python3.9/site-packages'
> >>> sysconfig.get_path('platlib')
> '/usr/lib/python3.9/site-packages'
> >>> 
> 
> $ python3.10
> Python 3.10.5 (main, Jun  8 2022, 09:26:22) [GCC 11.3.0] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import sysconfig
> >>> sysconfig.get_path('purelib')
> '/usr/local/lib/python3.10/dist-packages'
> >>> sysconfig.get_path('platlib')
> '/usr/local/lib/python3.10/dist-packages'
> >>> 
> [...]

And I should have added: in python3.9, the directories given do not
actually exist on a standard Debian system, whereas on python3.10 they
do.

There's a separate question of whether the directory given should
instead be /usr/lib/python3/site-packages, but that's far more
debatable.

Best wishes,

   Julian

  • Bug#998739: Julian Gilbey
    • Bug#998739: python3.9: sysconfig should return /dist-pa... Julian Gilbey

Reply via email to