Skip to content

Commit

Permalink
Merge pull request #10894 from smithfarm/wip-suse-build-pycache
Browse files Browse the repository at this point in the history
build/ops: force Python 3 packages to build in SUSE

Reviewed-by: Tim Serong <tserong@suse.com>
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
  • Loading branch information
smithfarm committed Aug 28, 2016
2 parents 2449adf + a497a53 commit 0775e71
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions ceph.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -763,6 +763,11 @@ mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/bootstrap-osd
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/bootstrap-mds
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/bootstrap-rgw

%if 0%{?suse_version}
# create __pycache__ directories and their contents
%py3_compile %{buildroot}%{python3_sitelib}
%endif

%clean
rm -rf %{buildroot}

Expand Down Expand Up @@ -1379,18 +1384,14 @@ ln -sf %{_libdir}/librbd.so.1 /usr/lib64/qemu/librbd.so.1
%{python3_sitearch}/cephfs.cpython*.so
%{python3_sitearch}/cephfs-*.egg-info
%{python3_sitelib}/ceph_volume_client.py
%if ! 0%{?suse_version}
%{python3_sitelib}/__pycache__/ceph_volume_client.cpython*.py*
%endif

%files -n python%{python3_pkgversion}-ceph-argparse
%defattr(-,root,root,-)
%{python3_sitelib}/ceph_argparse.py
%{python3_sitelib}/ceph_daemon.py
%if ! 0%{?suse_version}
%{python3_sitelib}/__pycache__/ceph_argparse.cpython*.py*
%{python3_sitelib}/ceph_daemon.py
%{python3_sitelib}/__pycache__/ceph_daemon.cpython*.py*
%endif

%files -n ceph-test
%defattr(-,root,root,-)
Expand Down

0 comments on commit 0775e71

Please sign in to comment.