fix the compileall path
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm:svn/subversion?expand=0&rev=63
This commit is contained in:
parent
e0014a3f9e
commit
ce91597f58
@ -548,8 +548,8 @@ python_ctypes_target=
|
||||
%__make DESTDIR="$RPM_BUILD_ROOT" install install-swig-pl install-swig-py $python_ctypes_target $ruby_target $with_jdk
|
||||
%if %with_python_ctypes
|
||||
# remove csvn .pyc files and recompile them because they contain the $RPM_BUILD_ROOT path:
|
||||
find "%{buildroot}%{py_sitedir}/csvn/" -name "*.pyc" | xargs %__rm -f
|
||||
%__python "%{py_libdir}/compileall.py" -f -d "%{py_sitedir}/csvn" "%{buildroot}/%{py_sitedir}/csvn"
|
||||
find "%{buildroot}%{py_prefix}/lib/python%{py_ver}/site-packages/csvn/" -name "*.pyc" | xargs %__rm -f
|
||||
%__python "%{py_libdir}/compileall.py" -f -d "%{py_prefix}/lib/python%{py_ver}/site-packages/csvn" "%{buildroot}/%{py_prefix}/lib/python%{py_ver}/csvn"
|
||||
%endif # with_python_ctypes
|
||||
#
|
||||
# double check that the essential repository access schemes have been compiled in
|
||||
|
Loading…
x
Reference in New Issue
Block a user