On Wed, Mar 14, 2012 at 10:50 PM, Kyrill Detinov
On Wed, 14 Mar 2012 21:43:10 +0800 Marguerite Su wrote:
At first I try to fix it by running "python -m compileall *.pyc", but recently OBS import a new rule which will check if you have buildroot in your *.pyc file. I then "fix" a warning to an 10000 error. That's too bad.
You need to cd to buildroot first.
pushd %{buildroot}%{python_sitearch} %py_compile . popd
-- WBR Kyrill -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Hi, # Fix python-bytecode-inconsistent-mtime pushd %{buildroot}%{python_sitearch} %py_compile popd returns: + pushd /home/abuild/rpmbuild/BUILDROOT/hotot-0.9.7.45-1.x86_64/usr/lib64/python2.7/site-packages/ ~/rpmbuild/BUILDROOT/hotot-0.9.7.45-1.x86_64/usr/lib64/python2.7/site-packages ~/rpmbuild/BUILD/hotot-0.9.7.45 + find %1 -name '*.pyc' -exec rm -f '{}' ';' find: `%1': No such file or directory I have to make it work by: # Fix python-bytecode-inconsistent-mtime pushd %{buildroot}%{python_sitearch} rm -rf *.pyc python -m compileall *.py popd Thanks. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org