SHA256
1
0
forked from pool/python-six

- remove egg-info directory before installation if it exists,

because setuptools produce directory and six switched to distutils
  that produce a file
  (and because rpm can't handle that by itself)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-six?expand=0&rev=52
This commit is contained in:
Jan Matejek 2017-10-16 16:50:46 +00:00 committed by Git OBS Bridge
parent f0406e0784
commit 02931c79f5
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Mon Oct 16 16:49:50 UTC 2017 - jmatejek@suse.com
- remove egg-info directory before installation if it exists,
because setuptools produce directory and six switched to distutils
that produce a file
(and because rpm can't handle that by itself)
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Sep 28 07:47:18 UTC 2017 - tbechtold@suse.com Thu Sep 28 07:47:18 UTC 2017 - tbechtold@suse.com

View File

@ -59,6 +59,12 @@ what is provided.
# %check # %check
# python test_six.py # python test_six.py
%pre
# bsc#1057496 - egg-info changed from directory to file
if [ -d %{python_sitelib}/six-%{version}-py%{python_version}.egg-info ]; then
rm -r %{python_sitelib}/six-%{version}-%{python_version}.egg-info
fi
%files %python_files %files %python_files
%defattr(-,root,root) %defattr(-,root,root)
%doc LICENSE README.rst CHANGES %doc LICENSE README.rst CHANGES