Skip to content

Commit 37775de

Browse files
mjgjulian-smith-artifex-com
authored andcommitted
unbreak builds against system mupdf
Do not determine mupdf version from a local tree if we do not have one. We do not build mupdf in this case anyways.
1 parent 5dcc4e2 commit 37775de

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,9 @@ def build():
553553
# Download MuPDF.
554554
#
555555
mupdf_local, mupdf_location = get_mupdf()
556-
mupdf_version_tuple = get_mupdf_version(mupdf_local)
556+
if mupdf_local:
557+
mupdf_version_tuple = get_mupdf_version(mupdf_local)
558+
# else we cannot determine version this way and do not use it
557559

558560
build_type = os.environ.get( 'PYMUPDF_SETUP_MUPDF_BUILD_TYPE', 'release')
559561
assert build_type in ('debug', 'memento', 'release'), \

0 commit comments

Comments
 (0)