From: wangbiao Date: Tue, 26 Mar 2024 10:11:35 +0000 (+0900) Subject: replace python with python2 X-Git-Tag: accepted/tools/devbase/tools/legacy/20250527.042531^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Fdevel-py2;p=tools%2Fosc.git replace python with python2 In ubuntu20.04, if installing python, it will install python-is-python2, it will set python2 as default python interpeter. Change-Id: I219b63cfc1dd136c72722d7bff7cde1e7420e5e2 Signed-off-by: wangbiao --- diff --git a/debian/control b/debian/control index 180213a..e347f88 100644 --- a/debian/control +++ b/debian/control @@ -2,14 +2,14 @@ Source: osc Section: devel Priority: extra Maintainer: Adrian Schroeter -Build-Depends: debhelper (>= 4.0.0), dpatch, python, python-dev, python-urlgrabber +Build-Depends: debhelper (>= 4.0.0), dh-python, dpatch, python2 | python, python2-dev|python-dev, python-urlgrabber Standards-Version: 3.8.3 Homepage: http://en.opensuse.org/Build_Service/CLI Package: osc Section: devel Architecture: all -Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, python (>= 2.5), python-urlgrabber, python-rpm, python-keyring, python-gobject, python-m2crypto (>= 0.20) | python3-m2crypto +Depends: ${shlibs:Depends}, ${misc:Depends}, ${python2:Depends}, python-urlgrabber, python-rpm, python-keyring, python-gobject, python-m2crypto (>= 0.20) | python3-m2crypto Suggests: python-gnomekeyring, gnome-keyring, build (> 2010.04.24) Description: openSUSE (buildsystem) commander Commandline client for the openSUSE Build Service, which allows to access diff --git a/debian/rules b/debian/rules index 5f27b9c..09ffde1 100755 --- a/debian/rules +++ b/debian/rules @@ -1,13 +1,7 @@ #!/usr/bin/make -f %: - dh $@ - -build: build-stamp -build-stamp: - dh_testdir - touch build-stamp - python setup.py build --force + dh $@ --with python2 --buildsystem=pybuild override_dh_installchangelogs: dh_installchangelogs NEWS