diff --git a/python-pandas.spec b/python-pandas.spec index 14c5666..e453a00 100644 --- a/python-pandas.spec +++ b/python-pandas.spec @@ -29,7 +29,9 @@ BuildRequires: gcc-c++ BuildRequires: python2-devel BuildRequires: python2-setuptools BuildRequires: python2-matplotlib +%if %{without python3} BuildRequires: python2-Cython +%endif Requires: python2-pytz Requires: python2-dateutil Requires: python2-numpy @@ -88,13 +90,16 @@ Python 3 version. %prep %autosetup -n %{srcname}-%{version} -%build -%py2_build +rm $(grep -rl '/\* Generated by Cython') +%build %if 0%{?with_python3} %py3_build %endif # with_python3 +%py2_build + + %install %py2_install