Skip to content

Commit c297b59

Browse files
setup.py: removed support for mupdf < 1.26.
1 parent 95b75e2 commit c297b59

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

setup.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -687,9 +687,8 @@ def add(flavour, from_, to_):
687687
# Add Windows .lib files.
688688
mupdf_build_dir2 = _windows_lib_directory(mupdf_local, build_type)
689689
add('d', f'{mupdf_build_dir2}/mupdfcpp{wp.cpu.windows_suffix}.lib', f'{to_dir_d}/lib/')
690-
if mupdf_version_tuple >= (1, 26):
691-
# MuPDF-1.25+ language bindings build also builds libmuthreads.
692-
add('d', f'{mupdf_build_dir2}/libmuthreads.lib', f'{to_dir_d}/lib/')
690+
# MuPDF-1.25+ language bindings build also builds libmuthreads.
691+
add('d', f'{mupdf_build_dir2}/libmuthreads.lib', f'{to_dir_d}/lib/')
693692
elif darwin:
694693
add('p', f'{mupdf_build_dir}/_mupdf.so', to_dir)
695694
add('b', f'{mupdf_build_dir}/libmupdfcpp.so', to_dir)
@@ -983,10 +982,8 @@ def build_mupdf_unix(
983982
# a system limit, not the actual limit of the current shell, and there
984983
# doesn't seem to be a way to find the current shell's limit.
985984
#
986-
build_prefix = f'PyMuPDF-'
987-
if mupdf_version_tuple >= (1, 26):
988-
# Avoid link command length problems seen on musllinux.
989-
build_prefix = ''
985+
# Avoid link command length problems seen on musllinux.
986+
build_prefix = ''
990987
if pyodide:
991988
build_prefix += 'pyodide-'
992989
else:

0 commit comments

Comments
 (0)