Environment setup
Learn how to configure your environment to use the codegen.py
code generator.
Prerequisites
Install the following items before you configure your environment:
Git
Python 3.10 or higher
Poetry 1.2.0 or higher
Configure your environment
Use the following procedure to configure your environment to use the codegen.py code generator.
-
Download the latest version of the End device SDK from the AWS Management Console.
-
Set up the Python environment. The codegen project is python-based and uses Poetry for dependency management.
-
Install project dependencies using poetry in the
codegen
directory:poetry run poetry install --no-root
-
-
Set up your repository.
-
Clone the connectedhomeip repository. It uses the
codegen.py
script located in theconnectedhomeip/scripts/
folder for code generation. For more information, see connectedhomeipon GitHub. git clone -b v1.4.0.0 https://github.com/project-chip/connectedhomeip.git
-
Clone it at the same level as your
IoT-managed-integrations-End-Device-SDK
root folder. Your folder structure should match the following:|-connectedhomeip |-IoT-managed-integrations-End-Device-SDK
-
Note
You don't need to recursively clone submodules.