Skip to content

Commit

Permalink
pkg-utils python sitelib for SLES15
Browse files Browse the repository at this point in the history
Use python -Esc to set __python_sitelib.

Reviewed-by: Neal Gompa <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Shaun Tancheff <[email protected]>
Closes openzfs#8969
  • Loading branch information
stancheff authored and tonyhutter committed Sep 16, 2019
1 parent 6cbb9ed commit ceef0eb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rpm/generic/zfs.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
%define __python_cffi_pkg python%{__python_pkg_version}-cffi
%define __python_setuptools_pkg python%{__python_pkg_version}-setuptools
%endif
%define __python_sitelib %(%{__python} -Esc "from distutils.sysconfig import get_python_lib; print(get_python_lib())")

# By default python-pyzfs is enabled, with the exception of
# RHEL 6 which by default uses Python 2.6 which is too old.
Expand Down Expand Up @@ -474,8 +475,8 @@ systemctl --system daemon-reload >/dev/null || true
%doc contrib/pyzfs/README
%doc contrib/pyzfs/LICENSE
%defattr(-,root,root,-)
%{python_sitelib}/libzfs_core/*
%{python_sitelib}/pyzfs*
%{__python_sitelib}/libzfs_core/*
%{__python_sitelib}/pyzfs*
%endif

%if 0%{?_initramfs}
Expand Down

0 comments on commit ceef0eb

Please sign in to comment.