python-pip: add warning about pip needing setuptools

This commit is contained in:
Danny Rawlins 2017-03-04 21:40:02 +11:00
parent b78151d046
commit 56b05eca1b
3 changed files with 12 additions and 3 deletions

View File

@ -1,6 +1,6 @@
untrusted comment: verify with /etc/ports/opt.pub
RWSE3ohX2g5d/QeTykUsohsmCCSbug0RZcdmrZreiWsWMdJk6Fb0VSZV1vV2U/sNLUvA1/JxGGJyN5c0H9aWnK0GVAuDkC4Q/wE=
SHA256 (Pkgfile) = 6754d83b3d52df5ebd00bbcefea3f8b2c043277cc6e7d2b16e9f4ce35fdfbac6
RWSE3ohX2g5d/fgs7iWAW2+oiPP9yEwiopGFrk5NZw1zyd6jVyQQLMK1RgJOHOFmNHL3cdnKh1bcun5G0PqjbtjO3ovcUnAoDwU=
SHA256 (Pkgfile) = daf46700a4246e0aad3411a615aae541bbf75d3ec81c175e4400ebaea7722b34
SHA256 (.footprint) = 68e3f8b79ae638f90eca3ba9b35241ef5512609214da93803c3ade8e8efc76a3
SHA256 (pip-9.0.1.tar.gz) = 09f243e1a7b461f654c26a725fa373211bb7ff17a9300058b205c61658ca940d
SHA256 (get-pip.py) = 19dae841a150c86e2a09d475b5eb0602861f2a5b7761ec268049a662dbd2bd0c

View File

@ -5,13 +5,19 @@
name=python-pip
version=9.0.1
release=2
release=3
source=(https://files.pythonhosted.org/packages/source/${name:7:1}/${name#*-}/${name#*-}-$version.tar.gz
https://bootstrap.pypa.io/get-pip.py)
build() {
cd ${name#*-}-$version
if [ "$(pkginfo -i | egrep -c '^python-(setuptools|appdirs|pyparsing|six|packaging) ')" != 5 ]; then
printf "\e[031mWarning: $name now requires python-setuptools to function and can not be added,
as a dependency to $name as this will cause a cyclic dependency loop.
Please prt-get depinst python-setuptools to use $name.\033[0m\n"
fi
if [ "$(pkginfo -i | egrep -c '^python-(setuptools|appdirs|pyparsing|six|pip|packaging) ')" != 6 ]; then
install -d build
sed -i 's/"--upgrade"/"--upgrade", "--upgrade-strategy", "only-if-needed"/' $SRC/get-pip.py

3
python-pip/README Normal file
View File

@ -0,0 +1,3 @@
python-pip now requires python-setuptools to function and can not be added,
as a dependency to python-pip as this will cause a cyclic dependency loop.
Please prt-get depinst python-setuptools to use python-pip.