svn commit: r490965 - head/devel/py-yappi/files

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Tue Jan 22 18:10:13 UTC 2019


Author: sunpoet
Date: Tue Jan 22 18:10:12 2019
New Revision: 490965
URL: https://svnweb.freebsd.org/changeset/ports/490965

Log:
  Fix build with Python 3
  
  Obtained from:	https://github.com/sumerc/yappi/commit/778829f6f77928e4292e6a7dd4dfecf501f9a362

Added:
  head/devel/py-yappi/files/
  head/devel/py-yappi/files/patch-setup.py   (contents, props changed)

Added: head/devel/py-yappi/files/patch-setup.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-yappi/files/patch-setup.py	Tue Jan 22 18:10:12 2019	(r490965)
@@ -0,0 +1,21 @@
+Obtained from:  https://github.com/sumerc/yappi/commit/778829f6f77928e4292e6a7dd4dfecf501f9a362
+
+--- setup.py.orig	2019-01-18 09:41:09 UTC
++++ setup.py
+@@ -1,13 +1,14 @@
+ #!/usr/bin/env python
+ 
++import io
+ import os
+ import sys
+ from setuptools import setup
+ from distutils.core import Extension
+ from distutils.ccompiler import new_compiler
+ 
+-f = open('README.md')
+-long_description = f.read()
++with io.open('README.md', encoding='UTF-8') as f:
++    long_description = f.read()
+ 
+ HOMEPAGE = "https://github.com/sumerc/yappi"
+ NAME = "yappi"


More information about the svn-ports-head mailing list