Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 615250 - dev-python/ipython-5.3.0 must has RDEPEND dev-python/backports-shutil_get_terminal_size
Summary: dev-python/ipython-5.3.0 must has RDEPEND dev-python/backports-shutil_get_ter...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-11 10:14 UTC by Mike Hiretsky
Modified: 2020-03-27 16:33 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Hiretsky 2017-04-11 10:14:08 UTC
dev-python/ipython-5.3.0 must has RDEPEND dev-python/backports-shutil_get_terminal_size for python2.

after emerging dev-python/ipython from binary package get:

$ ipython2.7
Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/ipython", line 4, in <module>
    from IPython import start_ipython
  File "/usr/lib64/python2.7/site-packages/IPython/__init__.py", line 48, in <module>
    from .core.application import Application
  File "/usr/lib64/python2.7/site-packages/IPython/core/application.py", line 24, in <module>
    from IPython.core import release, crashhandler
  File "/usr/lib64/python2.7/site-packages/IPython/core/crashhandler.py", line 28, in <module>
    from IPython.core import ultratb
  File "/usr/lib64/python2.7/site-packages/IPython/core/ultratb.py", line 121, in <module>
    from IPython.utils.terminal import get_terminal_size
  File "/usr/lib64/python2.7/site-packages/IPython/utils/terminal.py", line 27, in <module>
    import backports.shutil_get_terminal_size
ImportError: No module named shutil_get_terminal_size
Comment 1 Mike Gilbert gentoo-dev 2017-04-25 07:22:27 UTC
Looks like chutzpah meant to add it to RDEPEND, but added it to DEPEND instead.

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dbb770ac32710490c529dffe6fc43b6df931798f

commit dbb770ac32710490c529dffe6fc43b6df931798f
Author: Patrick McLean <chutzpah@gentoo.org>
Date:   Mon Jun 6 11:50:03 2016 -0700

    dev-python/ipython: Add missing RDEPEND for python2, apply patch to not use on python3
    
    Adds RDEPEND on dev-python/backports-shutil_get_terminal_size for python2, add patch from
    https://github.com/ipython/ipython/pull/9417 to not require on python3.
    
    Gentoo-Bug: 585038
    
    Package-Manager: portage-2.3.0_rc1

 ....2.0-only-use-backports-shutil-on-python2.patch |  40 ++++++
 dev-python/ipython/ipython-4.2.0-r1.ebuild         | 145 +++++++++++++++++++++
 2 files changed, 185 insertions(+)
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-03-27 16:33:18 UTC
Old version removed.  Please reopen if you can reproduce with the current version.