[arch-commits] Commit in python-setuptools/repos/extra-any (PKGBUILD PKGBUILD)
Felix Yan
fyan at archlinux.org
Tue May 3 01:04:01 UTC 2016
Date: Tuesday, May 3, 2016 @ 03:04:01
Author: fyan
Revision: 266782
archrelease: copy trunk to extra-any
Added:
python-setuptools/repos/extra-any/PKGBUILD
(from rev 266781, python-setuptools/trunk/PKGBUILD)
Deleted:
python-setuptools/repos/extra-any/PKGBUILD
----------+
PKGBUILD | 144 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 72 insertions(+), 72 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2016-05-03 01:03:05 UTC (rev 266781)
+++ PKGBUILD 2016-05-03 01:04:01 UTC (rev 266782)
@@ -1,72 +0,0 @@
-# $Id$
-# Maintainer: Angel Velasquez <angvp at archlinux.org>
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-setuptools
-pkgname=('python-setuptools' 'python2-setuptools')
-pkgver=20.10.1
-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' 'git')
-checkdepends=('python-mock' 'python2-mock' 'python-pytest-runner' 'python2-pytest-runner' 'git')
-source=("git+https://github.com/pypa/setuptools.git#tag=v$pkgver")
-sha512sums=('SKIP')
-
-prepare() {
- # Remove vendored packages
- rm -rv setuptools/pkg_resources/_vendor
-
- # Remove post-release tag since we are using stable tags
- sed -e '/tag_build = .post/d' \
- -e '/tag_date = 1/d' \
- -i setuptools/setup.cfg
-
- cp -a setuptools{,-py2}
-
- cd "$srcdir"/setuptools
- sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python3|" setuptools/command/easy_install.py
-
- cd "$srcdir"/setuptools-py2
- sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python2|" setuptools/command/easy_install.py
-}
-
-build() {
- cd "$srcdir"/setuptools
- python setup.py build
-
- cd "$srcdir"/setuptools-py2
- python2 setup.py build
-}
-
-check() {
- # Workaround UTF-8 tests by setting LC_CTYPE
-
- cd "$srcdir"/setuptools
- LC_CTYPE=en_US.utf8 python setup.py ptr
-
- cd "$srcdir"/setuptools-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
- python 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-py2
- python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 --skip-build
- rm "$pkgdir"/usr/bin/easy_install
-}
Copied: python-setuptools/repos/extra-any/PKGBUILD (from rev 266781, python-setuptools/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2016-05-03 01:04:01 UTC (rev 266782)
@@ -0,0 +1,72 @@
+# $Id$
+# Maintainer: Angel Velasquez <angvp at archlinux.org>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-setuptools
+pkgname=('python-setuptools' 'python2-setuptools')
+pkgver=21.0.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' 'git')
+checkdepends=('python-mock' 'python2-mock' 'python-pytest-runner' 'python2-pytest-runner' 'git')
+source=("git+https://github.com/pypa/setuptools.git#tag=v$pkgver")
+sha512sums=('SKIP')
+
+prepare() {
+ # Remove vendored packages
+ rm -rv setuptools/pkg_resources/_vendor
+
+ # Remove post-release tag since we are using stable tags
+ sed -e '/tag_build = .post/d' \
+ -e '/tag_date = 1/d' \
+ -i setuptools/setup.cfg
+
+ cp -a setuptools{,-py2}
+
+ cd "$srcdir"/setuptools
+ sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python3|" setuptools/command/easy_install.py
+
+ cd "$srcdir"/setuptools-py2
+ sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python2|" setuptools/command/easy_install.py
+}
+
+build() {
+ cd "$srcdir"/setuptools
+ python setup.py build
+
+ cd "$srcdir"/setuptools-py2
+ python2 setup.py build
+}
+
+check() {
+ # Workaround UTF-8 tests by setting LC_CTYPE
+
+ cd "$srcdir"/setuptools
+ LC_CTYPE=en_US.utf8 python setup.py ptr
+
+ cd "$srcdir"/setuptools-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
+ python 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-py2
+ python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 --skip-build
+ rm "$pkgdir"/usr/bin/easy_install
+}
More information about the arch-commits
mailing list