Skip to content

Provide wheel for Windows ARM64 #4498

@khmyznikov

Description

@khmyznikov

What is the current behavior?

Unable to install the package from pip.

What is the desired behavior?

To have native wheel for WoA. GitHub Actions now supports win-arm64 for free.

How would this improve pymupdf?

Due to the library's popularity, a native version for the growing number of Windows on ARM (WoA) devices offers a better user experience.

Install log
PS X:\GitHub\Windows-DevRel\Tools\ML-tests> pip install PyMuPDF
Collecting PyMuPDF
  Downloading pymupdf-1.25.5.tar.gz (69.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 69.8/69.8 MB 9.0 MB/s eta 0:00:00
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [223 lines of output]
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py: ### Starting.
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py: __name__: 'setup'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py: platform.platform(): 'Windows-11-10.0.26120-SP0'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py: platform.python_version(): '3.12.9'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py: sys.executable: 'X:\\GitHub\\Windows-DevRel\\Tools\\ML-tests\\.temp\\env_orange_pyarrow\\Scripts\\python.exe'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py: CPU bits: 64 sys.maxsize=9223372036854775807
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py: __file__: 'C:\\temp\\pip-install-d5le3d7e\\pymupdf_8f9ebfa5b7f242689561100b497f60f2\\setup.py'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py: os.getcwd(): 'C:\\temp\\pip-install-d5le3d7e\\pymupdf_8f9ebfa5b7f242689561100b497f60f2'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py: getconf ARG_MAX: (1, "'getconf' is not recognized as an internal or external command,\noperable program or batch file.\n")
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py: sys.argv (3):
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     0: 'X:\\GitHub\\Windows-DevRel\\Tools\\ML-tests\\.temp\\env_orange_pyarrow\\Lib\\site-packages\\pip\\_vendor\\pyproject_hooks\\_in_process\\_in_process.py'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     1: 'prepare_metadata_for_build_wheel'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     2: 'C:\\Temp\\tmpa3teayhs'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py: os.environ (59):
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     ALLUSERSPROFILE: 'C:\\ProgramData'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     APPDATA: 'C:\\Users\\gkhmyznikov\\AppData\\Roaming'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     ARMPL_DIR: 'C:\\Program Files\\Arm Performance Libraries\\armpl_24.10\\'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     CHOCOLATEYINSTALL: 'C:\\ProgramData\\chocolatey'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     CHOCOLATEYLASTPATHUPDATE: '133872015542342855'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     COMMONPROGRAMFILES: 'C:\\Program Files\\Common Files'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     COMMONPROGRAMFILES(ARM): 'C:\\Program Files (Arm)\\Common Files'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     COMMONPROGRAMFILES(X86): 'C:\\Program Files (x86)\\Common Files'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     COMMONPROGRAMW6432: 'C:\\Program Files\\Common Files'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     COMPUTERNAME: 'GLEB-PROTOTYPE'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     COMSPEC: 'C:\\WINDOWS\\system32\\cmd.exe'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     DRIVERDATA: 'C:\\Windows\\System32\\Drivers\\DriverData'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     HOMEDRIVE: 'C:'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     HOMEPATH: '\\Users\\gkhmyznikov'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     LOCALAPPDATA: 'C:\\Users\\gkhmyznikov\\AppData\\Local'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     LOGONSERVER: '\\\\GLEB-PROTOTYPE'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     NUMBER_OF_PROCESSORS: '12'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     NVM_HOME: 'C:\\Users\\gkhmyznikov\\AppData\\Local\\nvm'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     NVM_SYMLINK: 'C:\\nvm4w\\nodejs'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     ONEDRIVE: 'C:\\Users\\gkhmyznikov\\OneDrive - Microsoft'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     ONEDRIVECOMMERCIAL: 'C:\\Users\\gkhmyznikov\\OneDrive - Microsoft'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     OS: 'Windows_NT'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     PATH: 'C:\\temp\\pip-build-env-dzujljb1\\overlay\\Scripts;C:\\temp\\pip-build-env-dzujljb1\\normal\\Scripts;X:\\GitHub\\Windows-DevRel\\Tools\\ML-tests\\.temp\\env_orange_pyarrow\\Scripts;C:\\Program Files\\PowerShell\\7;C:\\Python313\\Scripts\\;C:\\Python313\\;C:\\Program Files\\Arm Performance Libraries\\armpl_24.10\\\\bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\dotnet\\;C:\\Users\\gkhmyznikov\\.cargo\\bin;X:\\ffmpeg\\bin;C:\\Program Files\\Git\\cmd;C:\\ProgramData\\chocolatey\\bin;%NVM_HOME%;%NVM_SYMLINK%;C:\\Program Files\\PowerShell\\7\\;C:\\Users\\gkhmyznikov\\AppData\\Local\\Programs\\Python\\Python313-arm64\\Scripts\\;C:\\Users\\gkhmyznikov\\AppData\\Local\\Programs\\Python\\Python313-arm64\\;C:\\Users\\gkhmyznikov\\.cargo\\bin;C:\\Users\\gkhmyznikov\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\gkhmyznikov\\.dotnet\\tools;C:\\Users\\gkhmyznikov\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\gkhmyznikov\\AppData\\Local\\GitHubDesktop\\bin;C:\\Users\\gkhmyznikov\\AppData\\Roaming\\npm;C:\\Users\\gkhmyznikov\\AppData\\Local\\nvm;C:\\nvm4w\\nodejs'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     PATHEXT: '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW;.CPL'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     PEP517_BACKEND_PATH: 'C:\\temp\\pip-install-d5le3d7e\\pymupdf_8f9ebfa5b7f242689561100b497f60f2'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     PEP517_BUILD_BACKEND: 'setup'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     PIP_BUILD_TRACKER: 'C:\\temp\\pip-build-tracker-16jsqiis'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     POWERSHELL_DISTRIBUTION_CHANNEL: 'MSI:Windows 10 Enterprise'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     PROCESSOR_ARCHITECTURE: 'ARM64'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     PROCESSOR_IDENTIFIER: 'ARMv8 (64-bit) Family 8 Model 1 Revision 201, Qualcomm Technologies Inc'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     PROCESSOR_LEVEL: '1'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     PROCESSOR_REVISION: '0201'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     PROGRAMDATA: 'C:\\ProgramData'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     PROGRAMFILES: 'C:\\Program Files'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     PROGRAMFILES(ARM): 'C:\\Program Files (Arm)'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     PROGRAMFILES(X86): 'C:\\Program Files (x86)'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     PROGRAMW6432: 'C:\\Program Files'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     PSMODULEPATH: 'C:\\Users\\gkhmyznikov\\Documents\\PowerShell\\Modules;C:\\Program Files\\PowerShell\\Modules;c:\\program files\\powershell\\7\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     PUBLIC: 'C:\\Users\\Public'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     PYTHONNOUSERSITE: '1'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     PYTHONPATH: 'C:\\temp\\pip-build-env-dzujljb1\\site'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     SESSIONNAME: 'Console'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     SYSTEMDRIVE: 'C:'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     SYSTEMROOT: 'C:\\WINDOWS'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     TEMP: 'C:/Temp'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     TMP: 'C:/Temp'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     UATDATA: 'C:\\WINDOWS\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     USERDNSDOMAIN: 'redmond.corp.microsoft.com'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     USERDOMAIN: 'REDMOND'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     USERDOMAIN_ROAMINGPROFILE: 'REDMOND'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     USERNAME: 'gkhmyznikov'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     USERPROFILE: 'C:\\Users\\gkhmyznikov'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     VIRTUAL_ENV: 'X:\\GitHub\\Windows-DevRel\\Tools\\ML-tests\\.temp\\env_orange_pyarrow'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     VIRTUAL_ENV_PROMPT: 'env_orange_pyarrow'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     WINDIR: 'C:\\WINDOWS'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     WSLENV: 'WT_SESSION:WT_PROFILE_ID:'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     WT_PROFILE_ID: '{574e775e-4f2a-5b96-ac1e-a2962a402336}'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     WT_SESSION: 'd8054af8-8fe3-47e2-a4fb-fb94753bae01'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py:     _OLD_VIRTUAL_PATH: 'C:\\Program Files\\PowerShell\\7;C:\\Python313\\Scripts\\;C:\\Python313\\;C:\\Program Files\\Arm Performance Libraries\\armpl_24.10\\\\bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\dotnet\\;C:\\Users\\gkhmyznikov\\.cargo\\bin;X:\\ffmpeg\\bin;C:\\Program Files\\Git\\cmd;C:\\ProgramData\\chocolatey\\bin;%NVM_HOME%;%NVM_SYMLINK%;C:\\Program Files\\PowerShell\\7\\;C:\\Users\\gkhmyznikov\\AppData\\Local\\Programs\\Python\\Python313-arm64\\Scripts\\;C:\\Users\\gkhmyznikov\\AppData\\Local\\Programs\\Python\\Python313-arm64\\;C:\\Users\\gkhmyznikov\\.cargo\\bin;C:\\Users\\gkhmyznikov\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\gkhmyznikov\\.dotnet\\tools;C:\\Users\\gkhmyznikov\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\gkhmyznikov\\AppData\\Local\\GitHubDesktop\\bin;C:\\Users\\gkhmyznikov\\AppData\\Roaming\\npm;C:\\Users\\gkhmyznikov\\AppData\\Local\\nvm;C:\\nvm4w\\nodejs'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py: PYMUPDF_SETUP_URL_WHEEL=None
      pipcl.py:785:tag_platform(): From self.tag_platform_: ret=None.
      pipcl.py:793:tag_platform(): From AUDITWHEEL_PLAT: ret=None.
      pipcl.py:808:tag_platform(): From sysconfig.get_platform(): ret='win_arm64'.
      pipcl.py:822:tag_platform(): tag_platform(): returning ret='win_arm64'.
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py: get_mupdf_internal(): out='dir' location=None sha=None
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py: Download location='https://mupdf.com/downloads/archive/mupdf-1.25.6-source.tar.gz' local_tgz='mupdf-1.25.6-source.tar.gz' name='mupdf-1.25.6-source'
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py: Downloading from location='https://mupdf.com/downloads/archive/mupdf-1.25.6-source.tar.gz' to local_tgz='mupdf-1.25.6-source.tar.gz'.
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py: Extracting mupdf-1.25.6-source.tar.gz
      Prefixing C:\temp\pip-install-d5le3d7e\pymupdf_8f9ebfa5b7f242689561100b497f60f2\mupdf-1.25.6-source/include/mupdf/fitz/config.h with '#define TOFU_CJK_EXT 1 /* PyMuPDF override. */\n'.
      wdev.py:273:__init__(): Looking for Python version='3.12' cpu.bits=64.
      wdev.py:280:__init__(): cpu=x64 version='3.12': using sys.executable='X:\\GitHub\\Windows-DevRel\\Tools\\ML-tests\\.temp\\env_orange_pyarrow\\Scripts\\python.exe'.
      wdev.py:340:__init__(): WindowsPython:
      wdev.py:340:__init__():
      wdev.py:340:__init__():     path:       X:\GitHub\Windows-DevRel\Tools\ML-tests\.temp\env_orange_pyarrow\Scripts\python.exe
      wdev.py:340:__init__():     version:    3.12
      wdev.py:340:__init__():     cpu:        x64
      wdev.py:340:__init__():     include:    X:\Python\Python312-arm64\Include
      wdev.py:340:__init__():     libs:       X:\Python\Python312-arm64\libs
      wdev.py:340:__init__():
      pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py: Building MuPDF by running: cd "C:\temp\pip-install-d5le3d7e\pymupdf_8f9ebfa5b7f242689561100b497f60f2\mupdf-1.25.6-source" && "X:\GitHub\Windows-DevRel\Tools\ML-tests\.temp\env_orange_pyarrow\Scripts\python.exe" ./scripts/mupdfwrap.py -d build\shared-tesseract-release-Py_LIMITED_API_0x030c0000-x64-py3.12 -b --devenv "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\devenv.com" all
      (+0.3s): state.py:334:set_dir_so: Adding suffix to self.dir_so='C:/temp/pip-install-d5le3d7e/pymupdf_8f9ebfa5b7f242689561100b497f60f2/mupdf-1.25.6-source/build/shared-release': '-x64-py3.12'
      (+0.3s): state.py:358:set_dir_so: self.Py_LIMITED_API=None
      (+0.3s): -d: state.py:358:set_dir_so: self.Py_LIMITED_API='0x030c0000'
      (+0.8s): -b: __main__.py:1539:build: devenv='C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\Common7\\IDE\\devenv.com'
      (+0.8s): -b: 0: __main__.py:1272:build_0: Generating C++ source code ...
      (+0.8s): -b: 0: cpp.py:5086:close: File updated: platform\c++\include\mupdf\extra.h
      (+0.8s): -b: 0: cpp.py:5086:close: File updated: platform\c++\implementation\extra.cpp
      (+1.8s): -b: 0: cpp.py:5479:cpp_source: Creating wrapper functions...
      (+2.5s): -b: 0: csharp.py:115:make_outparam_helper_csharp: Cannot generate C# out-param wrapper for pdf_repair_obj because would require > 7-tuple.
      (+2.6s): -b: 0: cpp.py:5560:cpp_source: Creating wrapper classes...
      (+3.2s): -b: 0: cpp.py:5086:close: File updated: platform\c++\include\mupdf\classes.h
      (+3.2s): -b: 0: cpp.py:5086:close: File updated: platform\c++\include\mupdf\classes2.h
      (+3.2s): -b: 0: cpp.py:5086:close: File updated: platform\c++\include\mupdf\exceptions.h
      (+3.2s): -b: 0: cpp.py:5086:close: File updated: platform\c++\include\mupdf\functions.h
      (+3.2s): -b: 0: cpp.py:5086:close: File updated: platform\c++\include\mupdf\internal.h
      (+3.3s): -b: 0: cpp.py:5086:close: File updated: platform\c++\implementation\classes.cpp
      (+3.3s): -b: 0: cpp.py:5086:close: File updated: platform\c++\implementation\classes2.cpp
      (+3.3s): -b: 0: cpp.py:5086:close: File updated: platform\c++\implementation\exceptions.cpp
      (+3.4s): -b: 0: cpp.py:5086:close: File updated: platform\c++\implementation\functions.cpp
      (+3.4s): -b: 0: cpp.py:5086:close: File updated: platform\c++\implementation\internal.cpp
      (+3.4s): -b: 0: cpp.py:5086:close: File updated: platform\c++\fn_usage.txt
      (+3.4s): -b: 0: __main__.py:1339:build_0: Wrapper classes that are containers: generated.container_classnames=['FzLink', 'FzStextBlock', 'FzStextLine', 'FzStextPage']
      (+3.4s): -b: 1: __main__.py:1628:build: Building mupdfcpp.dll by running devenv ...
      (+3.4s): -b: 1: __main__.py:1641:build: running: cd C:/temp/pip-install-d5le3d7e/pymupdf_8f9ebfa5b7f242689561100b497f60f2/mupdf-1.25.6-source&&"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\devenv.com" platform/win32/mupdf.sln /Build "Release|x64" /Project mupdfcpp
      (+14.1s): -b: 1: __main__.py:1641:build:

      (+14.1s): -b: 1: __main__.py:1641:build: Microsoft Visual Studio 2022 Version 17.13.2.

      (+14.1s): -b: 1: __main__.py:1641:build: Copyright (C) Microsoft Corp. All rights reserved.

      (+14.1s): -b: 1: __main__.py:1641:build: Build started at 12:52...

      (+14.5s): -b: 1: __main__.py:1641:build: 1>------ Build started: Project: libharfbuzz, Configuration: Release x64 ------

      (+15.2s): -b: 1: __main__.py:1641:build: 2>------ Build started: Project: libextract, Configuration: Release x64 ------

      (+15.2s): -b: 1: __main__.py:1641:build: 3>------ Build started: Project: libleptonica, Configuration: Release x64 ------

      (+15.4s): -b: 1: __main__.py:1641:build: 4>------ Build started: Project: bin2coff, Configuration: Release Win32 ------

      (+15.5s): -b: 1: __main__.py:1641:build: 5>------ Build started: Project: libpkcs7, Configuration: Release x64 ------

      (+15.6s): -b: 1: __main__.py:1641:build: 6>------ Build started: Project: libthirdparty, Configuration: Release x64 ------

      (+15.6s): -b: 1: __main__.py:1641:build: 1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(459,5): error MSB8020: The build tools for Visual Studio 2019 (Platform Toolset = 'v142') cannot be found. To build using the v142 build tools, please install Visual Studio 2019 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".

      (+15.6s): -b: 1: __main__.py:1641:build: 1>Done building project "libharfbuzz.vcxproj" -- FAILED.

      (+15.6s): -b: 1: __main__.py:1641:build: 2>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(459,5): error MSB8020: The build tools for Visual Studio 2019 (Platform Toolset = 'v142') cannot be found. To build using the v142 build tools, please install Visual Studio 2019 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".

      (+15.6s): -b: 1: __main__.py:1641:build: 2>Done building project "libextract.vcxproj" -- FAILED.

      (+15.6s): -b: 1: __main__.py:1641:build: 5>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(459,5): error MSB8020: The build tools for Visual Studio 2019 (Platform Toolset = 'v142') cannot be found. To build using the v142 build tools, please install Visual Studio 2019 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".

      (+15.6s): -b: 1: __main__.py:1641:build: 5>Done building project "libpkcs7.vcxproj" -- FAILED.

      (+15.7s): -b: 1: __main__.py:1641:build: 6>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(459,5): error MSB8020: The build tools for Visual Studio 2019 (Platform Toolset = 'v142') cannot be found. To build using the v142 build tools, please install Visual Studio 2019 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".

      (+15.7s): -b: 1: __main__.py:1641:build: 6>Done building project "libthirdparty.vcxproj" -- FAILED.

      (+15.7s): -b: 1: __main__.py:1641:build: 3>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(459,5): error MSB8020: The build tools for Visual Studio 2019 (Platform Toolset = 'v142') cannot be found. To build using the v142 build tools, please install Visual Studio 2019 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".

      (+15.7s): -b: 1: __main__.py:1641:build: 3>Done building project "libleptonica.vcxproj" -- FAILED.

      (+15.8s): -b: 1: __main__.py:1641:build: 4>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(459,5): error MSB8020: The build tools for Visual Studio 2019 (Platform Toolset = 'v142') cannot be found. To build using the v142 build tools, please install Visual Studio 2019 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".

      (+15.8s): -b: 1: __main__.py:1641:build: 4>Done building project "bin2coff.vcxproj" -- FAILED.

      (+15.8s): -b: 1: __main__.py:1641:build: 7>------ Build started: Project: libtesseract, Configuration: Release x64 ------

      (+15.8s): -b: 1: __main__.py:1641:build: 7>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(459,5): error MSB8020: The build tools for Visual Studio 2019 (Platform Toolset = 'v142') cannot be found. To build using the v142 build tools, please install Visual Studio 2019 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".

      (+15.8s): -b: 1: __main__.py:1641:build: 7>Done building project "libtesseract.vcxproj" -- FAILED.

      (+15.8s): -b: 1: __main__.py:1641:build: 8>------ Build started: Project: libresources, Configuration: Release x64 ------

      (+15.9s): -b: 1: __main__.py:1641:build: 8>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(459,5): error MSB8020: The build tools for Visual Studio 2019 (Platform Toolset = 'v142') cannot be found. To build using the v142 build tools, please install Visual Studio 2019 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".

      (+15.9s): -b: 1: __main__.py:1641:build: 8>Done building project "libresources.vcxproj" -- FAILED.

      (+15.9s): -b: 1: __main__.py:1641:build: 9>------ Build started: Project: libmupdf, Configuration: Release x64 ------

      (+15.9s): -b: 1: __main__.py:1641:build: 9>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(459,5): error MSB8020: The build tools for Visual Studio 2019 (Platform Toolset = 'v142') cannot be found. To build using the v142 build tools, please install Visual Studio 2019 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".

      (+15.9s): -b: 1: __main__.py:1641:build: 9>Done building project "libmupdf.vcxproj" -- FAILED.

      (+15.9s): -b: 1: __main__.py:1641:build: 10>------ Build started: Project: mupdfcpp, Configuration: Release x64 ------

      (+16.0s): -b: 1: __main__.py:1641:build: 10>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(459,5): error MSB8020: The build tools for Visual Studio 2019 (Platform Toolset = 'v142') cannot be found. To build using the v142 build tools, please install Visual Studio 2019 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".

      (+16.0s): -b: 1: __main__.py:1641:build: 10>Done building project "mupdfcpp.vcxproj" -- FAILED.

      (+16.0s): -b: 1: __main__.py:1641:build: ========== Build: 0 succeeded, 10 failed, 0 up-to-date, 0 skipped ==========

      (+16.0s): -b: 1: __main__.py:1641:build: ========== Build completed at 12:52 and took 02.714 seconds ==========

      (+16.6s): -b: 1: __main__.py:1641:build: [returned e=1]
      Traceback (most recent call last):
          scripts\mupdfwrap.py:6:<module>(): wrap.__main__.main()
          scripts\wrap\__main__.py:3085:main(): jlib.exception_info()
          ^except raise:
          scripts\wrap\__main__.py:3083:main(): main2()
          scripts\wrap\__main__.py:2466:main2(): build( build_dirs, swig_command, args, vs_upgrade, make_command)
          scripts\wrap\__main__.py:1641:build(): jlib.system(command2, verbose=1, out='log')
          scripts\jlib.py:1710:system(): raise Exception( message)
      Exception: Command failed: cd C:/temp/pip-install-d5le3d7e/pymupdf_8f9ebfa5b7f242689561100b497f60f2/mupdf-1.25.6-source&&"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\devenv.com" platform/win32/mupdf.sln /Build "Release|x64" /Project mupdfcpp
      Traceback (most recent call last):
        File "X:\GitHub\Windows-DevRel\Tools\ML-tests\.temp\env_orange_pyarrow\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
          main()
        File "X:\GitHub\Windows-DevRel\Tools\ML-tests\.temp\env_orange_pyarrow\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "X:\GitHub\Windows-DevRel\Tools\ML-tests\.temp\env_orange_pyarrow\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 152, in prepare_metadata_for_build_wheel
          whl_basename = backend.build_wheel(metadata_directory, config_settings)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\temp\pip-install-d5le3d7e\pymupdf_8f9ebfa5b7f242689561100b497f60f2\pipcl.py", line 601, in build_wheel
          items = self._call_fn_build(config_settings)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\temp\pip-install-d5le3d7e\pymupdf_8f9ebfa5b7f242689561100b497f60f2\pipcl.py", line 890, in _call_fn_build
          ret = self.fn_build()
                ^^^^^^^^^^^^^^^
        File "C:\temp\pip-install-d5le3d7e\pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py", line 617, in build
          mupdf_build_dir = build_mupdf_windows(
                            ^^^^^^^^^^^^^^^^^^^^
        File "C:\temp\pip-install-d5le3d7e\pymupdf_8f9ebfa5b7f242689561100b497f60f2\setup.py", line 847, in build_mupdf_windows
          subprocess.run( command, shell=True, check=True)
        File "X:\Python\Python312-arm64\Lib\subprocess.py", line 573, in run
          raise CalledProcessError(retcode, process.args,
      subprocess.CalledProcessError: Command 'cd "C:\temp\pip-install-d5le3d7e\pymupdf_8f9ebfa5b7f242689561100b497f60f2\mupdf-1.25.6-source" && "X:\GitHub\Windows-DevRel\Tools\ML-tests\.temp\env_orange_pyarrow\Scripts\python.exe" ./scripts/mupdfwrap.py -d build\shared-tesseract-release-Py_LIMITED_API_0x030c0000-x64-py3.12 -b --devenv "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\devenv.com" all' returned non-zero exit status 1.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions