Skip to content

Commit d3287f9

Browse files
ngie-eignjulian-smith-artifex-com
authored andcommitted
setup.py: use swig -version instead of swig --version
`swig --version` doesn't seem to be supported in all versions of swig, e.g., FreeBSD and some flavors of Linux. Use `swig -version` instead when querying the CLI tool version. Closes: #4756 Signed-off-by: Enji Cooper <[email protected]>
1 parent 23de718 commit d3287f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ def add(flavour, from_, to_):
726726
log(f'Failed to get git information: {e}')
727727
sha, comment, diff, branch = (None, None, None, None)
728728
swig = PYMUPDF_SETUP_SWIG or 'swig'
729-
swig_version_text = run(f'{swig} --version', capture=1)
729+
swig_version_text = run(f'{swig} -version', capture=1)
730730
m = re.search('\nSWIG Version ([^\n]+)', swig_version_text)
731731
log(f'{swig_version_text=}')
732732
assert m, f'Unrecognised {swig_version_text=}'

0 commit comments

Comments
 (0)