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:
parent
bad56e0efe
commit
e7af332922
4 changed files with 37 additions and 4 deletions
|
|
@ -3,10 +3,17 @@
|
|||
|
||||
%py_build() %{expand:
|
||||
CFLAGS="%{optflags}" %{__python} %{py_setup} %{?py_setup_args} build --executable="%{__python2} %{py_shbang_opts}" %{?*}
|
||||
sleep 1
|
||||
}
|
||||
|
||||
%py_build_egg() %{expand:
|
||||
CFLAGS="%{optflags}" %{__python} %{py_setup} %{?py_setup_args} bdist_egg --executable="%{__python2} %{py_shbang_opts}" %{?*}
|
||||
CFLAGS="%{optflags}" %{__python} %{py_setup} %{?py_setup_args} bdist_egg %{?*}
|
||||
sleep 1
|
||||
}
|
||||
|
||||
%py_build_wheel() %{expand:
|
||||
CFLAGS="%{optflags}" %{__python} %{py_setup} %{?py_setup_args} bdist_wheel %{?*}
|
||||
sleep 1
|
||||
}
|
||||
|
||||
%py_install() %{expand:
|
||||
|
|
@ -18,6 +25,10 @@
|
|||
easy_install -m --prefix %{buildroot}%{_prefix} -Z dist/*-py%{python_version}.egg %{?*}
|
||||
}
|
||||
|
||||
%py_install_wheel() %{expand:
|
||||
pip install -I dist/%{1} --root %{buildroot} --strip-file-prefix %{buildroot}
|
||||
}
|
||||
|
||||
%python_provide() %{lua:
|
||||
function string.starts(String,Start)
|
||||
return string.sub(String,1,string.len(Start))==Start
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue