[arch-commits] Commit in python-setuptools/trunk (PKGBUILD)
Felix Yan
fyan at nymeria.archlinux.org
Thu Feb 6 02:54:51 UTC 2014
Date: Thursday, February 6, 2014 @ 03:54:51
Author: fyan
Revision: 205488
upgpkg: python-setuptools 2.1.1-1
Modified:
python-setuptools/trunk/PKGBUILD
----------+
PKGBUILD | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-02-06 02:40:04 UTC (rev 205487)
+++ PKGBUILD 2014-02-06 02:54:51 UTC (rev 205488)
@@ -4,7 +4,7 @@
pkgbase=python-setuptools
pkgname=('python-setuptools' 'python2-setuptools')
-pkgver=2.1
+pkgver=2.1.1
pkgrel=1
pkgdesc="Easily download, build, install, upgrade, and uninstall Python packages"
arch=('any')
@@ -11,8 +11,8 @@
license=('PSF')
url="http://pypi.python.org/pypi/setuptools"
makedepends=('python' 'python2')
-source=(http://pypi.python.org/packages/source/s/setuptools/setuptools-${pkgver}.tar.gz)
-md5sums=('2044725530450d0517393882dc4b7508')
+source=("http://pypi.python.org/packages/source/s/setuptools/setuptools-${pkgver}.tar.gz")
+md5sums=('e18af60a87982d6f7bf73176aed6bb49')
#check() {
# # Check python3 module
@@ -35,6 +35,9 @@
cd "${srcdir}"/setuptools-${pkgver}
sed -i -e "s|^#\!.*/usr/bin/python|#!/usr/bin/python3|" setuptools/tests/test_resources.py
sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python3|" setuptools/command/easy_install.py
+
+ # Workaround encoding issue in setup.py introduced on 2.1.1. Upstream issue: https://bitbucket.org/pypa/setuptools/issue/144
+ sed -i -e "s/open('\(README\|CHANGES\|CHANGES (links)\).txt')/open('\1.txt', encoding='utf8')/" setup.py
cd ../setuptools-${pkgver}-python2
sed -i -e "s|^#\!.*/usr/bin/python|#!/usr/bin/python2|" setuptools/tests/test_resources.py
More information about the arch-commits
mailing list