summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Andrews <candrews@gentoo.org>2018-07-17 11:29:42 -0400
committerZac Medico <zmedico@gentoo.org>2018-07-17 12:51:21 -0700
commite91c5248782a92501ed6be6b11e360124e5f5655 (patch)
tree824131d3426867276250098ccbc5445b356effbf /sys-apps
parentsys-kernel/gentoo-sources: Linux patch 4.17.7 (diff)
downloadgentoo-e91c5248782a92501ed6be6b11e360124e5f5655.tar.gz
gentoo-e91c5248782a92501ed6be6b11e360124e5f5655.tar.bz2
gentoo-e91c5248782a92501ed6be6b11e360124e5f5655.zip
sys-apps/portage: Enable py3.7
Closes: https://github.com/gentoo/gentoo/pull/9263 Package-Manager: Portage-2.3.43, Repoman-2.3.10
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/portage/portage-2.3.43.ebuild6
-rw-r--r--sys-apps/portage/portage-9999.ebuild2
2 files changed, 6 insertions, 2 deletions
diff --git a/sys-apps/portage/portage-2.3.43.ebuild b/sys-apps/portage/portage-2.3.43.ebuild
index b0e8987ea116..4afb116e9521 100644
--- a/sys-apps/portage/portage-2.3.43.ebuild
+++ b/sys-apps/portage/portage-2.3.43.ebuild
@@ -5,7 +5,7 @@ EAPI=5
PYTHON_COMPAT=(
pypy
- python3_4 python3_5 python3_6
+ python3_4 python3_5 python3_6 python3_7
python2_7
)
PYTHON_REQ_USE='bzip2(+),threads(+)'
@@ -95,6 +95,10 @@ pkg_setup() {
python_prepare_all() {
distutils-r1_python_prepare_all
+ # Apply ae8cc32ccd81 and e46dd735cd4d for python3.7 compat.
+ sed -e 's|\(def call_.*,*args\)):$|\1, **kwargs):|' \
+ -i pym/portage/util/_eventloop/EventLoop.py || die
+
if use gentoo-dev; then
einfo "Disabling --dynamic-deps by default for gentoo-dev..."
sed -e 's:\("--dynamic-deps", \)\("y"\):\1"n":' \
diff --git a/sys-apps/portage/portage-9999.ebuild b/sys-apps/portage/portage-9999.ebuild
index b02d454312c9..fb6671b35c85 100644
--- a/sys-apps/portage/portage-9999.ebuild
+++ b/sys-apps/portage/portage-9999.ebuild
@@ -5,7 +5,7 @@ EAPI=6
PYTHON_COMPAT=(
pypy
- python3_4 python3_5 python3_6
+ python3_4 python3_5 python3_6 python3_7
python2_7
)
PYTHON_REQ_USE='bzip2(+),threads(+)'