From b37ac4705bc7a6bcb203d7b1338d50ce7851dfc3 Mon Sep 17 00:00:00 2001 From: baizg1107 Date: Sat, 19 Mar 2022 16:44:55 +0800 Subject: [PATCH] use pip install to fix install error (cherry picked from commit dc0d2ad64600d0e77cf9265ac0f739388b9f8609) --- python-uwsgi.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/python-uwsgi.spec b/python-uwsgi.spec index e63b12a..a69a498 100644 --- a/python-uwsgi.spec +++ b/python-uwsgi.spec @@ -1,7 +1,7 @@ %global _empty_manifest_terminate_build 0 Name: python-uWSGI Version: 2.0.19.1 -Release: 3 +Release: 4 Summary: The uWSGI server License: GPL2 URL: https://uwsgi-docs.readthedocs.io/en/latest/ @@ -16,6 +16,7 @@ Provides: python-uWSGI BuildRequires: openssl-devel BuildRequires: python3-devel gcc BuildRequires: python3-setuptools +BuildRequires: python3-pip %description -n python3-uWSGI @@ -33,7 +34,7 @@ Help doc for the uWSGI server %py3_build %install -%py3_install +pip3 install --no-deps --root %{buildroot} . install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{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 %dir %{python3_sitelib}/* +%exclude %{python3_sitelib}/__pycache__/ %files help -f doclist.lst %{_pkgdocdir} %changelog +* Sat Mar 19 2022 baizhonggui - 2.0.19.1-4 +- The setup.py install is deprecated, use pip install instead to fix build error + * Tue Aug 31 2021 chenyanpanHW - 2.0.19.1-3 - DESC: uwsgi add BuildRequires openssl-devel to support --https -- Gitee