dev-python/msgpack: cython is only for python

Package-Manager: Portage-2.3.19, Repoman-2.3.6
This commit is contained in:
Matthew Thode
2018-03-09 13:04:33 -06:00
parent 9c678239e3
commit 634e972174

View File

@@ -18,7 +18,7 @@ IUSE="+native-extensions test"
DEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
native-extensions? (
>=dev-python/cython-0.16[${PYTHON_USEDEP}]
>=dev-python/cython-0.16[$(python_gen_usedep 'python*')]
)
test? (
dev-python/six[${PYTHON_USEDEP}]
@@ -33,6 +33,8 @@ python_prepare_all() {
if ! use native-extensions ; then
sed -i -e "/have_cython/s:True:False:" ./setup.py || die
fi
# make sure cython is optional
sed -i '/^Cython/d' requirements.txt || die
distutils-r1_python_prepare_all
}