Installing mpmath-0.17 in prefix on x86 (~x86-linux) gives the following: SyntaxError: ('invalid syntax', ('/storage/strogdon/gentoo/usr/lib/python2.7/site-packages/mpmath/libmp/exec_py3.py', 1, 12, 'exec_ = exec\n')) This is because the rm_unneeded() function in src_install() fails to remove unneeded files for a particular PYTHON_ABI. Reproducible: Always Steps to Reproduce: 1.emerge dev-python/mpmath in prefix 2. 3. Actual Results: SyntaxError: ('invalid syntax', ('/storage/strogdon/gentoo/usr/lib/python2.7/site-packages/mpmath/libmp/exec_py3.py', 1, 12, 'exec_ = exec\n')) Expected Results: There should be no SyntaxError If ${D} is replaced with ${ED) in local path="${D}$(python_get_sitedir)/${PN}/libmp/" in the rm_unneeded() function then the issue seems to be resolved. FWIW, with this correction mpmath installs and seems to behave properly on ~amd64-linux as well.
Thanks, commotted.