Add missing sleeps to other build macros

- Fix build_egg macros
- Add %py_build_wheel and %py_install_wheel macros
This commit is contained in:
Orion Poplawski 2016-11-16 16:28:31 -07:00
commit e7af332922
4 changed files with 37 additions and 4 deletions

View file

@ -12,7 +12,12 @@
}
%py2_build_egg() %{expand:
CFLAGS="%{optflags}" %{__python2} %{py_setup} %{?py_setup_args} bdist_egg --executable="%{__python2} %{py2_shbang_opts}" %{?*}
CFLAGS="%{optflags}" %{__python2} %{py_setup} %{?py_setup_args} bdist_egg %{?*}
sleep 1
}
%py2_build_wheel() %{expand:
CFLAGS="%{optflags}" %{__python2} %{py_setup} %{?py_setup_args} bdist_wheel %{?*}
sleep 1
}
@ -24,3 +29,7 @@
mkdir -p %{buildroot}%{python2_sitelib}
easy_install-%{python2_version} -m --prefix %{buildroot}%{_prefix} -Z dist/*-py%{python2_version}.egg %{?*}
}
%py2_install_wheel() %{expand:
pip%{python2_version} install -I dist/%{1} --root %{buildroot} --strip-file-prefix %{buildroot}
}