Skip to content

Commit c774dd8

Browse files
julian-smith-artifex-comJorjMcKie
authored andcommitted
setup.py: default to visual studio 2022.
1 parent 166b007 commit c774dd8

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

setup.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -807,12 +807,11 @@ def build_mupdf_windows(
807807
devenv = os.environ.get('PYMUPDF_SETUP_DEVENV')
808808
if not devenv:
809809
try:
810-
# Prefer VS-2019 as that is what MuPDF's project/solution files are
811-
# written for.
812-
log(f'Looking for Visual Studio 2019.')
813-
vs = pipcl.wdev.WindowsVS(year=2019)
810+
# Prefer VS-2022 as that is what Github provide in windows-2022.
811+
log(f'Looking for Visual Studio 2022.')
812+
vs = pipcl.wdev.WindowsVS(year=2022)
814813
except Exception as e:
815-
log(f'Failed to find VS-2019:\n'
814+
log(f'Failed to find VS-2022:\n'
816815
f'{textwrap.indent(traceback.format_exc(), " ")}'
817816
)
818817
log(f'Looking for any Visual Studio.')

0 commit comments

Comments
 (0)