Skip to content

[Feature Request] Release pymsalruntime wheels for Windows ARM64 Architectures #869

@martinResearch

Description

@martinResearch

MSAL client type

Public

Problem Statement

With the line of Microsoft Copilot+PC machines we now have more and more Windows ARM64 machines. It would be great to publish wheels for these machines. At the moment this is blocking the installation of azure-cli-core and mlflow in my python environments.

installing from source gives me errors:

  x Failed to build `pymsalruntime==0.14.2`
  |-> The build backend returned an error
  `-> Call to `setuptools.build_meta.build_wheel` failed (exit code: 1)

      [stdout]
      running bdist_wheel
      running build
      running build_py
      copying pymsalruntime\__init__.py -> build\lib.win-arm64-cpython-313\pymsalruntime
      copying pymsalruntime\PyMsalRuntime.pyi -> build\lib.win-arm64-cpython-313\pymsalruntime
      copying pymsalruntime\msalruntime.dll -> build\lib.win-arm64-cpython-313\pymsalruntime
      running build_ext
      building 'pymsalruntime.pymsalruntime' extension
      "C:\Program Files\Microsoft Visual Studio\18\Enterprise\VC\Tools\MSVC\14.50.35717\bin\HostARM64\ARM64\cl.exe"
      /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Ibuild_resources
      -IC:\Users\madelago\AppData\Local\uv\cache\builds-v0\.tmp2p3aTR\include
      -IC:\Users\madelago\AppData\Local\Programs\Python\Python313-arm64\include
      -IC:\Users\madelago\AppData\Local\Programs\Python\Python313-arm64\Include "-IC:\Program
      Files\Microsoft Visual Studio\18\Enterprise\VC\Tools\MSVC\14.50.35717\include" "-IC:\Program
      Files\Microsoft Visual Studio\18\Enterprise\VC\Tools\MSVC\14.50.35717\ATLMFC\include" "-IC:\Program
      Files\Microsoft Visual Studio\18\Enterprise\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows
      Kits\10\include\10.0.26100.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\um"
      "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\shared" "-IC:\Program Files (x86)\Windows
      Kits\10\\include\10.0.26100.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\cppwinrt"
      /Tcpymsalruntime/PyMsalRuntime.c /Fobuild\temp.win-arm64-cpython-313\Release\pymsalruntime\PyMsalRuntime.obj
      PyMsalRuntime.c
      pymsalruntime/PyMsalRuntime.c(860): warning C4996: 'Py_UNICODE': deprecated in 3.13
      pymsalruntime/PyMsalRuntime.c(861): warning C4996: 'Py_UNICODE': deprecated in 3.13
      pymsalruntime/PyMsalRuntime.c(16328): warning C4267: '=': conversion from 'size_t' to 'int32_t', possible loss
      of data
      pymsalruntime/PyMsalRuntime.c(20977): warning C4013: '_PyDict_SetItem_KnownHash' undefined; assuming extern
      returning int
      pymsalruntime/PyMsalRuntime.c(22488): warning C4013: '_PyUnicode_FastCopyCharacters' undefined; assuming extern
      returning int
      pymsalruntime/PyMsalRuntime.c(24127): error C2198: 'int _PyLong_AsByteArray(PyLongObject *,unsigned char
      *,size_t,int,int,int)': too few arguments for call
      pymsalruntime/PyMsalRuntime.c(24323): error C2198: 'int _PyLong_AsByteArray(PyLongObject *,unsigned char
      *,size_t,int,int,int)': too few arguments for call
      pymsalruntime/PyMsalRuntime.c(24557): error C2198: 'int _PyLong_AsByteArray(PyLongObject *,unsigned char
      *,size_t,int,int,int)': too few arguments for call
      pymsalruntime/PyMsalRuntime.c(24905): error C2198: 'int _PyLong_AsByteArray(PyLongObject *,unsigned char
      *,size_t,int,int,int)': too few arguments for call
      pymsalruntime/PyMsalRuntime.c(25177): error C2198: 'int _PyLong_AsByteArray(PyLongObject *,unsigned char
      *,size_t,int,int,int)': too few arguments for call
      pymsalruntime/PyMsalRuntime.c(25373): error C2198: 'int _PyLong_AsByteArray(PyLongObject *,unsigned char
      *,size_t,int,int,int)': too few arguments for call

      [stderr]
      C:\Users\madelago\AppData\Local\uv\cache\builds-v0\.tmp2p3aTR\Lib\site-packages\setuptools\dist.py:759:
      SetuptoolsDeprecationWarning: License classifiers are deprecated.
      !!

              ********************************************************************************
              Please consider removing the following classifiers in favor of a SPDX license expression:

              License :: OSI Approved :: MIT License

              See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
              ********************************************************************************

      !!
        self._finalize_license_expression()
      error: command 'C:\\Program Files\\Microsoft Visual
      Studio\\18\\Enterprise\\VC\\Tools\\MSVC\\14.50.35717\\bin\\HostARM64\\ARM64\\cl.exe' failed with exit code 2

      hint: This usually indicates a problem with the package or the build environment.

Proposed solution

I would be great if we could publish the precompiled wheel for Windows ARM64 architectures on pypi.org

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