Skip to content

Commit

Permalink
Use python3 by default
Browse files Browse the repository at this point in the history
python2 is on its way out

Signed-off-by: Khem Raj <[email protected]>
  • Loading branch information
kraj authored and ldesroches committed Jun 3, 2024
1 parent 378c8a6 commit a62a9dd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down
2 changes: 1 addition & 1 deletion python/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion scripts/planes-loop.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from mpio import *
import os
Expand Down

0 comments on commit a62a9dd

Please sign in to comment.