Add %py_build_egg and %py_install_egg macros
This commit is contained in:
parent
6ce524f21d
commit
f798c43354
3 changed files with 29 additions and 0 deletions
|
|
@ -5,10 +5,19 @@
|
|||
CFLAGS="%{optflags}" %{__python} %{py_setup} %{?py_setup_args} build --executable="%{__python2} %{py_shbang_opts}" %{?*}
|
||||
}
|
||||
|
||||
%py_build_egg() %{expand:
|
||||
CFLAGS="%{optflags}" %{__python} %{py_setup} %{?py_setup_args} bdist_egg --executable="%{__python2} %{py_shbang_opts}" %{?*}
|
||||
}
|
||||
|
||||
%py_install() %{expand:
|
||||
CFLAGS="%{optflags}" %{__python} %{py_setup} %{?py_setup_args} install -O1 --skip-build --root %{buildroot} %{?*}
|
||||
}
|
||||
|
||||
%py_install_egg() %{expand:
|
||||
mkdir -p %{buildroot}%{python_sitelib}
|
||||
easy_install -m --prefix %{buildroot}%{_prefix} -Z dist/*-py%{python_version}.egg %{?*}
|
||||
}
|
||||
|
||||
%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