diff options
author | jperkin <jperkin@pkgsrc.org> | 2017-10-31 09:22:21 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2017-10-31 09:22:21 +0000 |
commit | ae8970114a60ae982ef50b9fb6834f333005c8a5 (patch) | |
tree | 513b0e8cfb283dc47849bf38abee717d5f28e179 /time | |
parent | 526b18e49784e0ab7e743af3b5d383bd264a426c (diff) | |
download | pkgsrc-ae8970114a60ae982ef50b9fb6834f333005c8a5.tar.gz |
py-maya: Fix build with python27.
Diffstat (limited to 'time')
-rw-r--r-- | time/py-maya/distinfo | 3 | ||||
-rw-r--r-- | time/py-maya/patches/patch-setup.py | 23 |
2 files changed, 25 insertions, 1 deletions
diff --git a/time/py-maya/distinfo b/time/py-maya/distinfo index dc894ffa3ae..ec79c200444 100644 --- a/time/py-maya/distinfo +++ b/time/py-maya/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.2 2017/10/28 08:54:11 adam Exp $ +$NetBSD: distinfo,v 1.3 2017/10/31 09:22:21 jperkin Exp $ SHA1 (maya-0.3.3.tar.gz) = 057ef0cdd2f5ea4d11dd6eeb59873169da9ff2d3 RMD160 (maya-0.3.3.tar.gz) = 00c619fd835e660ea45ef405b7c93a4da3bb8c32 SHA512 (maya-0.3.3.tar.gz) = b9cd1836607f482aaa8e3d1a7f22f0848602386959d8e3e0b040dd0a7b6e0cb13885085f333a1f064ead1b81a554467b05cd6bd65b9d53a08ff6c7d884f45806 Size (maya-0.3.3.tar.gz) = 9781 bytes +SHA1 (patch-setup.py) = c942fcc6a361eda8029b4d08fc08962adc97526e diff --git a/time/py-maya/patches/patch-setup.py b/time/py-maya/patches/patch-setup.py new file mode 100644 index 00000000000..abb3156d7f3 --- /dev/null +++ b/time/py-maya/patches/patch-setup.py @@ -0,0 +1,23 @@ +$NetBSD: patch-setup.py,v 1.1 2017/10/31 09:22:22 jperkin Exp $ + +Fix python27. + +--- setup.py.orig 2017-07-27 20:19:27.000000000 +0000 ++++ setup.py +@@ -1,6 +1,7 @@ + #!/usr/bin/env python + # -*- coding: utf-8 -*- + ++import io + import os + import sys + import codecs +@@ -39,7 +40,7 @@ packages = [ + + # About dict to store version and package info + about = dict() +-with open(os.path.join(here, 'maya', '__version__.py'), 'r', encoding='utf-8') as f: ++with io.open(os.path.join(here, 'maya', '__version__.py'), mode='r', encoding='utf-8') as f: + exec(f.read(), about) + + setup( |