Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 367461 - dev-python/mpmath-0.17: ebuild doesn't remove unneeded exec_py[2,3].py files for a particular PYTHON_ABI in prefix
Summary: dev-python/mpmath-0.17: ebuild doesn't remove unneeded exec_py[2,3].py files ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Andrey Grozin
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-16 00:42 UTC by Steven Trogdon
Modified: 2011-05-18 21:05 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 Steven Trogdon 2011-05-16 00:42:11 UTC
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.
Comment 1 Andrey Grozin gentoo-dev 2011-05-18 21:05:04 UTC
Thanks, commotted.