Skip to content

Commit

Permalink
[build] Actually indicate this requires packaging
Browse files Browse the repository at this point in the history
This is a followup for 5690401

I hereby declare that you can do whatever you want with this commit:

Signed-off-by: Miro Hrončok <[email protected]>
  • Loading branch information
hroncok committed Oct 27, 2023
1 parent 135daad commit 4590bad
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ coverage>=4.0.3
Sphinx>=1.3.5
pexpect>=4.0.0
pyyaml
setuptools
packaging

4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
setup(
name='sos',
version=VERSION,
install_requires=['pexpect', 'pyyaml'],
# to avoid a packaging dependency on older RHELs
# we only declare it on recent Python versions
install_requires=['pexpect', 'pyyaml', 'packaging;python_version>="3.11"'],
description=(
'A set of tools to gather troubleshooting information from a system'
),
Expand Down
4 changes: 4 additions & 0 deletions sos.spec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ BuildRequires: python3-devel
BuildRequires: python3-setuptools
Requires: python3-rpm
Requires: python3-pexpect
%if 0%{?rhel} && 0%{?rhel} < 10
Requires: python3-setuptools
%else
Requires: python3-packaging
%endif
Recommends: python3-magic
# Mandatory just for uploading to a SFTP server:
Recommends: python3-requests
Expand Down

0 comments on commit 4590bad

Please sign in to comment.