From b96064bfca74278b43c9a47e92898d1019d5b1e7 Mon Sep 17 00:00:00 2001 From: "biao716.wang" Date: Sat, 10 Oct 2020 15:55:43 +0900 Subject: [PATCH] remove build dependence with python-support Change-Id: I74dccd6f698341c98ce7d2856d1186877d9a326a Signed-off-by: biao716.wang --- Makefile | 4 ++-- createrepo/Makefile | 2 +- debian/control | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 6b907d8..3e69eba 100644 --- 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) diff --git a/createrepo/Makefile b/createrepo/Makefile index d3d3a34..ce948ae 100644 --- a/createrepo/Makefile +++ b/createrepo/Makefile @@ -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)') diff --git a/debian/control b/debian/control index 0b3394d..22d9188 100644 --- a/debian/control +++ b/debian/control @@ -3,7 +3,7 @@ Section: admin Priority: optional Maintainer: Adam Cécile (Le_Vert) 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/ -- 2.7.4