From 02931c79f58675a3e919251df237cb6396dcb9c4274366e4b541a9c20b56b418 Mon Sep 17 00:00:00 2001 From: Jan Matejek Date: Mon, 16 Oct 2017 16:50:46 +0000 Subject: [PATCH] - 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 --- python-six.changes | 8 ++++++++ python-six.spec | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/python-six.changes b/python-six.changes index e282eee..9648159 100644 --- a/python-six.changes +++ b/python-six.changes @@ -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 diff --git a/python-six.spec b/python-six.spec index 2119b50..bfaf93e 100644 --- a/python-six.spec +++ b/python-six.spec @@ -59,6 +59,12 @@ what is provided. # %check # 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 %defattr(-,root,root) %doc LICENSE README.rst CHANGES