Tips and tricks for porting to win-arm64

This page doesn’t try to be a complete porting guide, just a collection of the learnt approaches during porting Python packages and 3rd party libraries.

Common issues

 

 

  • Does the build fail in a very early phrase, reporting there are no C/C++ compiler found?

    • Try to invoke vcvars manually, then repeat it.

      • Powershell

        cmd /k '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsx86_arm64.bat" & powershell'
      • cmd

        "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsx86_arm64.bat"
    • If it’s fixed, you’d need to find where the environment should be set properly by the build process.

 

 

Python related tips

  • Tests

    • Is there a test folder with test pythons scripts, but no hint how to run them?

      • Try install pytest and run this:

        pytest <test directory>