2017-02-04 17:52:10 +11:00
|
|
|
# Description: A tool for installing and managing Python packages.
|
2017-02-04 17:57:26 +11:00
|
|
|
# URL: https://pypi.python.org/pypi/pip/
|
2017-02-04 17:52:10 +11:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2018-07-02 07:30:29 +10:00
|
|
|
# Depends on: python3-setuptools
|
2017-02-04 17:52:10 +11:00
|
|
|
|
|
|
|
name=python3-pip
|
2021-05-29 15:22:30 +10:00
|
|
|
version=21.1.2
|
2021-02-07 23:29:27 +11:00
|
|
|
release=1
|
2018-07-02 07:30:29 +10:00
|
|
|
source=(https://files.pythonhosted.org/packages/source/${name:8:1}/${name#*-}/${name#*-}-$version.tar.gz)
|
2017-02-04 17:52:10 +11:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd ${name#*-}-$version
|
|
|
|
|
2018-07-02 07:30:29 +10:00
|
|
|
/usr/bin/python3 setup.py build
|
2017-03-04 21:40:22 +11:00
|
|
|
|
2018-07-02 07:30:29 +10:00
|
|
|
/usr/bin/python3 setup.py install \
|
|
|
|
--prefix=/usr --root=$PKG --optimize=1
|
2017-02-04 17:52:10 +11:00
|
|
|
|
|
|
|
rm $PKG/usr/bin/pip
|
2021-01-28 18:30:38 +11:00
|
|
|
|
|
|
|
# again why does this happen?
|
|
|
|
find $PKG/usr/lib/python3.9/site-packages -type f -exec chmod o-w '{}' \+
|
2017-02-04 17:52:10 +11:00
|
|
|
}
|