Opened 20 years ago

Closed 20 years ago

Last modified 9 years ago

#2040 closed enhancement (fixed)

Adding readline support to python23.

Reported by: tigran@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port: python23

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Python can have readline style support. THere are number of ways to accomplish this, but the most functional and easiest to use appears to be the readline support that comes with Python. This also requires the GNU readline library to be available. I've modified my Portfile for this. I think the fix for adding this variant should be something like this. YMMV, but it's working for me! (p.s. I already had readline installed, so the depend_lib-append is somewhat questionable, but the configure portion certainly works)

Index: Portfile
===================================================================
RCS file: /Volumes/src/cvs/od/proj/darwinports/dports/lang/python23/Portfile,v
retrieving revision 1.12
diff -u -r1.12 Portfile
--- Portfile    6 Jun 2004 07:05:06 -0000       1.12
+++ Portfile    11 Jul 2004 14:34:24 -0000
@@ -46,6 +46,11 @@
        configure.args-append   --with-pydebug
 }
 
+variant readline {
+        depends_lib-append      lib:libreadline:readline
+        configure.args-append   --with-readline
+}
+
 variant darwin {
        patchfiles-append               patch-Modules_getpath.c
        if {![variant_isset puredarwin]} {

Change History (2)

comment:1 Changed 20 years ago by blb@…

Resolution: fixed
Status: newclosed

Variant has been added to the port.

Thanks for the update.

comment:2 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Port: python23 added
Note: See TracTickets for help on using tickets.