[libcxx-commits] [clang] [clang-tools-extra] [compiler-rt] [libc] [libcxx] [lld] [lldb] [llvm] [mlir] [openmp] [polly] Python-related cleanups (PR #163566)

Jannick Kremer via libcxx-commits libcxx-commits at lists.llvm.org
Wed Oct 15 08:02:16 PDT 2025


DeinAlptraum wrote:

Relevant PEP: https://peps.python.org/pep-0394/

To quote:
"For scripts that are only expected to be run in an activated virtual environment, shebang lines can be written as #!/usr/bin/env python, as this instructs the script to respect the active virtual environment."

So I'm not sure the shebang for venvs should be changed to python3.

Mote over, this may have pretty big implications since the implementation of these commands 8s very inconsistent across platforms and no common rules seem to exist.
Some platforms have `python` that aliases to `python3`, some alias it to `python2`, some only have `python` etc. so I'm not convinced it's a good idea to just change these broadly without considering possible platform specific requirements 

https://github.com/llvm/llvm-project/pull/163566


More information about the libcxx-commits mailing list