mirror of
https://github.com/openwrt/packages.git
synced 2025-12-16 07:31:20 +00:00
python-parsley: add python3 variant
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
This commit is contained in:
19
lang/python/python-parsley/patches/001-py3-read-utf8.patch
Normal file
19
lang/python/python-parsley/patches/001-py3-read-utf8.patch
Normal file
@@ -0,0 +1,19 @@
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -4,6 +4,7 @@
|
||||
Setup script for the Parsley distribution.
|
||||
"""
|
||||
|
||||
+import io
|
||||
from distutils.core import setup
|
||||
setup(
|
||||
name="Parsley",
|
||||
@@ -13,7 +14,7 @@ setup(
|
||||
author="Allen Short",
|
||||
author_email="washort42@gmail.com",
|
||||
license="MIT License",
|
||||
- long_description=open("README").read(),
|
||||
+ long_description=io.open("README", encoding="utf-8").read(),
|
||||
packages=["ometa", "terml", "ometa._generated", "terml._generated",
|
||||
"ometa.test", "terml.test"],
|
||||
py_modules=["parsley"]
|
||||
Reference in New Issue
Block a user