Skip to content

Commit 14fefdb

Browse files
committed
Fixed python3_sitelib for debbuild in OBS
1 parent 5e9f2f3 commit 14fefdb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

package/python-kiwi-spec-template

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

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

3539
%if %{undefined python3_version}
3640
%global python3_version %(%{__python3} -Esc "import sys; sys.stdout.write('{0.major}.{0.minor}'.format(sys.version_info))")

0 commit comments

Comments
 (0)