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 <ngompa@datto.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Shaun Tancheff <stancheff@cray.com>
Closes openzfs#8969
  • Loading branch information
stancheff authored and TulsiJain committed Jul 20, 2019
1 parent 33c210f commit b7575f9
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 b7575f9

Please sign in to comment.