From 7669d1ffb57895b2cac066c7b10bfa6c9ebb4676 Mon Sep 17 00:00:00 2001 From: Vlad Date: Tue, 7 Apr 2015 12:42:27 +0300 Subject: Move pyconfig.h from python3-dev to python3 package Here is the related commit in python (python2) package: https://github.com/alpinelinux/aports/commit/01a80be974d3c4034414bdfde057ca2ecd96601d The lack of `pyconfig.h` breaks distutils (`/usr/lib/python3.4/distutils/sysconfig.py`): ```bash $ pip3 install -U pip ``` Please, note that I have added suffix 'm' as since Python 3.2 it is configured with enabled `--with-pymalloc` option by default, which adds suffix 'm' (/usr/include/python3.4m/). --- testing/python3/APKBUILD | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'testing/python3') diff --git a/testing/python3/APKBUILD b/testing/python3/APKBUILD index 8b3a193cd7..5fe37f9099 100644 --- a/testing/python3/APKBUILD +++ b/testing/python3/APKBUILD @@ -55,6 +55,14 @@ _mv_files() { mv "$pkgdir"/usr/lib/python$_pkgver/test "$subpkgdir"/usr/lib/python$_pkgver } +dev() { + # pyconfig.h is needed runtime so we move it back + default_dev + mkdir -p "$pkgdir"/usr/include/python${_pkgver}m + mv "$subpkgdir"/usr/include/python${_pkgver}m/pyconfig.h \ + "$pkgdir"/usr/include/python${_pkgver}m/ +} + tests() { pkgdesc="The test modules from the main python package" arch="noarch" -- cgit v1.2.3