remove build dependence with python-support 96/245496/3 accepted/tools_devbase_tools accepted/tools_devbase_tools_legacy devel master accepted/tools/devbase/tools/20250527.103730 accepted/tools/devbase/tools/20250528.062208 accepted/tools/devbase/tools/legacy/20250527.042453
authorbiao716.wang <biao716.wang@samsung.com>
Sat, 10 Oct 2020 06:55:43 +0000 (15:55 +0900)
committerbiao716.wang <biao716.wang@samsung.com>
Mon, 12 Oct 2020 02:49:03 +0000 (11:49 +0900)
Change-Id: I74dccd6f698341c98ce7d2856d1186877d9a326a
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
Makefile
createrepo/Makefile
debian/control

index 6b907d81a2b01026828fa5677659ff90c7e449fd..3e69eba786300dc4f6c55a50eb5c87e415142bbd 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@ PKGNAME = createrepo
 VERSION=$(shell awk '/Version:/ { print $$2 }' ${PKGNAME}.spec)
 RELEASE=$(shell awk '/Release:/ { print $$2 }' ${PKGNAME}.spec)
 CVSTAG=createrepo-$(subst .,_,$(VERSION)-$(RELEASE))
-PYTHON=python
+PYTHON=python2
 SUBDIRS = $(PKGNAME) bin docs
 PYFILES = $(wildcard *.py)
 
@@ -51,7 +51,7 @@ MODULES = $(srcdir)/genpkgmetadata.py \
 
 .SUFFIXES: .py .pyc
 .py.pyc: 
-       python -c "import py_compile; py_compile.compile($*.py)"
+       $(PYTHON) -c "import py_compile; py_compile.compile($*.py)"
 
 
 all: $(MODULES)
index d3d3a3430be16830f18f3b99d44a32c66ebd596d..ce948ae4cd5b4e86cea95617bb2d948b6c2f73d8 100644 (file)
@@ -1,4 +1,4 @@
-PYTHON=python
+PYTHON=python2
 PACKAGE = $(shell basename `pwd`)
 PYFILES = $(wildcard *.py)
 PYVER := $(shell $(PYTHON) -c 'import sys; print "%.3s" %(sys.version)')
index 0b3394dff477f2967866a1d299141cd214a0a2e9..22d91887fbd5e2b12e5032aa86bff32aa0a2d3d4 100644 (file)
@@ -3,7 +3,7 @@ Section: admin
 Priority: optional
 Maintainer: Adam Cécile (Le_Vert) <gandalf@le-vert.net>
 Build-Depends: debhelper (>= 5.0.37.2)
-Build-Depends-Indep: python-all-dev (>= 2.3.5-11), python-support (>= 0.5.3)
+Build-Depends-Indep: python-all-dev (>= 2.3.5-11), dh-python
 Standards-Version: 3.7.3
 Homepage: http://linux.duke.edu/projects/metadata/