python3-pip: add warning about pip needing setuptools

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

View File

@ -1,6 +1,6 @@
untrusted comment: verify with /etc/ports/opt.pub
RWSE3ohX2g5d/TjHT7Lho5s9SKe+hBJa32kzLtP3vR8zj5RO6SF8YLznxAgC2vEsM4brM8oQhBgT4nkKyBT6ZkgCfVjNlNi3OgE=
SHA256 (Pkgfile) = f36d74a82c3323ae8918e97bdcb06be1f16cd4bb0f8551a53bd9a0826ef43654
RWSE3ohX2g5d/VE3L5naMLxMZnLpP2p0hb9fKPYo7ScProC8C8bwuNf4JKiWYm0bl/do6VFs8c+xrFsLLzxue/WqxlfoDPjXeQM=
SHA256 (Pkgfile) = a40d57a3df78c8bc26238ce0022ace86732e5144c5821b962cec7c92b0f151d6
SHA256 (.footprint) = f6c5047fa149b94ce713a03564ebc527315cb8e861a39eb93d2734fe84e58883
SHA256 (pip-9.0.1.tar.gz) = 09f243e1a7b461f654c26a725fa373211bb7ff17a9300058b205c61658ca940d
SHA256 (get-pip.py) = 19dae841a150c86e2a09d475b5eb0602861f2a5b7761ec268049a662dbd2bd0c

View File

@ -5,13 +5,19 @@
name=python3-pip
version=9.0.1
release=1
release=2
source=(https://files.pythonhosted.org/packages/source/${name:8:1}/${name#*-}/${name#*-}-$version.tar.gz
https://bootstrap.pypa.io/get-pip.py)
build() {
cd ${name#*-}-$version
if [ "$(pkginfo -i | egrep -c '^python3-(setuptools|appdirs|pyparsing|six|packaging) ')" != 5 ]; then
printf "\e[031mWarning: $name now requires python3-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 python3-setuptools to use $name.\033[0m\n"
fi
if [ "$(pkginfo -i | egrep -c '^python3-(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
python3-pip/README Normal file
View File

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