File: 0002-inherit-PYTHON-in-kctest.py.patch

package info (click to toggle)
python-kyotocabinet 1.23-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 784 kB
  • sloc: cpp: 2,967; python: 1,241; javascript: 249; makefile: 85
file content (24 lines) | stat: -rw-r--r-- 555 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Shawn Landden <shawnlandden@gmail.com>
Date: Fri, 8 Jun 2012 10:41:56 -0700
Subject: [PATCH 2/2] inherit $PYTHON in kctest.py

---
 Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 49519df..88dd998 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,10 @@ VERSION = 1.23
 PACKAGEDIR = $(PACKAGE)-$(VERSION)
 PACKAGETGZ = $(PACKAGE)-$(VERSION).tar.gz
 
-PYTHON = python3
+ifndef $(PYTHON)
+       PYTHON = python3
+endif
+
 RUNENV = LD_LIBRARY_PATH=.:/lib:/usr/lib:/usr/local/lib:$(HOME)/lib