diff options
| author | Vlad <frolvlad@gmail.com> | 2015-04-07 12:42:27 +0300 |
|---|---|---|
| committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-04-08 11:03:46 +0000 |
| commit | 7669d1ffb57895b2cac066c7b10bfa6c9ebb4676 (patch) | |
| tree | c8f04072baae94cb7e9bebc4a67cda8a78f31bf4 /testing/python3 | |
| parent | 14a9504d544f94656045eb68aecea9039e5c767f (diff) | |
| download | aports-7669d1ffb57895b2cac066c7b10bfa6c9ebb4676.tar.bz2 aports-7669d1ffb57895b2cac066c7b10bfa6c9ebb4676.tar.xz | |
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/).
Diffstat (limited to 'testing/python3')
| -rw-r--r-- | testing/python3/APKBUILD | 8 |
1 files changed, 8 insertions, 0 deletions
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" |
