setuptools provides a local copy of distutils and when building a C extension, this distutils will add the target LIBDIR (/usr/lib) to the list of library paths. If the build system has a libpython3.11.so in /usr/lib, then the linker will try to link to this shared library and fail. This adapts 008-distutils-use-python-sysroot.patch for host setuptools to add the correct library directory. Fixes: https://github.com/openwrt/packages/issues/22330 Signed-off-by: Jeffery To <jeffery.to@gmail.com>
19 lines
470 B
Makefile
19 lines
470 B
Makefile
#
|
|
# Copyright (C) 2007-2016 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
# Note: keep in sync with setuptools & pip
|
|
PYTHON3_VERSION_MAJOR:=3
|
|
PYTHON3_VERSION_MINOR:=11
|
|
PYTHON3_VERSION_MICRO:=6
|
|
|
|
PYTHON3_VERSION:=$(PYTHON3_VERSION_MAJOR).$(PYTHON3_VERSION_MINOR)
|
|
|
|
PYTHON3_SETUPTOOLS_PKG_RELEASE:=2
|
|
PYTHON3_PIP_PKG_RELEASE:=1
|
|
|
|
PYTHON3_SETUPTOOLS_VERSION:=65.5.0
|
|
PYTHON3_PIP_VERSION:=23.2.1
|