File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ def main(argv):
188
188
implementations = next (args )
189
189
elif arg in ('--mupdf' , '-m' ):
190
190
mupdf = next (args )
191
- if not mupdf .startswith ('git:' ):
191
+ if not mupdf .startswith ('git:' ) and mupdf != '-' :
192
192
assert os .path .isdir (mupdf ), f'Not a directory: { mupdf = } .'
193
193
mupdf = os .path .abspath (mupdf )
194
194
os .environ ['PYMUPDF_SETUP_MUPDF_BUILD' ] = mupdf
Original file line number Diff line number Diff line change 80
80
For internal testing.
81
81
82
82
PYMUPDF_SETUP_MUPDF_BUILD
83
- If set, overrides location of MuPDF when building PyMuPDF:
83
+ If unset or '-', use internal hard-coded default MuPDF location.
84
+ Otherwise overrides location of MuPDF when building PyMuPDF:
84
85
Empty string:
85
86
Build PyMuPDF with the system MuPDF.
86
87
A string starting with 'git:':
@@ -526,6 +527,9 @@ def get_mupdf(path=None, sha=None):
526
527
PYMUPDF_SETUP_MUPDF_BUILD; see docs at start of this file for details.
527
528
'''
528
529
m = os .environ .get ('PYMUPDF_SETUP_MUPDF_BUILD' )
530
+ if m == '-' :
531
+ # This allows easy specification in Github actions.
532
+ m = None
529
533
if m is None and os .path .isfile (mupdf_tgz ):
530
534
# This makes us use tgz inside sdist.
531
535
log (f'Using local tgz: { mupdf_tgz = } ' )
You can’t perform that action at this time.
0 commit comments