On 2012-01-05 16:34:21 (-0500), Robert Schweikert <rjschwei@suse.com> wrote:
On 01/05/2012 02:23 PM, Pascal Bleser wrote:
On 2012-01-05 13:17:11 (-0500), Robert Schweikert<rjschwei@suse.com> wrote: [...]
RPMLINT report: =============== (none): E: badness 10000 exceeds threshold 1000, aborting. euca2ools.noarch: E: file-contains-buildroot (Badness: 10000) /usr/lib/python2.7/site-packages/euca2ools/__init__.pyc Your file contains traces of $RPM_BUILD_ROOT. [...] After your %__python ./setup.py build
Do this: find "%{buildroot}%{python_sitelib}/" -name '*.pyc' \ -exec %__rm {} \; %__python -c 'import compileall; compileall.compile_dir("%{buildroot}%{python_sitelib}/", ddir="%{python_sitelib}/", force=1)'
It sure did, no more build error :)
Just for the record, what that does: * it uses a standard Python library class named "compileall" * that conveniently recursively compiles all the .py files it finds under the directory that is specified as first parameter (%{buildroot}%{python_sitelib/ in our case) into Python bytecode files (.pyc) * as opposed to what the upstream setup.py did, it takes the "ddir" parameter which specifies "where the file is actually supposed to be", kinda, well, you get the idea ;)
Thanks for the help.
You're most welcome. cheers -- -o) Pascal Bleser /\\ http://opensuse.org -- we haz green _\_v http://fosdem.org -- we haz conf