pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/time/py-maya py-maya: Fix build with python27.
details: https://anonhg.NetBSD.org/pkgsrc/rev/1bc594b10e4b
branches: trunk
changeset: 371010:1bc594b10e4b
user: jperkin <jperkin%pkgsrc.org@localhost>
date: Tue Oct 31 09:22:21 2017 +0000
description:
py-maya: Fix build with python27.
diffstat:
time/py-maya/distinfo | 3 ++-
time/py-maya/patches/patch-setup.py | 23 +++++++++++++++++++++++
2 files changed, 25 insertions(+), 1 deletions(-)
diffs (39 lines):
diff -r 4b99acd11d1f -r 1bc594b10e4b time/py-maya/distinfo
--- a/time/py-maya/distinfo Tue Oct 31 09:08:27 2017 +0000
+++ b/time/py-maya/distinfo Tue Oct 31 09:22:21 2017 +0000
@@ -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 -r 4b99acd11d1f -r 1bc594b10e4b time/py-maya/patches/patch-setup.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/time/py-maya/patches/patch-setup.py Tue Oct 31 09:22:21 2017 +0000
@@ -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(
Home |
Main Index |
Thread Index |
Old Index