mirror of
https://github.com/openwrt/packages.git
synced 2025-12-20 01:21:21 +00:00
python3: Restore platform triplet to paths
This removes 014-remove-platform-so-suffix.patch and
016-adjust-config-paths.patch, restoring the platform triplet to paths
for:
* C extensions (*.cpython-311-*.so)
* Build config data directory (/usr/lib/python3.11/config-3.11-*/)
* sysconfig data file (/usr/lib/python3.11/_sysconfigdata_*.py)
Setting `_PYTHON_SYSCONFIGDATA_NAME` during package builds ensures that
sysconfig data for target Python is loaded, in particular so that C
extensions built will have the correct extension / platform triplet.
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 0fe1011420)
This commit is contained in:
@@ -27,7 +27,7 @@ define Py3Package/python3-dev/install
|
||||
endef
|
||||
|
||||
$(eval $(call Py3BasePackage,python3-dev, \
|
||||
/usr/lib/python$(PYTHON3_VERSION)/config-$(PYTHON3_VERSION) \
|
||||
/usr/lib/python$(PYTHON3_VERSION)/config-$(PYTHON3_VERSION)-* \
|
||||
/usr/include/python$(PYTHON3_VERSION) \
|
||||
/usr/lib/pkgconfig \
|
||||
, \
|
||||
|
||||
Reference in New Issue
Block a user