[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Getfem-commits] (no subject)
From: |
Yves Renard |
Subject: |
[Getfem-commits] (no subject) |
Date: |
Tue, 29 Oct 2019 11:19:10 -0400 (EDT) |
branch: master
commit 0ef80ab0c063f95d63e5a4a276ef63e052089ed2
Author: Yves Renard <address@hidden>
Date: Tue Oct 29 16:18:49 2019 +0100
Python 3 for default, Python 2.7 still supported for the moment
---
configure.ac | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index a0844f4..6b77426 100644
--- a/configure.ac
+++ b/configure.ac
@@ -964,7 +964,12 @@ AC_ARG_ENABLE(python,
*) AC_MSG_ERROR([bad value ${enableval} for --enable-python]) ;;
esac],[usepython=YES])
-AM_PATH_PYTHON(3.6, usepython=YES, usepython=NO)
+if test x$usepython = xYES; then
+ AM_PATH_PYTHON(3.6, usepython=YES, usepython=NO)
+ if test x$usepython = xNO; then
+ AM_PATH_PYTHON(2.7, usepython=YES, usepython=NO)
+ fi
+fi
case $host in
*mingw*)