Update Python instance installed by nRF Connect SDK

Dear Nordic support,

With the installation of every nRF Connect SDK version, there is also a python instance installed with it.

For example, the nRF Connect SDK V2.8.0 installs python version 3.12.4.
To mitigate security vulnerabilities, it is desired to update the used python version whenever necessary.

I haven't found any information on how to update tools while ensuring that the toolchain doesn't break.

Does Nordic provide a guide on how to do this or what is the best approach when updating specific tools?

Thank you in advance!
Best regards
Pascal

  • Hi Pascal, 

    I will inquire internally, as I need to verify if there are any dependencies in the toolchain package. 

    Kind regards,
    Øyvind 

  • Hello, 

    We recommend testing with a newer toolchain i.e. installing toolchain v2.9.0 if using SDK v2.8.0. Updating Python only might break compatibility between Python and scrips in the SDK. Please test compatibility of toochain v2.9.0 and sdk v2.9.0 with e.g. basic west commands, etc. To verify no issues. 

    Kind regards,
    Øyvind

  • Hi Øyvind

    Thank you for the quick reply!

    The nRF Connect SDK V2.9.0 still uses Python V3.12.4 (Required tools). So if I understand you correctly, the latest SDK version V2.9.0 shall be used to reduce the possibility of dependency problems when updating Python.

    Underneath the GUI of the nRF Connect extension for VS Code, the west commands are called as well.
    To test the functionality, I could just use VS Code as before and check if problems occur?

    Please let me know if I am mistaken.

    Best regards
    Pascal

  • Hi Pascal, 

    Pascal Künzi said:
    Underneath the GUI of the nRF Connect extension for VS Code, the west commands are called as well.
    To test the functionality, I could just use VS Code as before and check if problems occur?

    Yes, that is correct, and you should be able to test with VS Code e.g. build a project. 

    Pascal Künzi said:
    So if I understand you correctly, the latest SDK version V2.9.0 shall be used to reduce the possibility of dependency problems when updating Python.

    The toolchain for SDK v2.9.0 should be used, if you are still on v2.8.0 of the SDK. As the toolchain is what has latest version of Python. But if you want to update to SDK v2.9.0 you can do this as well.

    Let us know how that works for you.

    Kind regards,
    Øyvind

  • Hi Øyvind

    We just updated to the nRF Connect SDK V2.9.0 and tried to also update the python instance to the latest version. Unfortunately, we didn't find an easy way to do so. Windows does not list the python instances installed with each nRF Connect SDK version.

    When using the python installer, the directory content seems to differ as well.

    Are those regular python installs or is that some kind of portable version?

    It would be highly appreciated if you could update to the latest python version in the next SDK version.

    Best regards,
    Pascal

Related