Skip to content

$PY_PYTHON is not being honoring on a brew installed py on macOS  #235

@cclauss

Description

@cclauss

For the solution, please see #235 (comment)

Describe the bug
A clear and concise description of what the bug is.

I would like to configure py to use Python 3.11 as its default on my Mac...

To Reproduce
Steps to reproduce the behavior:

  1. brew install python-launcher python@3.9 python@3.10 python@3.11
  2. py --list

    3.11 │ /opt/homebrew/bin/python3.11
    3.10 │ /opt/homebrew/bin/python3.10
    3.9 │ /opt/homebrew/bin/python3.9

  3. py --version

    Python 3.9.15 # :-(

  4. export PY_PYTHON=3.11
  5. echo $PY_PYTHON

    3.11

  6. py --version

    Python 3.9.15 # :-(

Expected behavior
A clear and concise description of what you expected to happen.

  1. py --version

    Python 3.11.0

Screenshots
If applicable, add screenshots to help explain your problem.

System Details (please complete the following information):

  • OS: macOS
  • Shell: zsh
  • Launcher Version: Python Launcher for Unix 1.0.0

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions