package/python-libconfig: drop python2 support

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
Peter Korsgaard 2022-02-09 17:51:11 +01:00 committed by Yann E. MORIN
parent baa88adcc6
commit 8d73a7adde

View File

@ -14,14 +14,8 @@ PYTHON_LIBCONFIG_SETUP_TYPE = setuptools
PYTHON_LIBCONFIG_DEPENDENCIES = libconfig boost
ifeq ($(BR2_PACKAGE_PYTHON),y)
PYTHON_LIBCONFIG_PYVER = $(PYTHON_VERSION_MAJOR)
else ifeq ($(BR2_PACKAGE_PYTHON3),y)
PYTHON_LIBCONFIG_PYVER = $(PYTHON3_VERSION_MAJOR)
endif
define PYTHON_LIBCONFIG_FIX_SETUP
$(SED) 's/boost_python/boost_python$(subst .,,$(PYTHON_LIBCONFIG_PYVER))/g' \
$(SED) 's/boost_python/boost_python$(subst .,,$(PYTHON3_VERSION_MAJOR))/g' \
$(@D)/setup.py
endef
PYTHON_LIBCONFIG_POST_PATCH_HOOKS += PYTHON_LIBCONFIG_FIX_SETUP