python3: Restore platform triplet to paths 21552/head
authorJeffery To <jeffery.to@gmail.com>
Thu, 29 Jun 2023 08:33:25 +0000 (16:33 +0800)
committerJeffery To <jeffery.to@gmail.com>
Thu, 24 Aug 2023 18:24:38 +0000 (02:24 +0800)
commit0fe10114208e2c5cd572df043945a52e3ebeb6dd
treea1f13e6a6112236ebdc93fa04f4142d40e32fcd4
parent5a0055df0621d4347723993b04a2fcf045929acf
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>
lang/python/python3-package.mk
lang/python/python3/Makefile
lang/python/python3/files/python3-package-dev.mk
lang/python/python3/patches/014-remove-platform-so-suffix.patch [deleted file]
lang/python/python3/patches/016-adjust-config-paths.patch [deleted file]