[MacPorts] #59930: Byobu attempts to load system Python3

MacPorts noreply at macports.org
Wed Jan 8 17:02:35 UTC 2020


#59930: Byobu attempts to load system Python3
--------------------------+----------------------
  Reporter:  jenstroeger  |      Owner:  l2dy
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.6.2
Resolution:               |   Keywords:
      Port:  byobu        |
--------------------------+----------------------

Comment (by l2dy):

 The [https://pagure.io/newt libnewt] port with python support compiled is
 required for the python part of byobu to function. But this port is built
 `--without-python`. So even if byobu properly loads Python from MacPorts,
 it would not have the required module.

 {{{
 byobu-5.130/usr/lib/byobu/include/constants

 # Find a suitable python interpreter, if undefined
 if [ -z "$BYOBU_PYTHON" ]; then
         if python3 -c "import snack" >/dev/null 2>&1; then
                 export BYOBU_PYTHON="python3"
         elif python2 -c "import snack" >/dev/null 2>&1; then
                 export BYOBU_PYTHON="python2"
         elif python -c "import snack" >/dev/null 2>&1; then
                 export BYOBU_PYTHON="python"
         fi
 fi
 }}}

 We need to package `py-newt` first.

-- 
Ticket URL: <https://trac.macports.org/ticket/59930#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list