Skip to content

Commit

Permalink
Drop Python 2 RPM subpackage from Fedora
Browse files Browse the repository at this point in the history
Fedora no longer provides many of the Python 2
packages we use (such as numpy) so the Python 2
RPM isn't very useful, and adds to the complexity
of building the package.
  • Loading branch information
benmwebb committed Jan 16, 2024
1 parent 7796aa5 commit 2b1f821
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tools/rpm/IMP-copr.spec.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# On modern Fedora/RHEL, use Python 3 by default (and provide an IMP-python2
# subpackage; on RHEL 9 or later, use Python 3 only).
# subpackage for RHEL 8 or older Fedora).
# On older systems, the IMP package uses Python 2 only.
%if 0%{?fedora} > 12 || 0%{?rhel} >= 8
%define with_python3 1
Expand All @@ -13,7 +13,7 @@
%define default_python python2
%endif

%if 0%{?rhel} >= 9
%if 0%{?rhel} >= 9 || 0%{?fedora} > 37
%define with_python2 0
%else
%define with_python2 1
Expand Down
4 changes: 2 additions & 2 deletions tools/rpm/IMP.spec.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# On modern Fedora/RHEL, use Python 3 by default (and provide an IMP-python2
# subpackage; on RHEL 9 or later, use Python 3 only).
# subpackage for RHEL 8 or older Fedora).
# On older systems, the IMP package uses Python 2 only.
%if 0%{?fedora} > 12 || 0%{?rhel} >= 8
%define with_python3 1
Expand All @@ -11,7 +11,7 @@
%define default_python python2
%endif

%if 0%{?rhel} >= 9
%if 0%{?rhel} >= 9 || 0%{?fedora} > 37
%define with_python2 0
%else
%define with_python2 1
Expand Down

0 comments on commit 2b1f821

Please sign in to comment.