remove dependency for python 86/308486/6 devel master
authorwangbiao <biao716.wang@samsung.com>
Tue, 26 Mar 2024 09:02:01 +0000 (18:02 +0900)
committerwangbiao <biao716.wang@samsung.com>
Wed, 3 Apr 2024 03:50:35 +0000 (12:50 +0900)
if installing python, it will install python-is-python2, it will set python2 as default python interpeter.
Change-Id: I650fdf7a0c08cb7ce8c252aedcb3c0a2e9417722
Signed-off-by: wangbiao <biao716.wang@samsung.com>
debian/control
debian/rules

index 49f09ed..76fb870 100644 (file)
@@ -2,7 +2,7 @@ Source:  python-snapdiff
 Section: devel
 Priority: extra
 Maintainer: Jian-feng Ding <jian-feng.ding@intel.com>
-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,
index a386918..fba2396 100755 (executable)
@@ -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