[Bug 2039511] [NEW] python3 package on 20.04 is missing important sysconfig patch from debian

Adrian Insaurralde Avalos 2039511 at bugs.launchpad.net
Tue Oct 17 02:20:35 UTC 2023


Public bug reported:

please update the python 3 package and add
https://salsa.debian.org/cpython-
team/python3/-/blob/python3.8/debian/patches/sysconfig-debian-
schemes.diff

without it sysconfig gives incorrect paths for python paths, forcing
people to use distutils instead, however distutils has been deprecated
in 3.10 and removed from python 3.12 making it difficult to support both
python 3.12 and ubuntu 20.04 at the same time.


> lsb_release -rd             
Description:    Ubuntu 20.04.6 LTS
Release:        20.04

> apt-cache policy python3                                                                                             
python3:
  Installed: 3.8.2-0ubuntu2
  Candidate: 3.8.2-0ubuntu2
  Version table:
 *** 3.8.2-0ubuntu2 500
        500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages
        100 /var/lib/dpkg/status

expected:
> /usr/bin/python3 -c "from sysconfig import get_path; print(get_path('purelib'))"
/usr/local/lib/python3.8/dist-packages
> DEB_PYTHON_INSTALL_LAYOUT=deb_system /usr/bin/python3 -c "from sysconfig import get_path; print(get_path('purelib'))"
/usr/lib/python3/dist-packages


what happened instead:
> /usr/bin/python3 -c "from sysconfig import get_path; print(get_path('purelib'))"
/usr/lib/python3.8/site-packages
> DEB_PYTHON_INSTALL_LAYOUT=deb_system /usr/bin/python3 -c "from sysconfig import get_path; print(get_path('purelib'))"
/usr/lib/python3.8/site-packages

** Affects: python3.8 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python3.8 in Ubuntu.
https://bugs.launchpad.net/bugs/2039511

Title:
  python3 package on 20.04 is missing important sysconfig patch from
  debian

Status in python3.8 package in Ubuntu:
  New

Bug description:
  please update the python 3 package and add
  https://salsa.debian.org/cpython-
  team/python3/-/blob/python3.8/debian/patches/sysconfig-debian-
  schemes.diff

  without it sysconfig gives incorrect paths for python paths, forcing
  people to use distutils instead, however distutils has been deprecated
  in 3.10 and removed from python 3.12 making it difficult to support
  both python 3.12 and ubuntu 20.04 at the same time.

  
  > lsb_release -rd             
  Description:    Ubuntu 20.04.6 LTS
  Release:        20.04

  > apt-cache policy python3                                                                                             
  python3:
    Installed: 3.8.2-0ubuntu2
    Candidate: 3.8.2-0ubuntu2
    Version table:
   *** 3.8.2-0ubuntu2 500
          500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages
          100 /var/lib/dpkg/status

  expected:
  > /usr/bin/python3 -c "from sysconfig import get_path; print(get_path('purelib'))"
  /usr/local/lib/python3.8/dist-packages
  > DEB_PYTHON_INSTALL_LAYOUT=deb_system /usr/bin/python3 -c "from sysconfig import get_path; print(get_path('purelib'))"
  /usr/lib/python3/dist-packages

  
  what happened instead:
  > /usr/bin/python3 -c "from sysconfig import get_path; print(get_path('purelib'))"
  /usr/lib/python3.8/site-packages
  > DEB_PYTHON_INSTALL_LAYOUT=deb_system /usr/bin/python3 -c "from sysconfig import get_path; print(get_path('purelib'))"
  /usr/lib/python3.8/site-packages

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3.8/+bug/2039511/+subscriptions




More information about the foundations-bugs mailing list