Skip to content

Commit

Permalink
Merge pull request #1146 from OSInside/fix-pyxattr-requirement
Browse files Browse the repository at this point in the history
Fix the pyxattr dependency to allow kiwi to function
  • Loading branch information
schaefi committed Jul 22, 2019
2 parents 58b5bab + 629f5b4 commit 554fbb8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion package/python-kiwi-spec-template
Expand Up @@ -92,7 +92,7 @@ Requires: python%{python3_pkgversion}-docopt
Requires: python%{python3_pkgversion}-lxml
Requires: python%{python3_pkgversion}-requests
Requires: python%{python3_pkgversion}-setuptools
%if 0%{?suse_version}
%if (0%{?suse_version} && 0%{?suse_version} < 1550)
Requires: python%{python3_pkgversion}-xattr
%else
Requires: python%{python3_pkgversion}-pyxattr
Expand Down Expand Up @@ -355,6 +355,11 @@ Provides manual pages to describe the kiwi commands
# as an independent script
sed -e "s|#!/usr/bin/env python||" -i kiwi/xml_parse.py

%if 0%{?suse_version} && 0%{?suse_version} < 1550
# For older SUSE distributions, use the other xattr Python module
sed -e "s|pyxattr|xattr|" -i setup.py
%endif

%build
# Build Python 3 version
python3 setup.py build --cflags="${RPM_OPT_FLAGS}"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -186,7 +186,7 @@ def run(self):
'install_requires': [
'docopt>=0.6.2',
'lxml',
'xattr',
'pyxattr',
'requests',
'PyYAML'
],
Expand Down

0 comments on commit 554fbb8

Please sign in to comment.