| Summary: | net-p2p/qbittorrent-9999 supports python 3 | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Eugene Shalygin <eugene.shalygin> |
| Component: | Current packages | Assignee: | Markos Chandras (RETIRED) <hwoarang> |
| Status: | RESOLVED OBSOLETE | ||
| Severity: | enhancement | CC: | net-p2p, python, qt |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Eugene Shalygin
2015-09-21 16:23:23 UTC
as usual i am going to need some python@ help here for multiple python implementations (In reply to Markos Chandras from comment #1) > as usual i am going to need some python@ help here for multiple python > implementations Delete lines 260-275 in https://github.com/qbittorrent/qBittorrent/blob/master/src/core/utils/misc.cpp Use plain python not python2/3. The rest will be handled by the Gentoo python system. Is there no way to do it without patching the sources? Is it linked to python? If it is only calling the python interpreter, but has no python modules installed, you can just leave it as is, use python-single-r1.eclass and depend on all python versions. If it installs modules, you need to delete those lines and patch line 279 to explicitly call the python used during installation e.g. /python/python3.4/. It does not install python modules in the system. A patch would be much appreciated diff --git a/src/core/utils/misc.cpp b/src/core/utils/misc.cpp
index ceef86d..93a3cec 100644
--- a/src/core/utils/misc.cpp
+++ b/src/core/utils/misc.cpp
@@ -258,7 +258,7 @@ QString Utils::Misc::pythonExecutable()
static QString executable;
if (executable.isEmpty()) {
QProcess pythonProc;
-#if defined(Q_OS_UNIX)
+#if 0
/*
* On Unix-Like Systems python2 and python3 should always exist
* http://legacy.python.org/dev/peps/pep-0394/
For me a ebuild with the following changes works:
PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} )
and
inherit python-any-r1
All python stuff in the ebuild is gone with 3.3.4-r1. This is therefore obsolete. |