readline for mac python? (really, reproducing mac python packages)

  • Thread starter K Richard Pixley
  • Start date
K

K Richard Pixley

I'm having trouble finding a reasonable python environment on mac.

The supplied binaries, (2.7.2, 3.2.2), are built with old versions of
macosx and are not capable of building any third party packages that
require gcc.

The source builds easily enough out of the box, (./configure
--enable-framework && make && sudo make install), but when I do that, I
end up with a python interpreter that lacks readline.

How do I get readline involved?

Or better... is there an instruction sheet somewhere on how to reproduce
the python.org binary packages?

--rich
 
K

K Richard Pixley

I'm having trouble finding a reasonable python environment on mac.

The supplied binaries, (2.7.2, 3.2.2), are built with old versions of
macosx and are not capable of building any third party packages that
require gcc.

The source builds easily enough out of the box, (./configure
--enable-framework && make && sudo make install), but when I do that, I
end up with a python interpreter that lacks readline.

How do I get readline involved?

Or better... is there an instruction sheet somewhere on how to reproduce
the python.org binary packages?

--rich

Bah. I just needed to dig a little deeper into the source. All the doc
I wanted is in there.

--rich
 
K

K Richard Pixley

Bah. I just needed to dig a little deeper into the source. All the doc I
wanted is in there.

Well, partial victory. 2.7.2 builds. 3.2 doesn't.

--rich
 
N

Ned Deily

Well, partial victory. 2.7.2 builds. 3.2 doesn't.

As you may have discovered, by default the python.org Python 2.7.x and
3.2.x on OS X 10.6 and above will link with the readline compatibility
layer supplied with BSD editline (libedit) shipped by Apple. The
Apple-suppled system Pythons also link with editline. While it is
possible to link with your own version of GNU readline, there is also a
readline project listed on PyPI that supplies pre-compiled versions of
the Python readline module linked with GNU readline. I believe they are
intended primarily for the system Pythons; I have not tried them myself
with the python.org versions.

http://pypi.python.org/pypi/readline
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,738
Latest member
TiffinyHol

Latest Threads

Top