Clean the py3dir before using it.

This commit is contained in:
Toshio くらとみ 2010-02-01 23:17:55 +00:00
parent a3c351906b
commit 92db82920f

View File

@ -58,6 +58,7 @@ execute the software that requires pkg_resources.py.
find -name '*.txt' | xargs chmod -x find -name '*.txt' | xargs chmod -x
%if 0%{?with_python3} %if 0%{?with_python3}
rm -rf %{pyver}
cp -a . %{py3dir} cp -a . %{py3dir}
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|' find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
%endif # with_python3 %endif # with_python3