14
0

- in %pre, remove egg-info file if installed, because it's being

replaced by a directory (bsc#1035604)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tornado?expand=0&rev=58
This commit is contained in:
Jan Matejek
2017-06-23 17:42:14 +00:00
committed by Git OBS Bridge
parent bbe6fa4376
commit 94ee3e54fb
2 changed files with 12 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Jun 23 17:41:45 UTC 2017 - jmatejek@suse.com
- in %pre, remove egg-info file if installed, because it's being
replaced by a directory (bsc#1035604)
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jun 13 14:57:15 UTC 2017 - jmatejek@suse.com Tue Jun 13 14:57:15 UTC 2017 - jmatejek@suse.com

View File

@@ -77,6 +77,12 @@ find demos tornado -name "*.py" -exec sed -i "/#\!\/usr\/bin\/.*/d" {} \;
%patch0 -p1 %patch0 -p1
%patch1 -p1 %patch1 -p1
%pre
# remove egg-info _file_, being replaced by an egg-info directory
if [ -f %{python_sitearch}/tornado-%{version}-py%{python_version}.egg-info ]; then
rm %{python_sitearch}/tornado-%{version}-py%{python_version}.egg-info
fi
%build %build
%python_build %python_build