{"id":24091519,"url":"https://github.com/RT-Thread/env","last_synced_at":"2025-09-17T00:33:00.744Z","repository":{"id":37678076,"uuid":"112192118","full_name":"RT-Thread/env","owner":"RT-Thread","description":"Python Scripts for RT-Thread/ENV","archived":false,"fork":false,"pushed_at":"2025-01-05T12:23:46.000Z","size":2603,"stargazers_count":57,"open_issues_count":6,"forks_count":48,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-01-08T10:06:23.469Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RT-Thread.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-27T12:13:13.000Z","updated_at":"2025-01-05T12:23:50.000Z","dependencies_parsed_at":"2024-04-20T17:33:06.066Z","dependency_job_id":"4c6a3154-7d44-40d8-be07-e3b353c4c01f","html_url":"https://github.com/RT-Thread/env","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RT-Thread%2Fenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RT-Thread%2Fenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RT-Thread%2Fenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RT-Thread%2Fenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RT-Thread","download_url":"https://codeload.github.com/RT-Thread/env/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233312421,"owners_count":18657035,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-10T07:44:34.786Z","updated_at":"2025-09-17T00:32:55.266Z","avatar_url":"https://github.com/RT-Thread.png","language":"Python","funding_links":[],"categories":["Official Resources"],"sub_categories":[],"readme":"# Python Scripts for RT-Thread Env\r\n\r\n\u003e WARNING\r\n\u003e \r\n\u003e [env v2.0](https://github.com/RT-Thread/env/tree/master) and [env-windows v2.0](https://github.com/RT-Thread/env-windows/tree/v2.0.0) only **FULL SUPPORT** RT-Thread \u003e v5.1.0 or [master](https://github.com/rt-thread/rt-thread) branch. if you work on RT-Thread \u003c= v5.1.0, please use [env v1.5.x](https://github.com/RT-Thread/env/tree/v1.5.x) for linux, [env-windows v1.5.x](https://github.com/RT-Thread/env-windows/tree/v1.5.2) for windows\r\n\u003e\r\n\u003e env v2.0 has made the following important changes:\r\n\u003e - Upgrading Python version from v2 to v3\r\n\u003e - Replacing kconfig-frontends with Python kconfiglib\r\n\u003e\r\n\u003e  env v2.0 require python kconfiglib (install by `pip install kconfiglib`), but env v1.5.x confilt with kconfiglib (please run `pip uninstall kconfiglib`)\r\n\r\n## Usage under Linux\r\n\r\n### Tutorial\r\n\r\n[How to install Env Tool with QEMU simulator in Ubuntu](https://github.com/RT-Thread/rt-thread/blob/master/documentation/quick-start/quick_start_qemu/quick_start_qemu_linux.md)\r\n\r\n### Install Env\r\n\r\n```\r\nwget https://raw.githubusercontent.com/RT-Thread/env/master/install_ubuntu.sh\r\nchmod 777 install_ubuntu.sh\r\n./install_ubuntu.sh\r\nrm install_ubuntu.sh\r\n```\r\n\r\n对于中国大陆用户，请使用以下命令\r\n\r\n```\r\nwget https://gitee.com/RT-Thread-Mirror/env/raw/master/install_ubuntu.sh\r\nchmod 777 install_ubuntu.sh\r\n./install_ubuntu.sh --gitee\r\nrm install_ubuntu.sh\r\n```\r\n\r\n### Prepare Env\r\n\r\nPLAN A: Whenever start the ubuntu system, you need to type command `source ~/.env/env.sh` to activate the environment variables.\r\n\r\nor PLAN B: open `~/.bashrc` file, and attach the command `source ~/.env/env.sh` at the end of the file. It will be automatically executed when you log in the ubuntu, and you don't need to execute that command any more.\r\n\r\n### Use Env\r\n\r\nPlease see: \u003chttps://github.com/RT-Thread/rt-thread/blob/master/documentation/env/env.md#bsp-configuration-menuconfig\u003e\r\n\r\n## Usage under Windows\r\n\r\nTested on the following version of PowerShell:\r\n\r\n- PSVersion                      5.1.22621.963\r\n- PSVersion                      5.1.19041.2673\r\n\r\n### Install Env\r\n\r\n您需要以管理员身份运行 PowerShell 来设置执行。（You need to run PowerShell as an administrator to set up execution.）\r\n\r\n在 PowerShell 中执行（Execute the command in PowerShell）：\r\n\r\n```powershell\r\nwget https://raw.githubusercontent.com/RT-Thread/env/master/install_windows.ps1 -O install_windows.ps1\r\nset-executionpolicy remotesigned\r\n.\\install_windows.ps1\r\n```\r\n\r\n对于中国大陆用户，请使用以下命令：\r\n\r\n```powershell\r\nwget https://gitee.com/RT-Thread-Mirror/env/raw/master/install_windows.ps1 -O install_windows.ps1\r\nset-executionpolicy remotesigned\r\n.\\install_windows.ps1 --gitee\r\n```\r\n\r\n注意：\r\n\r\n1. Powershell要以管理员身份运行。\r\n2. 将其设置为 remotesigned 后，您可以作为普通用户运行 PowerShell。（ After setting it to remotesigned, you can run PowerShell as a normal user.）\r\n3. 一定要关闭杀毒软件，否则安装过程可能会被杀毒软件强退\r\n\r\n### Prepare Env\r\n\r\n方案 A：每次重启 PowerShell 时，都需要输入命令 `~/.env/env.ps1`，以激活环境变量。（PLAN A: Each time you restart PowerShell, you need to enter the command `~/.env/env.ps1` to activate the environment variable.）\r\n\r\n方案 B (推荐)：打开 `C:\\Users\\user\\Documents\\WindowsPowerShell`，如果没有`WindowsPowerShell`则新建该文件夹。新建文件 `Microsoft.PowerShell_profile.ps1`，然后写入 `~/.env/env.ps1` 内容即可，它将在你重启 PowerShell 时自动执行，无需再执行方案 A 中的命令。（or PLAN B (recommended): Open `C:\\Users\\user\\Documents\\WindowsPowerShell` and create a new file `Microsoft.PowerShell_profile.ps1`. Then write `~/.env/env.ps1` to the file. It will be executed automatically when you restart PowerShell, without having to execute the command in scenario A.）\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRT-Thread%2Fenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRT-Thread%2Fenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRT-Thread%2Fenv/lists"}