From 2ed5d927ca9b88d3964ada990ef46cdd38ec4b1e Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Fri, 17 Jan 2020 14:16:32 +0000 Subject: python: remove Python 2 and all supporting classes Python 2 ceased being maintained on the 1st January 2020. We've already removed all users of it from oe-core so the final step is to move the recipe and supporting classes to meta-python2. The following are removed in this commit: - python and python-native 2.7.17 - python-setuptools - The classes pythonnative, pythondir, distutils, setuptools (From OE-Core rev: 390f3edabfb1f68ed9766245291c5f44ea00cc38) Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- meta/classes/pythonnative.bbclass | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 meta/classes/pythonnative.bbclass (limited to 'meta/classes/pythonnative.bbclass') diff --git a/meta/classes/pythonnative.bbclass b/meta/classes/pythonnative.bbclass deleted file mode 100644 index 0e9019d1e2..0000000000 --- a/meta/classes/pythonnative.bbclass +++ /dev/null @@ -1,27 +0,0 @@ - -inherit python-dir - -PYTHON="${STAGING_BINDIR_NATIVE}/python-native/python" -# PYTHON_EXECUTABLE is used by cmake -PYTHON_EXECUTABLE="${PYTHON}" -EXTRANATIVEPATH += "python-native" -DEPENDS_append = " python-native " - -# python-config and other scripts are using distutils modules -# which we patch to access these variables -export STAGING_INCDIR -export STAGING_LIBDIR - -# Packages can use -# find_package(PythonInterp REQUIRED) -# find_package(PythonLibs REQUIRED) -# which ends up using libs/includes from build host -# Therefore pre-empt that effort -export PYTHON_LIBRARY="${STAGING_LIBDIR}/lib${PYTHON_DIR}${PYTHON_ABI}.so" -export PYTHON_INCLUDE_DIR="${STAGING_INCDIR}/${PYTHON_DIR}${PYTHON_ABI}" - -# suppress host user's site-packages dirs. -export PYTHONNOUSERSITE = "1" - -# autoconf macros will use their internal default preference otherwise -export PYTHON -- cgit v1.2.3-54-g00ecf