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/
|
2023-07-21 23:36:09 +02:00
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
2018-07-02 07:30:29 +10:00
|
|
|
# Depends on: python3-setuptools
|
2017-02-04 17:52:10 +11:00
|
|
|
|
|
|
|
name=python3-pip
|
2024-02-03 13:28:32 +01:00
|
|
|
version=24.0
|
2023-12-18 10:22:42 +01:00
|
|
|
release=1
|
2023-11-28 11:49:27 +01:00
|
|
|
source=(https://files.pythonhosted.org/packages/source/${name:8:1}/${name#*-}/${name#*-}-$version.tar.gz
|
|
|
|
EXTERNALLY-MANAGED.in)
|
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
|
|
|
|
2023-11-28 11:49:27 +01:00
|
|
|
_pyver=$(/usr/bin/python3 -c 'import sys; print("%s.%s" % sys.version_info[:2])')
|
2021-01-28 18:30:38 +11:00
|
|
|
# again why does this happen?
|
2023-11-28 11:49:27 +01:00
|
|
|
find $PKG/usr/lib/python${_pyver}/site-packages -type f \
|
|
|
|
-exec chmod o-w '{}' \+
|
|
|
|
|
|
|
|
install -m 644 $SRC/EXTERNALLY-MANAGED.in $PKG/usr/lib/python${_pyver}/EXTERNALLY-MANAGED
|
2017-02-04 17:52:10 +11:00
|
|
|
}
|