[PATCH] Support python in other than /usr/bin/python
emaste at freebsd.org
Tue May 26 13:16:48 PDT 2015
I'm happy to just switch to /usr/bin/env python in the scripts if everyone's happy with that (leaving the explicit `PYTHON_EXECUTABLE` override as it was).
Comment at: lib/sanitizer_common/scripts/check_lint.sh:15
@@ +14,3 @@
+ if [ -x /usr/local/bin/python ]; then
+ elif PYTHON_EXECUTABLE=$(which python 2>/dev/null); then
> You never set PYTHON_EXECUTABLE to /usr/bin/python, is it intentional, or you believe it would always be in PATH in this case?
If it's in /usr/bin/python the `PTYHON_EXECUTABLE` can remain empty and `#!/usr/bin/python` at the beginning of the python scripts will take effect.
More information about the llvm-commits