package/python3: adjust _REMOVE_USELESS_FILES fix for new layout
authorPeter Korsgaard <peter@korsgaard.com>
Fri, 2 Aug 2019 17:43:59 +0000 (19:43 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Sat, 3 Aug 2019 18:23:35 +0000 (20:23 +0200)
commitb3424c8fc9d1199f5836483f15af48b56373609e
treee8d461612c011bdac8ef9d50c78cd38358a14dca
parent38b28e48d8d89fc3696fa4c77fa2e2a5c1e88ac7
package/python3: adjust _REMOVE_USELESS_FILES fix for new layout

python3 nowadays appends the triplet to the config-<version>m directory:

echo target/usr/lib/python3.7/config-*
target/usr/lib/python3.7/config-3.7m-powerpc-linux-gnu

Likewise, there is no longer a pyconfig.h:

ls target/usr/lib/python3.7/config-3.7m-powerpc-linux-gnu
config.c  config.c.in  install-sh  libpython3.7m.a  Makefile
makesetup  python-config.py  python.o  Setup  Setup.local

So adjust the removal logic to match.  Use a wildcard rather than
$GNU_TARGET_NAME as buildroot and python3's idea of the triplet doesn't
always match (E.G.  for musl/uclibc).

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/python3/python3.mk