python3-setuptools: Fix error when installing from source
authorJeffery To <redacted>
Thu, 21 May 2020 12:02:13 +0000 (20:02 +0800)
committerJeffery To <redacted>
Thu, 21 May 2020 12:02:13 +0000 (20:02 +0800)
commit70a7f736c5d6fb9ebec1acc8b3e8ca77704361bf
tree0a0f2eb6aa9830d2035381a33a87e95c24da6a9a
parentba6e5fc393f0f843c786e949a389c8a2835eb490
python3-setuptools: Fix error when installing from source

When a Python package is installed from source (i.e. using setup.py)
into a custom location (with --home), setuptools may want to create a
site.py file in the custom location. This file is created based on the
source code of site-patch.py, a file bundled with setuptools.

Because the normal OpenWrt setuptools package does not contain Python
source code, this file is missing and the installation will end with an
error.

This copies site-patch.py to site-patch.py.txt so that it will be
included in python3-setuptools, and patches setuptools to look for this
file.

See https://github.com/openwrt/packages/issues/12223

Signed-off-by: Jeffery To <redacted>
lang/python/python3-version.mk
lang/python/python3/files/python3-package-setuptools.mk
lang/python/python3/patches-setuptools/004-site-patch.patch [new file with mode: 0644]
git clone https://git.99rst.org/PROJECT