1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python3_{6,7,8} pypy3 )
12 DESCRIPTION="Basic inter-process locks"
13 HOMEPAGE="https://pypi.org/project/zc.lockfile/"
14 SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
18 KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
21 RDEPEND=">=dev-python/setuptools-3.3[${PYTHON_USEDEP}]"
23 test? ( dev-python/zope-testing[${PYTHON_USEDEP}] )"
25 S="${WORKDIR}"/${MY_P}
27 DOCS=( CHANGES.rst README.rst )
29 distutils_enable_tests nose
31 # Prevent incorrect installation of data file
32 python_prepare_all() {
33 sed -e '/^ include_package_data/d' -i setup.py || die
34 distutils-r1_python_prepare_all
38 distutils-r1_python_install
41 python_domodule src/zc/__init__.py
44 python_install_all() {
45 distutils-r1_python_install_all
47 find "${D}" -name '*.pth' -delete || die