diff options
author | xuhy <huayong.xu@samsung.com> | 2024-06-24 09:57:28 +0800 |
---|---|---|
committer | xuhy <huayong.xu@samsung.com> | 2024-06-24 09:57:28 +0800 |
commit | 0b370e449ba9ea343a991f1702d3e93b0ef38e3d (patch) | |
tree | 585c541cc5defdaad58e976612616c77397e8ec0 | |
parent | 8aeca513d997d9afc66c6b2047bfe3909af4a5d1 (diff) | |
download | python-support-0b370e449ba9ea343a991f1702d3e93b0ef38e3d.tar.gz python-support-0b370e449ba9ea343a991f1702d3e93b0ef38e3d.tar.bz2 python-support-0b370e449ba9ea343a991f1702d3e93b0ef38e3d.zip |
Support python3.sandbox/xuhy/devel-upgrade
python & python2 are not available on Ubuntu 24.04.
Change-Id: I150aefa7588025eff5dff5fd769a2f50ed9c7aef
-rw-r--r-- | debian/control | 4 | ||||
-rw-r--r-- | pysupport.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/debian/control b/debian/control index b863d63..ad547dd 100644 --- a/debian/control +++ b/debian/control @@ -4,14 +4,14 @@ Priority: optional Maintainer: Josselin Mouette <joss@debian.org> Uploaders: Bernd Zeimetz <bzed@debian.org>, Piotr Ożarowski <piotr@debian.org> Build-Depends: debhelper (>= 7), cdbs -Build-Depends-Indep: python | python2 +Build-Depends-Indep: python3 Standards-Version: 3.9.3 Vcs-Svn: svn://anonscm.debian.org/collab-maint/deb-maint/python-support/trunk Vcs-Browser: http://anonscm.debian.org/viewvc/collab-maint/deb-maint/python-support/trunk/ Package: python-support Architecture: all -Depends: python | python2, python-minimal | python2-minimal, dpkg (>= 1.14.19), ${misc:Depends} +Depends: python3, python3-minimal, dpkg (>= 1.14.19), ${misc:Depends} Conflicts: debhelper (<< 5.0.38) Description: automated rebuilding support for Python modules This package contains the 'update-python-modules' script, which takes diff --git a/pysupport.py b/pysupport.py index 4666f4b..8de202d 100644 --- a/pysupport.py +++ b/pysupport.py @@ -1,7 +1,7 @@ import os -from ConfigParser import SafeConfigParser +from ConfigParser import ConfigParser -config = SafeConfigParser() +config = ConfigParser() config.readfp(file('/usr/share/python/debian_defaults')) versions = config.get('DEFAULT', 'supported-versions') py_supported = [s.strip() for s in versions.split(',')] |