!136 fix that pip install failed

From: @zhuofeng6 
Reviewed-by: @gaoruoshu 
Signed-off-by: @gaoruoshu
This commit is contained in:
openeuler-ci-bot 2023-09-08 08:07:35 +00:00 committed by Gitee
commit 2975e81335
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 7 additions and 10 deletions

View File

@ -1,5 +0,0 @@
[global]
index-url = https://repo.huaweicloud.com/repository/pypi/simple
[install]
trusted-host = https://repo.huaweicloud.com

View File

@ -6,13 +6,12 @@ pip is the package installer for Python. You can use pip to install packages fro
%global bashcompdir %(b=$(pkg-config --variable=completionsdir bash-completion 2>/dev/null); echo ${b:-%{_sysconfdir}/bash_completion.d}) %global bashcompdir %(b=$(pkg-config --variable=completionsdir bash-completion 2>/dev/null); echo ${b:-%{_sysconfdir}/bash_completion.d})
Name: python-%{srcname} Name: python-%{srcname}
Version: 23.1.2 Version: 23.1.2
Release: 2 Release: 3
Summary: A tool for installing and managing Python packages Summary: A tool for installing and managing Python packages
License: MIT and Python and ASL 2.0 and BSD and ISC and LGPLv2 and MPLv2.0 and (ASL 2.0 or BSD) License: MIT and Python and ASL 2.0 and BSD and ISC and LGPLv2 and MPLv2.0 and (ASL 2.0 or BSD)
URL: http://www.pip-installer.org URL: http://www.pip-installer.org
Source0: %{pypi_source} Source0: %{pypi_source}
Source1: pip.huaweicloud.conf Source1: pip.loongarch.conf
Source2: pip.loongarch.conf
BuildArch: noarch BuildArch: noarch
Patch1: remove-existing-dist-only-if-path-conflicts.patch Patch1: remove-existing-dist-only-if-path-conflicts.patch
Patch6000: dummy-certifi.patch Patch6000: dummy-certifi.patch
@ -107,14 +106,14 @@ install -p dist/%{python_wheelname} -t %{buildroot}%{python_wheeldir}
# Set default pip mirror via pip.conf # Set default pip mirror via pip.conf
%ifarch loongarch64 %ifarch loongarch64
install -D -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/pip.conf
%else
install -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pip.conf install -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pip.conf
%endif %endif
%files -n python%{python3_pkgversion}-%{srcname} %files -n python%{python3_pkgversion}-%{srcname}
%license LICENSE.txt %license LICENSE.txt
%ifarch loongarch64
%config(noreplace) %{_sysconfdir}/pip.conf %config(noreplace) %{_sysconfdir}/pip.conf
%endif
%{_bindir}/pip %{_bindir}/pip
%{_bindir}/pip3 %{_bindir}/pip3
%{_bindir}/pip-3* %{_bindir}/pip-3*
@ -133,6 +132,9 @@ install -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pip.conf
%{python_wheeldir}/%{python_wheelname} %{python_wheeldir}/%{python_wheelname}
%changelog %changelog
* Fri Sep 08 2023 zhuofeng <zhuofeng2@huawei.com> - 23.1.2-3
- fix that pip install failed
* Sun Jul 30 2023 Funda Wang <fundawang@yeah.net> - 23.1.2-2 * Sun Jul 30 2023 Funda Wang <fundawang@yeah.net> - 23.1.2-2
- Use local mirrors for pip - Use local mirrors for pip