diff --git a/pip.aliyun.conf b/pip.aliyun.conf index 04a56982f9319420881516557150f94854ceb139..b643bf997649286096dd33983305289a5ebdc936 100644 --- a/pip.aliyun.conf +++ b/pip.aliyun.conf @@ -1,5 +1,8 @@ [global] index-url = https://mirrors.aliyun.com/pypi/simple/ +extra-index-url = https://pypi.openanolis.cn/prod/simple/ [install] -trusted-host=mirrors.aliyun.com +trusted-host = + mirrors.aliyun.com + pypi.openanolis.cn diff --git a/pip.loongarch.conf b/pip.loongarch.conf index fd77def5ba76999eaf35282ded8010919afa7038..f35c58efb0591faf146c241dd17c5ef7bf39a592 100644 --- a/pip.loongarch.conf +++ b/pip.loongarch.conf @@ -1,8 +1,11 @@ [global] timeout = 60 index-url = https://pypi.loongnix.cn/loongson/pypi -extra-index-url = https://pypi.org/simple +extra-index-url = + https://pypi.openanolis.cn/prod/simple + https://pypi.org/simple [install] trusted-host = pypi.loongnix.cn + pypi.openanolis.cn pypi.org diff --git a/python-pip.spec b/python-pip.spec index cd47c88e7ac3960a3a1b69c8fdfca4a557fcdd3c..122f0208109658e7eb6208d307fe1d5b8028c6f4 100644 --- a/python-pip.spec +++ b/python-pip.spec @@ -1,4 +1,6 @@ -%define anolis_release 1 +%define anolis_release 2 + +%define debug_package %{nil} %bcond_with tests %bcond_with doc @@ -17,7 +19,6 @@ Source1: pip.aliyun.conf Source2: pip.loongarch.conf Source10: 0005-pip-allow-different-versions.patch -BuildArch: noarch BuildRequires: pkgconfig(python3) %if %{with tests} BuildRequires: git-core mercurial subversion breezy @@ -94,6 +95,7 @@ Packages" or "Pip Installs Python". %package -n %{python_wheel_pkg_prefix}-%{pypi_name}-wheel Summary: The pip wheel +Buildarch: noarch Requires: ca-certificates %{bundled 3} @@ -109,6 +111,7 @@ Summary: A documentation for a tool for installing and managing Python pa BuildRequires: python3-sphinx python3-sphinx-inline-tabs python3-sphinx-copybutton BuildRequires: python3-myst-parser +Buildarch: noarch Requires: python3-%{pypi_name} = %{EVR} %description -n python3-%{pypi_name}-doc @@ -231,6 +234,10 @@ pytest_k='not completion' %endif %changelog +* Mon Dec 04 2023 Funda Wang - 23.3.1-2 +- Add Anolis PyPI repository +- Make python3-pip as arch-dependent, as it contains arch-dependent configurations + * Thu Oct 26 2023 Funda Wang - 23.3.1-1 - New verison 23.3.1