Skip to content

Commit

Permalink
more utf-8 in build
Browse files Browse the repository at this point in the history
  • Loading branch information
stonebig committed Jul 8, 2023
1 parent 055f845 commit 5c1fe38
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion winpython/data/packages.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3368,7 +3368,7 @@ description = Missing data visualization module for Python.
description = Intel OpenMP* Runtime Library
[mkl]
description = Intel® oneAPI Math Kernel Library
description = Intel® oneAPI Math Kernel Library
[whatthepatch]
description = A patch parsing and application library.
Expand Down
5 changes: 4 additions & 1 deletion winpython/wppm.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ def get_package_metadata(database, name, gotoWWW=False, update=False):
# machine which is not connected to the internet
# we store only normalized names now (PEP 503)
db = cp.ConfigParser()
db.read_file(open(str(Path(DATA_PATH) / database)))
try:
db.read_file(open(str(Path(DATA_PATH) / database)), encoding = 'utf-8')
except:
db.read_file(open(str(Path(DATA_PATH) / database)))
my_metadata = dict(
description="",
url="https://pypi.org/project/" + name,
Expand Down

0 comments on commit 5c1fe38

Please sign in to comment.