Skip to content

Commit

Permalink
sys-apps/portage: Force py2 for doc-build with USE=epydoc
Browse files Browse the repository at this point in the history
  • Loading branch information
mgorny committed Dec 9, 2015
1 parent 180e66b commit e80293d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sys-apps/portage/portage-2.2.26.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ TARBALL_PV=${PV}
SRC_URI="mirror://gentoo/${PN}-${TARBALL_PV}.tar.bz2
$(prefix_src_archives ${PN}-${TARBALL_PV}.tar.bz2)"

pkg_setup() {
use epydoc && DISTUTILS_ALL_SUBPHASE_IMPLS=( python2.7 )
}

python_prepare_all() {
distutils-r1_python_prepare_all

Expand Down
4 changes: 4 additions & 0 deletions sys-apps/portage/portage-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ prefix_src_archives() {
EGIT_REPO_URI="git://anongit.gentoo.org/proj/portage.git
https://github.com/gentoo/portage.git"

pkg_setup() {
use epydoc && DISTUTILS_ALL_SUBPHASE_IMPLS=( python2.7 )
}

python_prepare_all() {
distutils-r1_python_prepare_all

Expand Down

0 comments on commit e80293d

Please sign in to comment.