Skip to content

Commit 5a9d7f4

Browse files
committed
Fixed python3_sitelib for debbuild in OBS
1 parent c1e8bc3 commit 5a9d7f4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

package/python-kiwi_boxed_plugin-spec-template

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@
2929
%endif
3030

3131
%if %{undefined python3_sitelib}
32+
%if "%{_vendor}" == "debbuild"
3233
%global python3_sitelib %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
34+
%else
35+
%global python3_sitelib %(%{__python3} -c "import sysconfig; print(sysconfig.get_path('platlib'))")
36+
%endif
3337
%endif
3438

3539
%if %{undefined python3_version}

0 commit comments

Comments
 (0)