[arch-commits] Commit in python-setuptools/repos/extra-any (PKGBUILD PKGBUILD)
Felix Yan
fyan at archlinux.org
Mon Sep 7 06:37:12 UTC 2015
Date: Monday, September 7, 2015 @ 08:37:12
Author: fyan
Revision: 245423
archrelease: copy trunk to extra-any
Added:
python-setuptools/repos/extra-any/PKGBUILD
(from rev 245422, python-setuptools/trunk/PKGBUILD)
Deleted:
python-setuptools/repos/extra-any/PKGBUILD
----------+
PKGBUILD | 142 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 71 insertions(+), 71 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2015-09-07 06:36:58 UTC (rev 245422)
+++ PKGBUILD 2015-09-07 06:37:12 UTC (rev 245423)
@@ -1,71 +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=18.2
-pkgrel=2
-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.python.org/packages/source/s/setuptools/setuptools-${pkgver}.tar.gz")
-sha512sums=('964449faecce8b039343ea4364e73e035b7a99ba425939c07ee86c2db75b3b34ddbfc5d03b468ee11266eed74208b2038b3785332ff90d74087ee1d45620912e')
-
-prepare() {
- # We ship separated python{,2}-packaging packages.
- rm -r setuptools-${pkgver}/pkg_resources/_vendor
-
- cp -a setuptools-${pkgver}{,-python2}
-
- 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}-python2
- sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python2|" setuptools/command/easy_install.py
-}
-
-build() {
- # Build python 3 module
- cd "${srcdir}"/setuptools-${pkgver}
- python3 setup.py build
-
- # Build python 2 module
- cd "${srcdir}"/setuptools-${pkgver}-python2
- python2 setup.py build
-}
-
-check() {
- # Workaround UTF-8 tests by setting LC_CTYPE
-
- # Check python3 module
- cd "${srcdir}"/setuptools-${pkgver}
- LC_CTYPE=en_US.utf8 python3 setup.py ptr
-
- # Check python2 module
- cd "${srcdir}"/setuptools-${pkgver}-python2
- 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}-python2"
- 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 245422, python-setuptools/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2015-09-07 06:37:12 UTC (rev 245423)
@@ -0,0 +1,71 @@
+# $Id$
+# Maintainer: Angel Velasquez <angvp at archlinux.org>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-setuptools
+pkgname=('python-setuptools' 'python2-setuptools')
+pkgver=18.3.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')
+checkdepends=('python-mock' 'python2-mock' 'python-pytest-runner' 'python2-pytest-runner' 'git')
+source=("https://pypi.python.org/packages/source/s/setuptools/setuptools-${pkgver}.tar.gz")
+sha512sums=('1a00386cd33267c1787b50a26cb008c975e720e0ef17d5d9c89c1d2f62a6b1d86e4731ab259667d9e2eb1d4c29bc96729221e672e1c3a6e18a181c8f35711f21')
+
+prepare() {
+ # We ship separated python{,2}-packaging packages.
+ rm -r setuptools-${pkgver}/pkg_resources/_vendor
+
+ cp -a setuptools-${pkgver}{,-python2}
+
+ 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}-python2
+ sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python2|" setuptools/command/easy_install.py
+}
+
+build() {
+ # Build python 3 module
+ cd "${srcdir}"/setuptools-${pkgver}
+ python3 setup.py build
+
+ # Build python 2 module
+ cd "${srcdir}"/setuptools-${pkgver}-python2
+ python2 setup.py build
+}
+
+check() {
+ # Workaround UTF-8 tests by setting LC_CTYPE
+
+ # Check python3 module
+ cd "${srcdir}"/setuptools-${pkgver}
+ LC_CTYPE=en_US.utf8 python3 setup.py ptr
+
+ # Check python2 module
+ cd "${srcdir}"/setuptools-${pkgver}-python2
+ 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}-python2"
+ 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