Skip to content

Conversation

@daeho-ro
Copy link
Contributor

@daeho-ro daeho-ro commented Aug 24, 2025

Improve homebrew installed python detection.

This will detect the users that not only arm macos users but also intel macos users. And even if user change their homebrew prefix, this could catch them and use the path for that. I am not pretending to get the 100% users but just increase the chance of this.

Well, there is another option that just use HOMEBREW_PREFIX directly. But it depends on the user configuration and system so I didn't tried.

Here is my local output with homebrew installed python.

python3.12 -c "import sys; print(sys.prefix)"
/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12
python3.13 -c "import sys; print(sys.prefix)"
/opt/homebrew/opt/python@3.13/Frameworks/Python.framework/Versions/3.13

Copy link
Member

@gaborbernat gaborbernat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add test please to defend against regressions.

@daeho-ro
Copy link
Contributor Author

@gaborbernat Added some tests !

@gaborbernat gaborbernat merged commit c945a28 into tox-dev:main Aug 26, 2025
29 checks passed
luketainton pushed a commit to luketainton/repos_pypilot that referenced this pull request Jan 5, 2026
This PR contains the following updates:

| Package | Change | Age | Confidence |
|---|---|---|---|
| [platformdirs](https://github.com/tox-dev/platformdirs) ([changelog](https://github.com/tox-dev/platformdirs/releases)) | `==4.3.8` -> `==4.4.0` | [![age](https://developer.mend.io/api/mc/badges/age/pypi/platformdirs/4.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/platformdirs/4.3.8/4.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>tox-dev/platformdirs (platformdirs)</summary>

### [`v4.4.0`](https://github.com/tox-dev/platformdirs/releases/tag/4.4.0)

[Compare Source](tox-dev/platformdirs@4.3.8...4.4.0)

##### What's Changed

- feat: improve homebrew path detection by [@&#8203;daeho-ro](https://github.com/daeho-ro) in [#&#8203;370](tox-dev/platformdirs#370)

##### New Contributors

- [@&#8203;daeho-ro](https://github.com/daeho-ro) made their first contribution in [#&#8203;370](tox-dev/platformdirs#370)

**Full Changelog**: <tox-dev/platformdirs@4.3.8...4.4.0>

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS44My4yIiwidXBkYXRlZEluVmVyIjoiNDEuODMuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsidHlwZS9kZXBlbmRlbmNpZXMiXX0=-->

Reviewed-on: https://git.tainton.uk/repos/pypilot/pulls/366
Co-authored-by: Renovate [BOT] <renovate-bot@git.tainton.uk>
Co-committed-by: Renovate [BOT] <renovate-bot@git.tainton.uk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants