Skip to content

Commit

Permalink
Exclude Python 3-only module from Python 2 filelist
Browse files Browse the repository at this point in the history
  • Loading branch information
benmwebb committed Apr 28, 2024
1 parent 7bfed8c commit 5dd67dc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/rpm/IMP.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ cp /usr/%{_lib}/libCGAL.so.10 ${RPM_BUILD_ROOT}%{_libdir}/IMP/
%endif

# Don't include Python 3-only modules in Python 2 package
%if 0%{?with_python2}
%if 0%{?with_python3} == 0
rm -rf ${RPM_BUILD_ROOT}%{_libdir}/python${py2_ver}/site-packages/IMP/nestor
rm -rf ${RPM_BUILD_ROOT}%{_prefix}/share/doc/%{name}-%{version}/examples/nestor
%endif
Expand Down Expand Up @@ -517,11 +517,13 @@ find ${RPM_BUILD_ROOT}%{_prefix}/share/IMP/tools -name '*.py' -exec perl -pi -e
%{_prefix}/share/IMP/build_info/IMP_mpi.pck
%{_prefix}/share/IMP/build_info/IMP.spb
%{_prefix}/share/IMP/build_info/IMP_spb.pck
%if 0%{?with_python3}
%{_prefix}/share/IMP/build_info/IMP.nestor
%{_prefix}/share/IMP/build_info/IMP_nestor.pck
%{_libdir}/%{default_python}*/site-packages/IMP/nestor
%endif
%{_libdir}/%{default_python}*/site-packages/IMP/mpi
%{_libdir}/%{default_python}*/site-packages/IMP/spb
%{_libdir}/%{default_python}*/site-packages/IMP/nestor
%{_libdir}/%{default_python}*/site-packages/mpich/_IMP_mpi.so
%{_libdir}/%{default_python}*/site-packages/mpich/_IMP_spb.so
%{_libdir}/mpich/lib/libimp_mpi.so.*
Expand Down

0 comments on commit 5dd67dc

Please sign in to comment.