From 2069da0c2cd5d18e558d493d0cadb7bc2e02fd05 Mon Sep 17 00:00:00 2001 From: Yao Xu Date: Mon, 7 Jul 2025 13:25:12 -0700 Subject: [PATCH] Changed the required python version to 3.6 --- bin/mana_shadow_mpi_libs.py | 2 +- configure | 30 ------------------------------ configure.ac | 18 ------------------ 3 files changed, 1 insertion(+), 49 deletions(-) diff --git a/bin/mana_shadow_mpi_libs.py b/bin/mana_shadow_mpi_libs.py index 0deec8aea..5ff14a3cc 100755 --- a/bin/mana_shadow_mpi_libs.py +++ b/bin/mana_shadow_mpi_libs.py @@ -20,7 +20,7 @@ def filter_library_dependencies(executable): symbolic and absolute library names. """ try : - result = subprocess.run(["ldd", executable], capture_output=True, text=True, check=True) + result = subprocess.run(["ldd", executable], stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, check=True) except subprocess.CalledProcessError: print(f"Error: UNable to run ldd on {executable}") sys.exit(1) diff --git a/configure b/configure index 32a5e2158..97cb591d1 100755 --- a/configure +++ b/configure @@ -5251,36 +5251,6 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python 3.7 or later" >&5 -printf %s "checking for Python 3.7 or later... " >&6; } -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python3 version >= 3.7" >&5 -printf %s "checking for python3 version >= 3.7... " >&6; } -if test ${ac_cv_python3_version_3_7_or_later+y} -then : - printf %s "(cached) " >&6 -else $as_nop - - ac_cv_python3_version_3_7_or_later=no - if python3 -c 'import sys; exit(0 if sys.version_info >= (3, 7) else 1)' \ - 2>/dev/null; then - ac_cv_python3_version_3_7_or_later=yes - PYTHON3_BIN="python3" - fi - -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python3_version_3_7_or_later" >&5 -printf "%s\n" "$ac_cv_python3_version_3_7_or_later" >&6; } -if test "x$ac_cv_python3_version_3_7_or_later" = "xyes"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, found $PYTHON3_BIN" >&5 -printf "%s\n" "yes, found $PYTHON3_BIN" >&6; } - -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } - as_fn_error $? "Python 3.7 or later is required" "$LINENO" 5 -fi - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dmtcp/configure" >&5 printf %s "checking for dmtcp/configure... " >&6; } if test ${ac_cv_file_dmtcp_configure+y} diff --git a/configure.ac b/configure.ac index c18e90e1e..d4ea877f2 100644 --- a/configure.ac +++ b/configure.ac @@ -39,24 +39,6 @@ AX_CHECK_COMPILE_FLAG([-fallow-argument-mismatch], []) AC_LANG_POP([Fortran]) -AC_MSG_CHECKING([for Python 3.7 or later]) -AC_CACHE_CHECK([for python3 version >= 3.7], ac_cv_python3_version_3_7_or_later, -[ - ac_cv_python3_version_3_7_or_later=no - if python3 -c 'import sys; exit(0 if sys.version_info >= (3, 7) else 1)' \ - 2>/dev/null; then - ac_cv_python3_version_3_7_or_later=yes - PYTHON3_BIN="python3" - fi -]) -if test "x$ac_cv_python3_version_3_7_or_later" = "xyes"; then - AC_MSG_RESULT([yes, found $PYTHON3_BIN]) - AC_SUBST([PYTHON3_BIN]) -else - AC_MSG_RESULT([no]) - AC_MSG_ERROR([Python 3.7 or later is required]) -fi - AC_CHECK_FILE([dmtcp/configure], [AC_MSG_RESULT([yes, dmtcp/configure exists]) AC_DEFINE([HAVE_DMTCP_CONFIGURE], 1, [Define if dmtcp/configure exists])