mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-07 11:49:40 +00:00
Fix build with python3.x
PR: 216208 Submitted by: John W. O'Brien <john@saltant.com> maintainer timeout.
This commit is contained in:
parent
fc4fc033d7
commit
f6ebf6cceb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=434129
23
textproc/py-tabletext/files/patch-setup.py
Normal file
23
textproc/py-tabletext/files/patch-setup.py
Normal file
@ -0,0 +1,23 @@
|
||||
--- setup.py.orig 2014-08-14 18:05:14 UTC
|
||||
+++ setup.py
|
||||
@@ -1,13 +1,18 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
from setuptools import setup
|
||||
+import sys
|
||||
+
|
||||
+open_kwargs = {}
|
||||
+if sys.version_info.major >= 3:
|
||||
+ open_kwargs['encoding'] = 'utf8'
|
||||
|
||||
setup(name='tabletext',
|
||||
version='0.1',
|
||||
description='Python library and command line utility to pretty-print\
|
||||
tabular data',
|
||||
- long_description=open("README.rst").read() + "\n"
|
||||
- + open("CHANGELOG.rst").read(),
|
||||
+ long_description=open("README.rst", **open_kwargs).read() + "\n"
|
||||
+ + open("CHANGELOG.rst", **open_kwargs).read(),
|
||||
url='https://github.com/Thibauth/tabletext',
|
||||
author='Thibaut Horel',
|
||||
author_email='thibaut.horel+tabletext@gmail.com',
|
Loading…
x
Reference in New Issue
Block a user