mirror of
https://github.com/openwrt/packages.git
synced 2025-12-25 01:48:22 +04:00
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>
(cherry picked from commit 624fb95561)
20 lines
470 B
Makefile
20 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
|