diff --git a/dev-python/pip/pip-19.3.1.recipe b/dev-python/pip/pip-22.3.1.recipe similarity index 73% rename from dev-python/pip/pip-19.3.1.recipe rename to dev-python/pip/pip-22.3.1.recipe index f51cf6f16..08b1c8e1b 100644 --- a/dev-python/pip/pip-19.3.1.recipe +++ b/dev-python/pip/pip-22.3.1.recipe @@ -1,11 +1,11 @@ SUMMARY="The PyPA recommended tool for installing Python packages" DESCRIPTION="Install Python packages, replacement for easy_install" HOMEPAGE="https://pypi.python.org/pypi/pip" -COPYRIGHT="2006-2019 Python Packaging Authority" +COPYRIGHT="2006-2022 Python Packaging Authority" LICENSE="Python" -REVISION="4" +REVISION="1" SOURCE_URI="https://pypi.io/packages/source/p/pip/pip-$portVersion.tar.gz" -CHECKSUM_SHA256="21207d76c1031e517668898a6b46a9fb1501c7a4710ef5dfd6a40ad9e6757ea7" +CHECKSUM_SHA256="65fd48317359f3af8e593943e6ae1506b66325085ea64b706a998c6e83eeaf38" ARCHITECTURES="any" @@ -20,8 +20,8 @@ BUILD_REQUIRES=" haiku_devel " -PYTHON_PACKAGES=(python python3 python38 python39 python310) -PYTHON_VERSIONS=(2.7 3.7 3.8 3.9 3.10) +PYTHON_PACKAGES=(python3 python38 python39 python310) +PYTHON_VERSIONS=(3.7 3.8 3.9 3.10) for i in "${!PYTHON_PACKAGES[@]}"; do pythonPackage=${PYTHON_PACKAGES[i]} pythonVersion=${PYTHON_VERSIONS[$i]} @@ -40,11 +40,10 @@ BUILD_PREREQUIRES="$BUILD_PREREQUIRES cmd:python$pythonVersion" done -PROVIDES_python="$PROVIDES_python +# Custom PROVIDES for the default Python version (3.9 at the moment): +PROVIDES_python39=$PROVIDES_python39" cmd:pip - " -REPLACES_python=" - python_pip + cmd:pip3 " INSTALL() @@ -61,10 +60,11 @@ INSTALL() $python setup.py build install \ --root=/ --prefix=$prefix - if [ $pythonPackage != python ]; then + # Do not remove pip/pip3 for the default python version (3.9 at the moment). + if [ $pythonPackage != python39 ]; then rm $binDir/{pip,pip3} fi - rm $binDir/pip${pythonVersion%%.*} || true + packageEntries $pythonPackage \ $prefix/lib/python* \ $binDir