
After more than a year the switch to python3 packages, it is time to say them goodbye. So long, and thanks for all the fish.
38 lines
1.0 KiB
Bash
38 lines
1.0 KiB
Bash
# Template file for 'python-entrypoints'
|
|
pkgname=python-entrypoints
|
|
version=0.2.3
|
|
revision=2
|
|
noarch=yes
|
|
wrksrc="entrypoints-${version}"
|
|
build_style=python-module
|
|
pycompile_module="entrypoints.py"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-backports.configparser"
|
|
short_desc="Discover and load entry points from installed packages (Python2)"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="https://github.com/takluyver/entrypoints"
|
|
license="MIT"
|
|
distfiles="https://github.com/takluyver/entrypoints/archive/${version}.tar.gz"
|
|
checksum=a628825648fade6fba8dd94cc26e38340ed840fca3e9d5b7b3dbf755b27bbbdd
|
|
|
|
pre_build() {
|
|
sed -i "s|@VERSION@|${version}|" setup.py
|
|
}
|
|
post_install() {
|
|
for pyver in $python_versions; do
|
|
vinstall entrypoints.py 644 usr/lib/python${pyver}/site-packages
|
|
done
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-entrypoints_package() {
|
|
noarch=yes
|
|
pycompile_module="entrypoints.py"
|
|
depends="python3"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|