Add %py_build_egg and %py_install_egg macros

This commit is contained in:
Orion Poplawski 2016-11-15 16:12:23 -07:00
commit f798c43354
3 changed files with 29 additions and 0 deletions

View file

@ -11,6 +11,16 @@
sleep 1
}
%py2_build_egg() %{expand:
CFLAGS="%{optflags}" %{__python2} %{py_setup} %{?py_setup_args} bdist_egg --executable="%{__python2} %{py2_shbang_opts}" %{?*}
sleep 1
}
%py2_install() %{expand:
CFLAGS="%{optflags}" %{__python2} %{py_setup} %{?py_setup_args} install -O1 --skip-build --root %{buildroot} %{?*}
}
%py2_install_egg() %{expand:
mkdir -p %{buildroot}%{python2_sitelib}
easy_install-%{python2_version} -m --prefix %{buildroot}%{_prefix} -Z dist/*-py%{python2_version}.egg %{?*}
}