| Name |
python-pip |
| Description |
The PyPA recommended tool for installing Python packages |
| Version |
26.0.1-1 |
| Package Base |
python-pip |
| Homepage |
https://pip.pypa.io/ |
| Maintainers |
['Christian Heusel <gromit@archlinux.org>', 'David Runge <dvzrv@archlinux.org>'] |
| Contributors |
['Dan McGee <dan@archlinux.org>', 'Eli Schwartz <eschwartz@archlinux.org>', 'Felix Yan <felixonmars@archlinux.org>', 'Sebastien Binet <binet@lblbox>'] |
| Distro-repo |
https://gitlab.archlinux.org/archlinux/packaging/packages/python-pip |
| Sources |
['https://github.com/pypa/pip/archive/26.0.1/pip-26.0.1.tar.gz'] |
| Dependencies |
['python', 'python-attrs', 'python-cryptography', 'python-filelock', 'python-wheel'] |
| Optional-Dependencies |
[] |
| Build-Dependencies |
['python-build', 'python-installer', 'python-myst-parser', 'python-flit-core', 'python-sphinx', 'python-sphinx-copybutton', 'python-sphinx-inline-tabs', 'python-sphinx-issues'] |
| Provides |
[] |
| Builddate |
05-02-2026 21:32:09 |
| Architecture |
any |
| Distro-Version |
|
| Licenses |
['MIT'] |
| Hash |
edfdf6d497654645ba1672feca2493599000b16c6248a5dc37461de84d412600 |
# Maintainer: David Runge <dvzrv@archlinux.org>
# Maintainer: Christian Heusel <gromit@archlinux.org>
# Contributor: Felix Yan <felixonmars@archlinux.org>
# Contributor: Dan McGee <dan@archlinux.org>
# Contributor: Eli Schwartz <eschwartz@archlinux.org>
# Contributor: Sebastien Binet <binet@lblbox>
_name=pip
pkgname=python-pip
pkgver=26.0.1
pkgrel=1
pkgdesc="The PyPA recommended tool for installing Python packages"
url="https://pip.pypa.io/"
arch=(any)
license=(MIT)
depends=(
python
python-attrs # for vendored rich
python-cryptography # for vendored requests and urllib3
python-filelock # for vendored python-cachecontrol
python-wheel # for internal misc utils
)
makedepends=(
python-build
python-installer
python-myst-parser
python-flit-core
python-sphinx
python-sphinx-copybutton
python-sphinx-inline-tabs
python-sphinx-issues
)
checkdepends=(
git
python-freezegun
python-proxy.py
python-pytest
python-pytest-rerunfailures
python-pytest-xdist
python-scripttest
python-tomli-w
python-virtualenv
python-werkzeug
subversion
)
source=(https://github.com/pypa/$_name/archive/$pkgver/$_name-$pkgver.tar.gz
)
sha512sums=('3786df7522ea65bc20fb9885ce5c2ddc60200a536a1f754a8d7dc278115c73258863e4c51ac7e9a60dda0b70263730dc194f70e1e8f8d00178a8b3c724333bf0')
b2sums=('96a2fab2de472b3cde570f3bcbd6bc5e5c48ef2f0808ca9b2b6c0f57a611f723cd0f5d592b6b5f553fb57a6909459f57b4130f2451cd95c3b18678e02215e0c9')
prepare() {
# pip is moving towards a separate sphinx config without towncrier https://github.com/pypa/pip/issues/12881
# since python-sphinxcontrib-towncrier is broken, we remove its use (as it is not needed for manpages)
sed '/towncrier/d' -i $_name-$pkgver/docs/html/conf.py
# patch out need for pytest-subket
sed -i '/--allow-hosts=localhost/d' "$_name-$pkgver/pyproject.toml"
sed -i '/--allow-unix-socket/d' "$_name-$pkgver/pyproject.toml"
sed -i '/--disable-socket/d' "$_name-$pkgver/pyproject.toml"
}
build() {
cd $_name-$pkgver
python -m build --wheel --no-isolation
cd docs/
PYTHONPATH="$srcdir/$_name-$pkgver/src/" python pip_sphinxext.py
PYTHONPATH="$srcdir/$_name-$pkgver/src/" sphinx-build -b man -d build/doctrees/man man build/man -c html
}
check() {
local _site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
local _deselected=(
# deselect tests that would require python-pip in checkdepends (may or may not work due to devendored dependencies when python-pip is updated)
--deselect tests/unit/test_direct_url_helpers.py::test_from_link_vcs_with_source_dir_obtains_commit_id
--deselect tests/unit/test_direct_url_helpers.py::test_from_link_vcs_without_source_dir
--deselect tests/unit/test_wheel_builder.py::test_should_cache_git_sha
# disable downloading the internet
--deselect tests/unit/test_req.py::TestRequirementSet::test_download_info_web_archive
--deselect tests/unit/test_req.py::TestRequirementSet::test_download_info_vcs
--deselect tests/unit/test_network_session.py::TestPipSession::test_proxy
# fails due to EXTERNALLY-MANAGED / PEP 668 behaviour in v25
--deselect tests/unit/test_self_check_outdated.py::test_pip_self_version_check_calls_underlying_implementation
)
cd $_name-$pkgver
# install to temporary location
python -m installer --destdir=test_dir dist/*.whl
export PYTHONPATH="test_dir/$_site_packages:$PYTHONPATH"
pytest -vv -m unit "${_deselected[@]}" tests/
}
package() {
local _site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
cd $_name-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
install -vDm 644 LICENSE.txt -t "$pkgdir/usr/share/licenses/$pkgname/"
install -vDm 644 docs/build/man/*.1 -t "$pkgdir/usr/share/man/man1/"
install -vDm 644 {NEWS,README}.rst -t "$pkgdir/usr/share/doc/$pkgname/"
PYTHONPATH="$pkgdir/$_site_packages" "$pkgdir"/usr/bin/pip completion --bash | install -vDm 644 /dev/stdin "$pkgdir"/usr/share/bash-completion/completions/pip
PYTHONPATH="$pkgdir/$_site_packages" "$pkgdir"/usr/bin/pip completion --zsh | tail -n+3 | install -vDm 644 /dev/stdin "$pkgdir"/usr/share/zsh/site-functions/_pip
PYTHONPATH="$pkgdir/$_site_packages" "$pkgdir"/usr/bin/pip completion --fish | install -vDm 644 /dev/stdin "$pkgdir"/usr/share/fish/vendor_completions.d/pip.fish
}