mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
removed extra/python-setuptools
This commit is contained in:
parent
f6c6f0a53f
commit
c3945c746d
1 changed files with 0 additions and 70 deletions
|
@ -1,70 +0,0 @@
|
|||
# $Id$
|
||||
# Maintainer: Angel Velasquez <angvp@archlinux.org>
|
||||
# Maintainer: Felix Yan <felixonmars@archlinux.org>
|
||||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - revert to non-git sources, there's something wrong with building from that
|
||||
|
||||
pkgbase=python-setuptools
|
||||
pkgname=('python-setuptools' 'python2-setuptools')
|
||||
pkgver=21.1.0
|
||||
pkgrel=1
|
||||
epoch=1
|
||||
pkgdesc="Easily download, build, install, upgrade, and uninstall Python packages"
|
||||
arch=('any')
|
||||
license=('PSF')
|
||||
url="http://pypi.python.org/pypi/setuptools"
|
||||
makedepends=('python-packaging' 'python2-packaging')
|
||||
checkdepends=('python-mock' 'python2-mock' 'python-pytest-runner' 'python2-pytest-runner' 'git')
|
||||
source=("https://pypi.io/packages/source/s/setuptools/setuptools-${pkgver}.tar.gz")
|
||||
sha512sums=('e4778f6b7474e9676e70199362c57c6c4a9b42e4e5b78e1e8b74822653503bd5fe0f5a709d535d232025ea7064dd09f51df931f64f525329fbc11d83fa613249')
|
||||
|
||||
prepare() {
|
||||
# We ship separated python{,2}-{packaging,six} packages.
|
||||
rm -rv setuptools-$pkgver/pkg_resources/_vendor
|
||||
|
||||
cp -a setuptools-${pkgver}{,-py2}
|
||||
|
||||
cd "$srcdir"/setuptools-$pkgver
|
||||
sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python3|" setuptools/command/easy_install.py
|
||||
|
||||
cd "$srcdir"/setuptools-$pkgver-py2
|
||||
sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python2|" setuptools/command/easy_install.py
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$srcdir"/setuptools-$pkgver
|
||||
python3 setup.py build
|
||||
|
||||
cd "$srcdir"/setuptools-$pkgver-py2
|
||||
python2 setup.py build
|
||||
}
|
||||
|
||||
check() {
|
||||
# Workaround UTF-8 tests by setting LC_CTYPE
|
||||
|
||||
cd "$srcdir"/setuptools-$pkgver
|
||||
LC_CTYPE=en_US.utf8 python3 setup.py ptr
|
||||
|
||||
cd "$srcdir"/setuptools-$pkgver-py2
|
||||
LC_CTYPE=en_US.utf8 python2 setup.py ptr
|
||||
}
|
||||
|
||||
package_python-setuptools() {
|
||||
depends=('python-packaging')
|
||||
provides=('python-distribute')
|
||||
replaces=('python-distribute')
|
||||
|
||||
cd "$srcdir"/setuptools-$pkgver
|
||||
python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 --skip-build
|
||||
}
|
||||
|
||||
package_python2-setuptools() {
|
||||
depends=('python2-packaging')
|
||||
provides=('python2-distribute' 'setuptools')
|
||||
replaces=('python2-distribute' 'setuptools')
|
||||
|
||||
cd "$srcdir"/setuptools-$pkgver-py2
|
||||
python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 --skip-build
|
||||
rm "$pkgdir"/usr/bin/easy_install
|
||||
}
|
Loading…
Reference in a new issue