Summary: | net-misc/pssh with dev-lang/python-3.2 - pssh --help: ImportError: No module named version | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Rob Bruce <rob> |
Component: | New packages | Assignee: | Gentoo Cluster Team <cluster> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | bertrand, lqp1nou, s, treecleaner |
Priority: | Normal | Keywords: | EBUILD, PATCH, PMASKED |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Deadline: | 2020-10-09 | ||
Attachments: |
net-misc/pssh ebuild to use python 2.7
pssh_python3.patch |
Description
Rob Bruce
2012-09-25 13:22:50 UTC
Created attachment 324948 [details]
net-misc/pssh ebuild to use python 2.7
Added additional flags etc to ebuild to not use python 3.2
Comment on attachment 324948 [details]
net-misc/pssh ebuild to use python 2.7
--- pssh-2.3.1.ebuild 2012-08-18 12:33:33.000000000 +0200
+++ - 2012-09-25 16:33:47.178320189 +0200
@@ -4,7 +4,7 @@
EAPI=4
-PYTHON_DEPEND="*:2.5"
+PYTHON_DEPEND="2:2.5"
inherit distutils
DESCRIPTION="PSSH provides parallel versions of OpenSSH and related tools"
@@ -21,11 +21,18 @@
DEPEND="${RDEPEND}
dev-python/setuptools"
+RESTRICT_PYTHON_ABIS="3.2"
+
# Requires ssh access to run.
RESTRICT="test"
PYTHON_MODNAME=psshlib
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
src_prepare() {
sed -i -e "s|man/man1'|share/&|g" setup.py || die
distutils_src_prepare
A patch for Python3 can be found here: http://code.google.com/p/parallel-ssh/issues/detail?id=66 Created attachment 334386 [details]
pssh_python3.patch
Here is a modified ebuild that works with python 3.2 (thanks Walter for the link): --- /usr/portage/net-misc/pssh/pssh-2.3.1.ebuild 2012-08-18 12:33:33.000000000 +0200 +++ pssh-2.3.1.ebuild 2013-01-04 07:26:44.643297937 +0100 @@ -5,7 +5,7 @@ EAPI=4 PYTHON_DEPEND="*:2.5" -inherit distutils +inherit distutils eutils DESCRIPTION="PSSH provides parallel versions of OpenSSH and related tools" HOMEPAGE="http://code.google.com/p/parallel-ssh/" @@ -27,6 +27,7 @@ PYTHON_MODNAME=psshlib src_prepare() { + epatch "${FILESDIR}"/pssh_python3.patch || die "epatch failed" sed -i -e "s|man/man1'|share/&|g" setup.py || die distutils_src_prepare } (In reply to Tomas Mozes from comment #5) > Here is a modified ebuild that works with python 3.2 (thanks Walter for the > link): > I ran into the same issue today after python-updater rebuilt pssh. The patch and modified ebuild solved the problem for me. Thanks, s. Package removed. |