[arch-commits] Commit in python-setuptools/repos/staging-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sun Dec 25 05:23:39 UTC 2016
Date: Sunday, December 25, 2016 @ 05:23:38
Author: felixonmars
Revision: 284718
archrelease: copy trunk to staging-any
Added:
python-setuptools/repos/staging-any/PKGBUILD
(from rev 284717, python-setuptools/trunk/PKGBUILD)
Deleted:
python-setuptools/repos/staging-any/PKGBUILD
----------+
PKGBUILD | 164 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 82 insertions(+), 82 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2016-12-25 05:23:16 UTC (rev 284717)
+++ PKGBUILD 2016-12-25 05:23:38 UTC (rev 284718)
@@ -1,82 +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=32.2.0
-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' 'python-mock' 'python2-mock' 'python-appdirs'
- 'python2-appdirs' 'git')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-pytest-flake8'
- 'python2-pytest-flake8' 'python-pip' '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
-
- export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0
-}
-
-build() {
- cd "$srcdir"/setuptools
- python bootstrap.py
- python setup.py build
-
- cd "$srcdir"/setuptools-py2
- python2 bootstrap.py
- python2 setup.py build
-}
-
-check() {
- # Workaround UTF-8 tests by setting LC_CTYPE
- export LC_CTYPE=en_US.UTF-8
-
- # https://github.com/pypa/setuptools/pull/810
- export PYTHONDONTWRITEBYTECODE=1
-
- cd "$srcdir"/setuptools
- python setup.py test
-
- cd "$srcdir"/setuptools-py2
- python2 setup.py test
-}
-
-package_python-setuptools() {
- depends=('python-packaging' 'python-appdirs')
- 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' 'python2-appdirs')
- provides=('python2-distribute')
- replaces=('python2-distribute')
-
- 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/staging-any/PKGBUILD (from rev 284717, python-setuptools/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2016-12-25 05:23:38 UTC (rev 284718)
@@ -0,0 +1,82 @@
+# $Id$
+# Maintainer: Angel Velasquez <angvp at archlinux.org>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-setuptools
+pkgname=('python-setuptools' 'python2-setuptools')
+pkgver=32.3.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' 'python-mock' 'python2-mock' 'python-appdirs'
+ 'python2-appdirs' 'git')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-pytest-flake8'
+ 'python2-pytest-flake8' 'python-pip' '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
+
+ export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0
+}
+
+build() {
+ cd "$srcdir"/setuptools
+ python bootstrap.py
+ python setup.py build
+
+ cd "$srcdir"/setuptools-py2
+ python2 bootstrap.py
+ python2 setup.py build
+}
+
+check() {
+ # Workaround UTF-8 tests by setting LC_CTYPE
+ export LC_CTYPE=en_US.UTF-8
+
+ # https://github.com/pypa/setuptools/pull/810
+ export PYTHONDONTWRITEBYTECODE=1
+
+ cd "$srcdir"/setuptools
+ python setup.py test
+
+ cd "$srcdir"/setuptools-py2
+ python2 setup.py test
+}
+
+package_python-setuptools() {
+ depends=('python-packaging' 'python-appdirs')
+ 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' 'python2-appdirs')
+ provides=('python2-distribute')
+ replaces=('python2-distribute')
+
+ 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