|
| 1 | +From ba4cc0d7b08efecd2b2bfb04c7a70187d7056304 Mon Sep 17 00:00:00 2001 |
| 2 | +From: Khem Raj < [email protected]> |
| 3 | +Date: Tue, 26 Nov 2019 11:18:39 -0800 |
| 4 | +Subject: [PATCH] Use python3 by default |
| 5 | + |
| 6 | +python2 is on its way out |
| 7 | + |
| 8 | +Upstream-Status: Submitted [https://github.com/linux4sam/libplanes/pull/3] |
| 9 | +Signed-off-by: Khem Raj < [email protected]> |
| 10 | +--- |
| 11 | + configure.ac | 2 +- |
| 12 | + python/Makefile.am | 2 +- |
| 13 | + scripts/planes-loop.py | 2 +- |
| 14 | + 3 files changed, 3 insertions(+), 3 deletions(-) |
| 15 | + |
| 16 | +diff --git a/configure.ac b/configure.ac |
| 17 | +index 69e9478..ba0d2e7 100644 |
| 18 | +--- a/configure.ac |
| 19 | ++++ b/configure.ac |
| 20 | +@@ -129,7 +129,7 @@ if test "x$PYTHON" = xyes; then |
| 21 | + |
| 22 | + if test "x$have_python" = "xyes"; then |
| 23 | + AC_MSG_CHECKING([for Python site-packages path]) |
| 24 | +- PYTHON_VERSION='2.7' |
| 25 | ++ PYTHON_VERSION=`$PKG_CONFIG --modversion python3` |
| 26 | + PYTHON_SITE_PKG=${prefix}/lib/python${PYTHON_VERSION}/site-packages |
| 27 | + AC_MSG_RESULT([$PYTHON_SITE_PKG]) |
| 28 | + AC_SUBST([PYTHON_SITE_PKG]) |
| 29 | +diff --git a/python/Makefile.am b/python/Makefile.am |
| 30 | +index 63c737f..015fc26 100644 |
| 31 | +--- a/python/Makefile.am |
| 32 | ++++ b/python/Makefile.am |
| 33 | +@@ -4,7 +4,7 @@ if HAVE_PYTHON |
| 34 | + SWIG_SRC = planes.i |
| 35 | + |
| 36 | + SWIG=swig |
| 37 | +-PYTHON=python |
| 38 | ++PYTHON=python3 |
| 39 | + |
| 40 | + SWIG_V_GEN = $(swig_v_GEN_$(V)) |
| 41 | + swig_v_GEN_ = $(swig_v_GEN_$(AM_DEFAULT_VERBOSITY)) |
| 42 | +diff --git a/scripts/planes-loop.py b/scripts/planes-loop.py |
| 43 | +index ded88d4..4c6904e 100755 |
| 44 | +--- a/scripts/planes-loop.py |
| 45 | ++++ b/scripts/planes-loop.py |
| 46 | +@@ -1,4 +1,4 @@ |
| 47 | +-#!/usr/bin/env python |
| 48 | ++#!/usr/bin/env python3 |
| 49 | + |
| 50 | + from mpio import * |
| 51 | + import glob |
| 52 | +-- |
| 53 | +2.24.0 |
| 54 | + |
0 commit comments