Minor fixes for new build deps

This commit is contained in:
Kovid Goyal 2020-09-02 10:49:45 +05:30
parent 2fffec0ece
commit c31ead51dc
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ def import_site_packages(srcdir, dest):
if ext in ('py', 'so'):
shutil.copy2(f, dest)
elif ext == 'pth' and x != 'setuptools.pth':
for line in open(f, 'rb').read().splitlines():
for line in open(f, 'rb').read().decode('utf-8').splitlines():
src = os.path.abspath(j(srcdir, line))
if os.path.exists(src) and os.path.isdir(src):
import_site_packages(src, dest)

View File

@ -449,7 +449,7 @@ class Freeze(object):
@flush
def add_poppler(self):
print('\nAdding poppler')
for x in ('libopenjp2.7.dylib', 'libpoppler.87.dylib',):
for x in ('libopenjp2.7.dylib', 'libpoppler.102.dylib',):
self.install_dylib(join(PREFIX, 'lib', x))
for x in ('pdftohtml', 'pdftoppm', 'pdfinfo'):
self.install_dylib(