-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
Closed as not planned
Closed as not planned
Copy link
Labels
OS-macextension-modulesC modules in the Modules dirC modules in the Modules dirpendingThe issue will be closed if no feedback is providedThe issue will be closed if no feedback is providedtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
On recent versions of macOS user defined environment variables (also those documented at https://docs.python.org/3/using/cmdline.html#environment-variables like PYTHONHOME) are not known in Python on recent versions of macOS (I have tested it on Tahoe 26.2 where they are not known and Big Sur 11.7.1 where they are known). For instance after setting
PYTHONPLATLIBDIR=lib
in the shell and typing in a Python interpreter
import os
os.getenv("PYTHONPLATLIBDIR")returns an empty string on recent versions of macOS.
CPython versions tested on:
3.14, 3.9
Operating systems tested on:
macOS
Metadata
Metadata
Assignees
Labels
OS-macextension-modulesC modules in the Modules dirC modules in the Modules dirpendingThe issue will be closed if no feedback is providedThe issue will be closed if no feedback is providedtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error