Commit 7669d1ff authored by Vlad Frolov's avatar Vlad Frolov Committed by Natanael Copa

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/).
parent 14a9504d
......@@ -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"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment