From a62a9ddf93f1b7170e854ea07ee5c98f7977f253 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 26 Nov 2019 11:18:39 -0800 Subject: [PATCH] Use python3 by default python2 is on its way out Signed-off-by: Khem Raj --- configure.ac | 2 +- python/Makefile.am | 2 +- scripts/planes-loop.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 44fd052..a1a43c9 100644 --- a/configure.ac +++ b/configure.ac @@ -131,7 +131,7 @@ if test "x$PYTHON" = xyes; then if test "x$have_python" = "xyes"; then AC_MSG_CHECKING([for Python site-packages path]) - PYTHON_VERSION='2.7' + PYTHON_VERSION=`$PKG_CONFIG --modversion python3` PYTHON_SITE_PKG=${prefix}/lib/python${PYTHON_VERSION}/site-packages AC_MSG_RESULT([$PYTHON_SITE_PKG]) AC_SUBST([PYTHON_SITE_PKG]) diff --git a/python/Makefile.am b/python/Makefile.am index 63c737f..015fc26 100644 --- a/python/Makefile.am +++ b/python/Makefile.am @@ -4,7 +4,7 @@ if HAVE_PYTHON SWIG_SRC = planes.i SWIG=swig -PYTHON=python +PYTHON=python3 SWIG_V_GEN = $(swig_v_GEN_$(V)) swig_v_GEN_ = $(swig_v_GEN_$(AM_DEFAULT_VERBOSITY)) diff --git a/scripts/planes-loop.py b/scripts/planes-loop.py index db438ea..40363c0 100755 --- a/scripts/planes-loop.py +++ b/scripts/planes-loop.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from mpio import * import os