[MacPorts] #31938: python27 rev 86868 breaks py27-ipython

MacPorts noreply at macports.org
Tue Dec 6 07:44:19 PST 2011


#31938: python27 rev  86868 breaks py27-ipython
-----------------------------------+----------------------------------------
 Reporter:  oliver.andrich@…       |       Owner:  akitada@…                   
     Type:  defect                 |      Status:  new                         
 Priority:  Normal                 |   Milestone:                              
Component:  ports                  |     Version:  2.0.3                       
 Keywords:                         |        Port:  py-ipython python27 python26
-----------------------------------+----------------------------------------

Comment(by michelle.lynn.gill@…):

 Replying to [comment:13 jmr@…]:
 > It shouldn't make a difference anyway. The warning message doesn't
 advise to reinstall ipython, but to 'easy_install readline'. Installing
 py-readline should be effectively the same thing as that.

 Happy to report that I have finally figured out the problem, which
 persists for me with python 2.7.2_3 and with py27-ipython 0.11_1. Even
 though py27-readline was installed, it's not being found by the python
 installation. The command 'easy_install readline' does one very important
 thing which installing via macports does not--it updates the easy-
 install.pth ($PYTHONHOME/lib/python2.7/site-packages/easy-install.pth)
 with the path to readline (./readline). When this change is made either by
 easy_install or manually, everything works fine.

 So, it seems the installation of py-readline should either be adjusted to
 add ./readline to easy-install.pth or altered so that readline doesn't
 require help from easy-install.pth for it to be found by python.

 Either way, installing py-readline via macports is NOT the same as
 installing readline via easy_install for this reason.

-- 
Ticket URL: <https://trac.macports.org/ticket/31938#comment:16>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list