27 lines
957 B
Bash
27 lines
957 B
Bash
# Template file for 'python-setuptools'
|
|
pkgname=python-setuptools
|
|
# https://github.com/pypa/setuptools/issues/1458
|
|
# python2 support for setuptools ended at 44.0.0
|
|
version=44.0.0
|
|
revision=2
|
|
wrksrc="setuptools-${version}"
|
|
build_style=python2-module
|
|
hostmakedepends="python-devel"
|
|
depends="python"
|
|
short_desc="Easily build and distribute Python2 packages"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
license="MIT"
|
|
homepage="https://github.com/pypa/setuptools"
|
|
distfiles="${PYPI_SITE}/s/setuptools/setuptools-${version}.zip"
|
|
checksum=e5baf7723e5bb8382fc146e33032b241efc63314211a3a120aaa55d62d2bb008
|
|
alternatives="setuptools:easy_install:/usr/bin/easy_install2"
|
|
provides="python-distribute-${version}_1"
|
|
replaces="python-distribute>=0"
|
|
|
|
export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0
|
|
export SETUPTOOLS_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT=1
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
mv ${PKGDESTDIR}/usr/bin/easy_install ${PKGDESTDIR}/usr/bin/easy_install2
|
|
}
|