From: Michael Tremer Date: Fri, 24 Mar 2023 16:56:13 +0000 (+0000) Subject: macros: Drop anything related to Python 2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e61600b3395c871e98e8cd117fe0c76bcdead0d1;p=people%2Fstevee%2Fpakfire.git macros: Drop anything related to Python 2 Signed-off-by: Michael Tremer --- diff --git a/macros/python.macro b/macros/python.macro index 75b0b72a..e703d85a 100644 --- a/macros/python.macro +++ b/macros/python.macro @@ -4,11 +4,3 @@ python3 = /usr/bin/python3 python3_sitearch = %(%{python3} -c "import sysconfig; print(sysconfig.get_path('platlib', vars={'platbase': '%{prefix}', 'base': '%{prefix}'}))") python3_sitelib = %(%{python3} -c "import sysconfig; print(sysconfig.get_path('purelib', vars={'platbase': '%{prefix}', 'base': '%{prefix}'}))") python3_version = %(%{python3} -c "import sys; print('{0.major}.{0.minor}'.format(sys.version_info))") - -# Python 2 constants. -python = /usr/bin/python2 -python_bytecompile = %{python_bytecompile_script} --python=%{python} - -python_sitearch = %(%{python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)") -python_sitelib = %(%{python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()") -python_version = %(%{python} -c "import sys; sys.stdout.write(sys.version[:3])")