Skip to content

Commit

Permalink
fix python library for 3.8+
Browse files Browse the repository at this point in the history
  • Loading branch information
lee218llnl committed Jul 20, 2023
1 parent a66f90e commit c209a04
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions config/x_ac_python.m4
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,12 @@ AC_DEFUN([X_AC_PYTHON], [
python_version=`$PYTHON -c "import distutils.sysconfig; \
print(distutils.sysconfig.get_python_version());"`
if test $python_version '>' 2.99 ; then
m="m"
python_version=$python_version$m
if test $python_version '<' 3.8 ; then
m="m"
python_version=$python_version$m
else
python_version=$python_version
fi
else
AM_CONDITIONAL([ENABLE_PYTHON2], true)
fi
Expand Down

0 comments on commit c209a04

Please sign in to comment.