Skip to content

Commit 65510f9

Browse files
krajldesroches
authored andcommitted
Use python3 by default
python2 is on its way out Signed-off-by: Khem Raj <[email protected]> [[email protected]: replace python module with python3 one for PKG_CHECK_MODULES] Signed-off-by: Ludovic Desroches <[email protected]>
1 parent 378c8a6 commit 65510f9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,15 @@ AC_ARG_ENABLE([python],
123123
[PYTHON=$enableval], [PYTHON=yes])
124124

125125
if test "x$PYTHON" = xyes; then
126-
PKG_CHECK_MODULES(PYTHON, [python >= 2.7], [have_python=yes], [have_python=no])
126+
PKG_CHECK_MODULES(PYTHON, [python3 >= 3.0], [have_python=yes], [have_python=no])
127127

128128
if test "$prefix" = "NONE"; then
129129
prefix=$ac_default_prefix
130130
fi
131131

132132
if test "x$have_python" = "xyes"; then
133133
AC_MSG_CHECKING([for Python site-packages path])
134-
PYTHON_VERSION='2.7'
134+
PYTHON_VERSION=`$PKG_CONFIG --modversion python3`
135135
PYTHON_SITE_PKG=${prefix}/lib/python${PYTHON_VERSION}/site-packages
136136
AC_MSG_RESULT([$PYTHON_SITE_PKG])
137137
AC_SUBST([PYTHON_SITE_PKG])

python/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ if HAVE_PYTHON
44
SWIG_SRC = planes.i
55

66
SWIG=swig
7-
PYTHON=python
7+
PYTHON=python3
88

99
SWIG_V_GEN = $(swig_v_GEN_$(V))
1010
swig_v_GEN_ = $(swig_v_GEN_$(AM_DEFAULT_VERBOSITY))

scripts/planes-loop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
from mpio import *
44
import os

0 commit comments

Comments
 (0)