From: wangbiao Date: Tue, 26 Mar 2024 09:02:01 +0000 (+0900) Subject: remove dependency for python X-Git-Tag: accepted/tools/devbase/tools/legacy/20250527.042545^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;p=services%2Fpython-snapdiff.git remove dependency for python if installing python, it will install python-is-python2, it will set python2 as default python interpeter. Change-Id: I650fdf7a0c08cb7ce8c252aedcb3c0a2e9417722 Signed-off-by: wangbiao --- diff --git a/debian/control b/debian/control index 49f09ed..76fb870 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: python-snapdiff Section: devel Priority: extra Maintainer: Jian-feng Ding -Build-Depends: debhelper (>= 7.0.15), cdbs, python-dev,dh-python, python-docutils, python, python-setuptools, python-jinja2, python-requests, python-yaml +Build-Depends: debhelper (>= 7.0.15), cdbs, python2-dev|python-dev, dh-python, python-docutils, python2|python, python-setuptools, python-jinja2, python-requests, python-yaml Standards-Version: 0.1 Homepage: http://www.tizen.org @@ -10,7 +10,7 @@ Package: python-snapdiff Architecture: all Depends: ${python:Depends}, rpm, - python, + python2|python, python-jinja2, python-requests, python-yaml, diff --git a/debian/rules b/debian/rules index a386918..fba2396 100755 --- a/debian/rules +++ b/debian/rules @@ -7,7 +7,8 @@ build: build-stamp build-stamp: dh_testdir ls /usr/lib/python2.7/ - CFLAGS="%{optflags}" python setup.py build + + CFLAGS="%{optflags}" python2 setup.py build clean: dh_testdir dh_testroot @@ -23,7 +24,7 @@ install: build # Installing package - python setup.py install --prefix=/usr --root=$(CURDIR) + python2 setup.py install --prefix=/usr --root=$(CURDIR) install -D -m 644 distfiles/profile.yaml $(CURDIR)/etc/python-snapdiff/profile.yaml binary-indep: build install dh_testdir