[mythtv-commits] Ticket #13475: Fix Python Bindings, add python3 compatibility
MythTV
noreply at mythtv.org
Mon Sep 9 15:40:57 UTC 2019
#13475: Fix Python Bindings, add python3 compatibility
-------------------------------+-----------------------------
Reporter: rcrdnalor | Owner: Bill Meek
Type: Patch - Feature | Status: accepted
Priority: minor | Milestone: 31.0
Component: Bindings - Python | Version: Master Head
Severity: medium | Resolution:
Keywords: Python | Ticket locked: 0
-------------------------------+-----------------------------
Comment (by hobbes1069):
FYI I found a bug in configure related to Python 3.
{{{
# Check for python dependencies
if enabled bindings_python; then
is_python3 && python=python2
check_python || disable_bindings_python "Python 2.6"
check_py_lib MySQLdb || disable_bindings_python "MySQLdb"
check_py_lib lxml || disable_bindings_python "lxml"
check_py_lib urlgrabber || disable_bindings_python "urlgrabber"
fi
}}}
The conditional on the is_python3 line is backwards. If "is_python3"
checks positive it exits with code 0 and code 1 if it fails which means
the 2nd part get's executed immediately reassigning python3 to python2.
--
Ticket URL: <https://code.mythtv.org/trac/ticket/13475#comment:7>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list