# python: Upgrade \`pet\` to improve toolchain discovery in WSL \(\#51749\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/46596a25709a7e6585eb6546ea457d5720ed28a2)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 46596a25709a7e6585eb6546ea457d5720ed28a2

Requested commit: 46596a25709a7e6585eb6546ea457d5720ed28a2

Commit: 46596a25709a7e6585eb6546ea457d5720ed28a2

Tree: 1ae55b2f6b06cfd320ce1d2fd4254db119a56904

Author: Xin Zhao

Committer: GitHub

## Message

```
python: Upgrade `pet` to improve toolchain discovery in WSL (#51749)

This PR updates the pet dependency to incorporate performance
improvements from upstream.

Related Upstream Changes:
- Issue: microsoft/python-environment-tools#369
- PR: microsoft/python-environment-tools#370

Updating pet reduces toolchain discovery time in WSL environments,
specifically when Conda is installed on the host Windows system. In my
testing, the time from clicking the toolchain button to the list
appearing was reduced by approximately 2 seconds.

While this is a notable improvement, discovery in WSL remains slightly
slower than in native development or remote Linux environments, where
toolchains are typically loaded near-instantaneously.

Before you mark this PR as ready for review, make sure that you have:
- [x] Added a solid test coverage and/or screenshots from doing manual
testing (no need)
- [x] Done a self-review taking into account security and performance
aspects
- [x] Aligned any UI changes with the [UI
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)

Release Notes:

- Improved python toolchain discovery under WSL environment
```

## Parents

- [0c9b8fdba801baef3e0ed8f25b75958b33d545dc](https://git.cafe/gitcafe/zed/commit/0c9b8fdba801baef3e0ed8f25b75958b33d545dc?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/46596a25709a7e6585eb6546ea457d5720ed28a2?format=markdown)
