File:
[cvs.NetBSD.org] /
pkgsrc /
www /
py-pylint-django /
patches /
Attic /
patch-setup.py
Revision
1.5:
download - view:
text,
annotated -
select for diffs
Thu Aug 27 12:25:00 2020 UTC (4 years, 2 months ago) by
joerg
Branches:
MAIN
CVS tags:
pkgsrc-2021Q4-base,
pkgsrc-2021Q4,
pkgsrc-2021Q3-base,
pkgsrc-2021Q3,
pkgsrc-2021Q2-base,
pkgsrc-2021Q2,
pkgsrc-2021Q1-base,
pkgsrc-2021Q1,
pkgsrc-2020Q4-base,
pkgsrc-2020Q4,
pkgsrc-2020Q3-base,
pkgsrc-2020Q3,
HEAD
Fix Python 3.6 build
$NetBSD: patch-setup.py,v 1.5 2020/08/27 12:25:00 joerg Exp $
--- setup.py.orig 2020-08-26 11:51:51.672175441 +0000
+++ setup.py
@@ -3,8 +3,9 @@
Setup module for Pylint plugin for Django.
"""
from setuptools import setup, find_packages
+import sys
-LONG_DESCRIPTION = open('README.rst').read() + "\n" + open('CHANGELOG.rst').read()
+LONG_DESCRIPTION = open('README.rst', **({'encoding': 'UTF-8'} if sys.version_info.major>=3 else {})).read() + "\n" + open('CHANGELOG.rst', **({'encoding': 'UTF-8'} if sys.version_info.major>=3 else {})).read()
setup(
name='pylint-django',
CVSweb <webmaster@jp.NetBSD.org>