ports/devel/py-pystorm/files/patch-setup.py
Vinícius Zavam 0f74df002f devel/py-pystorm: add support to build py36 FLAVOR
Makefile
  - adopt this port;
  - msgpack is no longer a dependency for 3.1.4 (7d7dac6, and ece1f00);
  - check PYTHON_MAJOR_VERSION before adding dependencies.

  files/*
  - patch setup.py in order that readme() works with py36.

Approved by:	araujo (mentor)
Differential Revision:	https://reviews.freebsd.org/D18822
2019-01-15 16:55:41 +00:00

19 lines
426 B
Python

--- setup.py.orig 2019-01-11 16:47:10 UTC
+++ setup.py
@@ -16,6 +16,7 @@ limitations under the License.
"""
import re
import sys
+import codecs
from setuptools import setup, find_packages
@@ -27,7 +28,7 @@ def get_version():
def readme():
''' Returns README.rst contents as str '''
- with open('README.rst') as f:
+ with codecs.open('README.rst', 'r', encoding='utf8') as f:
return f.read()