diff --git a/pip.huaweicloud.conf b/pip.huaweicloud.conf deleted file mode 100644 index f2b1c8f809d657d1b4ff375006c40ef78b13a5de..0000000000000000000000000000000000000000 --- a/pip.huaweicloud.conf +++ /dev/null @@ -1,5 +0,0 @@ -[global] -index-url = https://repo.huaweicloud.com/repository/pypi/simple - -[install] -trusted-host = https://repo.huaweicloud.com diff --git a/python-pip.spec b/python-pip.spec index 9ae6b8b2bbd23c47eda97bcf85f1138a4fa63246..78bd315787faf66329c06cadfa6bb83800406f3f 100644 --- a/python-pip.spec +++ b/python-pip.spec @@ -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}) Name: python-%{srcname} Version: 21.3.1 -Release: 3 +Release: 4 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) URL: http://www.pip-installer.org Source0: %{pypi_source} -Source1: pip.huaweicloud.conf -Source2: pip.loongarch.conf +Source1: pip.loongarch.conf BuildArch: noarch Patch1: allow-stripping-given-prefix-from-wheel-RECORD-files.patch Patch2: emit-a-warning-when-running-with-root-privileges.patch @@ -101,14 +100,14 @@ install -p dist/%{python_wheelname} -t %{buildroot}%{python_wheeldir} # Set default pip mirror via pip.conf %ifarch loongarch64 -install -D -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/pip.conf -%else install -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pip.conf %endif %files -n python%{python3_pkgversion}-%{srcname} %license LICENSE.txt +%ifarch loongarch64 %config(noreplace) %{_sysconfdir}/pip.conf +%endif %{_bindir}/pip %{_bindir}/pip3 %{_bindir}/pip-3* @@ -127,6 +126,9 @@ install -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pip.conf %{python_wheeldir}/%{python_wheelname} %changelog +* Fri Sep 08 2023 zhuofeng - 21.3.1-4 +- fix that pip install failed + * Mon Jul 31 2023 Funda Wang - 21.3.1-3 - Use local mirrors for pip