Skip to content

Commit a389051

Browse files
committed
setup.py: support running in minimal locales
This is moot on most systems but a minimal docker container with LC_ALL=C would previously fail: LC_ALL=C LANG=C python3.6 setup.py --long-description Closes LibraryOfCongress/concordia#69
1 parent a6ef709 commit a389051

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@
88
import subprocess
99
import sys
1010
from setuptools import setup
11+
from codecs import open
1112

1213
if sys.version_info < (2, 7):
1314
print("Python 2.7 or higher is required")
1415
sys.exit(1)
1516

1617
description = 'Create and validate BagIt packages'
1718

18-
with open('README.rst') as readme:
19+
with open("README.rst", encoding="utf-8") as readme:
1920
long_description = readme.read()
2021

2122
tests_require = ['mock', 'coverage']

0 commit comments

Comments
 (0)