mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-15 06:24:37 +00:00
Fix fedabipkgdiff configure check for Python 3.12
importlib is the Python 3 replacement to imp, which was deprecated in Python 3.4 and removed in 3.12. * configure.ac (REQUIRED_PYTHON_MODULES_FOR_FEDABIPKGDIFF): Test for importlib.machinery instead of imp with python3. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com> Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
parent
0b338dfaf6
commit
33f64461bf
@ -739,13 +739,15 @@ if test x$CHECK_DEPS_FOR_FEDABIPKGDIFF = xyes; then
|
|||||||
# urllib.parse. Oh well.
|
# urllib.parse. Oh well.
|
||||||
if test x$PYTHON = xpython3; then
|
if test x$PYTHON = xpython3; then
|
||||||
URLPARSE_MODULE=urllib.parse
|
URLPARSE_MODULE=urllib.parse
|
||||||
|
IMPORT_MODULE=importlib.machinery
|
||||||
else
|
else
|
||||||
URLPARSE_MODULE=urlparse
|
URLPARSE_MODULE=urlparse
|
||||||
|
IMPORT_MODULE=imp
|
||||||
fi
|
fi
|
||||||
|
|
||||||
REQUIRED_PYTHON_MODULES_FOR_FEDABIPKGDIFF="\
|
REQUIRED_PYTHON_MODULES_FOR_FEDABIPKGDIFF="\
|
||||||
argparse logging os re subprocess sys $URLPARSE_MODULE \
|
argparse logging os re subprocess sys $URLPARSE_MODULE \
|
||||||
xdg koji mock rpm imp tempfile mimetypes shutil six"
|
xdg koji mock rpm $IMPORT_MODULE tempfile mimetypes shutil six"
|
||||||
|
|
||||||
AX_CHECK_PYTHON_MODULES([$REQUIRED_PYTHON_MODULES_FOR_FEDABIPKGDIFF],
|
AX_CHECK_PYTHON_MODULES([$REQUIRED_PYTHON_MODULES_FOR_FEDABIPKGDIFF],
|
||||||
[$PYTHON],
|
[$PYTHON],
|
||||||
|
Loading…
Reference in New Issue
Block a user