| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
| # pyenv will alert which shims are available and then will fail the build. | ||
| _=[ 'exec' '/bin/sh' '-c' ''' | ||
| test ${TRAVIS} && exec python "$0" "$@" # workaround for pyenv on Travis CI | ||
| which python3.8 >/dev/null && exec python3.8 "$0" "$@" |
There was a problem hiding this comment.
Should we maybe check for python3 first?
Sorry, something went wrong.
There was a problem hiding this comment.
The trouble with doing that is that python3 might be in ((3, 0), (3, 1), (3, 2), (3, 3), (3, 4)) which we (and the Python Core Team) do not support.
Sorry, something went wrong.
|
I'm fine with this, but I wonder if we should be so specific, can't we just say 3.5 and above? |
Sorry, something went wrong.
|
Explicit is better than implicit is line 2 of The Zen of Python written in 2004. |
Sorry, something went wrong.
PR-URL: #30194 Reviewed-By: Christian Clauss <cclauss@me.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
PR-URL: #30194 Reviewed-By: Christian Clauss <cclauss@me.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
| Back | FazBrowse Home | New Git URL |
Tested on Windows.
/cc @nodejs/python @cclauss