3191fad016
async.py is python3-only, so it fails to byte-compile with python2. Fix #4480.
36 lines
1 KiB
Bash
36 lines
1 KiB
Bash
# Template file for 'python-pexpect'
|
|
pkgname=python-pexpect
|
|
version=4.2.0
|
|
revision=2
|
|
noarch=yes
|
|
wrksrc="${pkgname/python-}-${version}"
|
|
build_style=python-module
|
|
python_versions="2.7 3.4"
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
|
depends="python-ptyprocess"
|
|
pycompile_module="pexpect"
|
|
short_desc="Python2 module for spawning child applications and controlling them"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="https://pexpect.readthedocs.io/"
|
|
license="ISC"
|
|
distfiles="${PYPI_SITE}/p/pexpect/pexpect-${version}.tar.gz"
|
|
checksum=bf6816b8cc8d301a499e7adf338828b39bc7548eb64dbed4dd410ed93d95f853
|
|
|
|
post_install() {
|
|
# drop asyncio stuff from python2
|
|
# https://github.com/pexpect/pexpect/issues/290
|
|
rm -f ${DESTDIR}/usr/lib/python2*/site-packages/pexpect/async.py
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3.4-pexpect_package() {
|
|
noarch=yes
|
|
depends="python3.4-ptyprocess"
|
|
pycompile_version="3.4"
|
|
pycompile_module="pexpect"
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3.4
|
|
vlicense LICENSE
|
|
}
|
|
}
|