Opened 10 years ago

Closed 7 months ago

#44044 closed defect (fixed)

libnewt: add support for Python

Reported by: mojca (Mojca Miklavec) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: leventyalcin@…, cooljeanius (Eric Gallager), kurthindenburg (Kurt Hindenburg), l2dy (Zero King)
Port: libnewt

Description

As mentioned by Levent on the mailing list and in ticket #30238, libnewt needs to be compiled --with-python to satisfy the requirements for byobu.

But configure and makefiles need a bit of fixing to make this work properly with python from MacPorts.

Change History (5)

comment:1 Changed 10 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:2 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)

Cc: khindenburg@… added

Cc Me!

comment:3 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)

I can get it to compile w/ python but any of the test python scripts can't find snack

otool -L /opt/local/lib/python2.7/site-packages/_snack.so                                            
/opt/local/lib/python2.7/site-packages/_snack.so:
        python2.7/_snack.so (compatibility version 0.0.0, current version 0.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
        /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 855.17.0)
        /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.0)
        /opt/local/lib/libnewt.so.0.52.17 (compatibility version 0.52.0, current version 0.52.17)
        /opt/local/lib/libslang.2.dylib (compatibility version 2.0.0, current version 2.2.0)
        /opt/local/lib/libintl.8.dylib (compatibility version 10.0.0, current version 10.2.0)

https://launchpadlibrarian.net/18514837/test.py

ImportError: No module named snack

comment:4 Changed 7 years ago by l2dy (Zero King)

Cc: l2dy added

comment:5 Changed 7 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

In a3963e96b3c28234b5d8800f440e30a8a1d0c612/macports-ports (master):

libnewt: Add py*-libnewt and whiptcl subports

Move tcl bindings to new whiptcl subport.

Add new py*-libnewt subports for the "snack" python bindings.

A bunch of build system patches are needed to make this work, to be
submitted to the developers in due course.

Closes: #44044

Note: See TracTickets for help on using tickets.