curtsies ships a requirement.txt in /usr/lib64/python3.6/site-packages/curtsies-0.3.0-py3.6.egg-info/requires.txt where it specifies "typing" as a dependency. The typing module is included in the standart library for python >=3.5. bpython or rather curties refuses to start up because the typing module is not found (cause it's part of the standard library now): Traceback (most recent call last): File "/usr/lib/python-exec/python3.6/bpdb", line 6, in <module> from pkg_resources import load_entry_point File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 3098, in <module> @_call_aside File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 3082, in _call_aside f(*args, **kwargs) File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 3111, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 573, in _build_master ws.require(__requires__) File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 891, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 777, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'typing' distribution was not found and is required by curtsies Solution: patch out the line containing "typing" from the requires.txt
Upstream fix: https://github.com/bpython/curtsies/commit/217b4f83e954837f8adc4c549c1f2f9f2bb272a7 Ebuild needs dependency on virtual/python-typing[${PYTHON_USEDEP}].
commit f369e978f691eab9f4ca842a414449b1211ce857 Author: Andrey Grozin <grozin@gentoo.org> AuthorDate: Tue Feb 26 15:23:06 2019 Commit: Andrey Grozin <grozin@gentoo.org> CommitDate: Tue Feb 26 15:23:45 2019 dev-python/curtsies: depend on dev-python/typing correctly Bug: https://bugs.gentoo.org/show_bug.cgi?id=678742 Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Andrey Grozin <grozin@gentoo.org>