Skip to content

Commit bdd8e50

Browse files
authored
Merge pull request #1243 from stonebig/master
more utf-8 in build
2 parents bbb87a3 + 5c1fe38 commit bdd8e50

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

winpython/data/packages.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3368,7 +3368,7 @@ description = Missing data visualization module for Python.
33683368
description = Intel OpenMP* Runtime Library
33693369
33703370
[mkl]
3371-
description = Intel® oneAPI Math Kernel Library
3371+
description = Intel® oneAPI Math Kernel Library
33723372
33733373
[whatthepatch]
33743374
description = A patch parsing and application library.

winpython/wppm.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,10 @@ def get_package_metadata(database, name, gotoWWW=False, update=False):
7979
# machine which is not connected to the internet
8080
# we store only normalized names now (PEP 503)
8181
db = cp.ConfigParser()
82-
db.read_file(open(str(Path(DATA_PATH) / database)))
82+
try:
83+
db.read_file(open(str(Path(DATA_PATH) / database)), encoding = 'utf-8')
84+
except:
85+
db.read_file(open(str(Path(DATA_PATH) / database)))
8386
my_metadata = dict(
8487
description="",
8588
url="https://pypi.org/project/" + name,

0 commit comments

Comments
 (0)