[Pythonmac-SIG] readline

Dan Wolfe dkwolfe@pacbell.net
Sat, 30 Nov 2002 20:20:48 -0800


That's the missing piece of info... your requirement to be compatible 
with the base 10.2 Python 2.2 install from an Applescript 'do shell 
script' command. My suggestion to just install readline 4.3 was based 
on the premise that you'd be installing a new version of Python on your 
own machine... with other users machines... well, that's a whole new 
ball game. :-)

For development work, if you want readline/ssl support, you can just 
compile a new version of python and install it.  All you need to do is 
A) avoid any post 2.2 python features and B) have a separate 
machine/virgin partition to test out your Applescript.app/python code 
to make sure you didn't use anything not installed on a regular system. 
:-)

If you want to use readline/SSL in your python scripts without any 
extra installs, I'm not sure that there's anything you can do as almost 
every workaround I've heard about requires an install.  Bill Bumgarner 
has a few hints and pointers on his rants pages about getting 
readline/SSL to work with the current install.... as well as some few 
other things you might be interested in.  In particular, look at the 
following pages:

http://radio.weblogs.com/0100490/2002/10/16.html
http://radio.weblogs.com/0100490/2002/09/25.html

I haven't tested them but knowing Bill, they should work. ;-)

- Dan


On Saturday, November 30, 2002, at 07:18  PM, Paul Berkowitz wrote:

> Thank you again, Nicholas. I'm afraid I'm stuck in Python 2.2 for the
> moment: I will be wanting to include python -c commands in 'do shell 
> script'
> in an AppleScript Studio app, and I have to know that they will work 
> the
> same with the built-in Python on users' machines as in my own. I don't 
> mind
> requiring a particular OS version at the time I release the app (which 
> won't
> be for a good long while, so maybe we'll be up to OS 10.2 and Python 
> 2.3 by
> that point), but no special installations for users.
>
> Now - what does "link with the private readline.framework" mean? Does
> someone here know how to do that? Dan Wolfe mentioned something about
> "installing readline 4.2 or 4.3". I'd like to do something that lets 
> me use
> readline without otherwise changing Python 2.2 for now, if that's 
> possible.