mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/dulwich: Do not install docs to site-packages
Closes: https://bugs.gentoo.org/921651 Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@@ -34,6 +34,15 @@ BDEPEND="
|
||||
|
||||
distutils_enable_sphinx docs
|
||||
|
||||
src_prepare() {
|
||||
# Do not install "docs" directory into site-packages
|
||||
# https://github.com/jelmer/dulwich/issues/1248
|
||||
sed -i -e '/package_data/d' setup.py || die
|
||||
rm -r *.egg-info || die
|
||||
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# remove interference from the tests that do stuff like user.name
|
||||
unset GIT_AUTHOR_NAME GIT_AUTHOR_EMAIL GIT_AUTHOR_DATE
|
||||
Reference in New Issue
Block a user