python / python/cpython

macOS installer shell path management improvements

Open
#137,450 0 comments 1 reaction 1 assignee View on GitHub

@ned-deily is already working on this.

Since Aug 6, 2025.

OS-mac topic-installation
Dominant language
Python
Stars
77.2k
Forks
35.9k
PR merge metrics
PR metrics pending

Description

The macOS Python installers provided on python.org with each Python release have long provided a fairly primitive mechanism to ensure the newly-installed Python is available on the user's shell PATH. A postinstall script is run by default by the installer which attempts to modify the user's login shell's profile to add the Python framework's bin directory to the shell PATH. A copy of the script is also included by default in the /Applications/Python 3.x directory. There are a number of shortcomings with this approach. This issue is a placeholder for upcoming work in this area.

Linked PRs
  • gh-137451
  • gh-137452
  • gh-137453

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.