use pip install to fix install error

(cherry picked from commit dc0d2ad64600d0e77cf9265ac0f739388b9f8609)
This commit is contained in:
baizg1107 2022-03-19 16:44:55 +08:00 committed by openeuler-sync-bot
parent 74af62ee13
commit 675f505384

View File

@ -1,7 +1,7 @@
%global _empty_manifest_terminate_build 0 %global _empty_manifest_terminate_build 0
Name: python-uWSGI Name: python-uWSGI
Version: 2.0.19.1 Version: 2.0.19.1
Release: 3 Release: 4
Summary: The uWSGI server Summary: The uWSGI server
License: GPL2 License: GPL2
URL: https://uwsgi-docs.readthedocs.io/en/latest/ URL: https://uwsgi-docs.readthedocs.io/en/latest/
@ -16,6 +16,7 @@ Provides: python-uWSGI
BuildRequires: openssl-devel BuildRequires: openssl-devel
BuildRequires: python3-devel gcc BuildRequires: python3-devel gcc
BuildRequires: python3-setuptools BuildRequires: python3-setuptools
BuildRequires: python3-pip
%description -n python3-uWSGI %description -n python3-uWSGI
@ -33,7 +34,7 @@ Help doc for the uWSGI server
%py3_build %py3_build
%install %install
%py3_install pip3 install --no-deps --root %{buildroot} .
install -d -m755 %{buildroot}/%{_pkgdocdir} install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
@ -62,11 +63,15 @@ mv %{buildroot}/doclist.lst .
%files -n python3-uWSGI -f filelist.lst %files -n python3-uWSGI -f filelist.lst
%dir %{python3_sitelib}/* %dir %{python3_sitelib}/*
%exclude %{python3_sitelib}/__pycache__/
%files help -f doclist.lst %files help -f doclist.lst
%{_pkgdocdir} %{_pkgdocdir}
%changelog %changelog
* Sat Mar 19 2022 baizhonggui <baizhonggui@huawei.com> - 2.0.19.1-4
- The setup.py install is deprecated, use pip install instead to fix build error
* Tue Aug 31 2021 chenyanpanHW <chenyanpan@huawei.com> - 2.0.19.1-3 * Tue Aug 31 2021 chenyanpanHW <chenyanpan@huawei.com> - 2.0.19.1-3
- DESC: uwsgi add BuildRequires openssl-devel to support --https - DESC: uwsgi add BuildRequires openssl-devel to support --https