diff options
-rw-r--r-- | python/python-dateutil/python-dateutil-2.1-open-utf-8.patch | 20 | ||||
-rw-r--r-- | python/python-dateutil/python-dateutil.SlackBuild | 5 | ||||
-rw-r--r-- | python/python-dateutil/python-dateutil.info | 6 |
3 files changed, 4 insertions, 27 deletions
diff --git a/python/python-dateutil/python-dateutil-2.1-open-utf-8.patch b/python/python-dateutil/python-dateutil-2.1-open-utf-8.patch deleted file mode 100644 index 7b1784378f5d6..0000000000000 --- a/python/python-dateutil/python-dateutil-2.1-open-utf-8.patch +++ /dev/null @@ -1,20 +0,0 @@ -=== modified file 'setup.py' ---- setup.py 2012-04-29 13:32:22 +0000 -+++ setup.py 2012-04-29 13:34:16 +0000 -@@ -1,5 +1,6 @@ - #!/usr/bin/python - from os.path import isfile, join -+import codecs - import glob - import os - import re -@@ -13,7 +14,7 @@ - - TOPDIR = os.path.dirname(__file__) or "." - VERSION = re.search('__version__ = "([^"]+)"', -- open(TOPDIR + "/dateutil/__init__.py").read()).group(1) -+ codecs.open(TOPDIR + "/dateutil/__init__.py", encoding='utf-8').read()).group(1) - - - setup(name="python-dateutil", - diff --git a/python/python-dateutil/python-dateutil.SlackBuild b/python/python-dateutil/python-dateutil.SlackBuild index b0e6e3e7c68fa..5441d6174ad25 100644 --- a/python/python-dateutil/python-dateutil.SlackBuild +++ b/python/python-dateutil/python-dateutil.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=python-dateutil -VERSION=${VERSION:-2.1} +VERSION=${VERSION:-2.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -55,9 +55,6 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -# Fix UnicodeDecodeError in setup.py. From upstream. -patch -p0 < $CWD/python-dateutil-2.1-open-utf-8.patch - python setup.py install --root=$PKG find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ diff --git a/python/python-dateutil/python-dateutil.info b/python/python-dateutil/python-dateutil.info index 0c4f0c0b6ec39..e44ef4c580ac9 100644 --- a/python/python-dateutil/python-dateutil.info +++ b/python/python-dateutil/python-dateutil.info @@ -1,8 +1,8 @@ PRGNAM="python-dateutil" -VERSION="2.1" +VERSION="2.2" HOMEPAGE="http://labix.org/python-dateutil" -DOWNLOAD="http://pypi.python.org/packages/source/p/python-dateutil/python-dateutil-2.1.tar.gz" -MD5SUM="1534bb15cf311f07afaa3aacba1c028b" +DOWNLOAD="http://pypi.python.org/packages/source/p/python-dateutil/python-dateutil-2.2.tar.gz" +MD5SUM="c1f654d0ff7e33999380a8ba9783fd5c" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="pysetuptools six" |