Commit 3abe79b9 authored by maruel@chromium.org's avatar maruel@chromium.org

Enable PYTHONDONTWRITEBYTECODE=1 as much as possible.

Since we clobber the .pyc, it's not useful to generate them in the first place.

R=dpranke@chromium.org
BUG=
TEST=

Review URL: http://codereview.chromium.org/8060026

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@103066 0039d316-1c4b-4281-b951-d872f2087c98
parent 3e9e4325
...@@ -22,5 +22,4 @@ then ...@@ -22,5 +22,4 @@ then
svn -q up "${base_dir}" svn -q up "${base_dir}"
fi fi
exec python "${base_dir}/drover.py" "$@" PYTHONDONTWRITEBYTECODE=1 exec python "${base_dir}/drover.py" "$@"
...@@ -5,5 +5,5 @@ ...@@ -5,5 +5,5 @@
setlocal setlocal
set PATH=%~dp0svn;%PATH% set PATH=%~dp0svn;%PATH%
set PYTHONDONTWRITEBYTECODE=1
call python "%~dp0drover.py" %* call python "%~dp0drover.py" %*
...@@ -5,4 +5,4 @@ ...@@ -5,4 +5,4 @@
base_dir=$(dirname "$0") base_dir=$(dirname "$0")
exec python "$base_dir/gcl.py" "$@" PYTHONDONTWRITEBYTECODE=1 exec python "$base_dir/gcl.py" "$@"
...@@ -2,4 +2,5 @@ ...@@ -2,4 +2,5 @@
setlocal setlocal
:: This is required with cygwin only. :: This is required with cygwin only.
PATH=%~dp0;%PATH% PATH=%~dp0;%PATH%
set PYTHONDONTWRITEBYTECODE=1
call python "%~dp0gcl.py" %* call python "%~dp0gcl.py" %*
...@@ -7,4 +7,4 @@ base_dir=$(dirname "$0") ...@@ -7,4 +7,4 @@ base_dir=$(dirname "$0")
"$base_dir"/update_depot_tools "$base_dir"/update_depot_tools
exec python "$base_dir/gclient.py" "$@" PYTHONDONTWRITEBYTECODE=1 exec python "$base_dir/gclient.py" "$@"
...@@ -16,7 +16,7 @@ OUTPUT="$(uname | grep 'MINGW')" ...@@ -16,7 +16,7 @@ OUTPUT="$(uname | grep 'MINGW')"
MINGW=$? MINGW=$?
if [ -d "$base_dir/python_bin" -a $MINGW = 0 ]; then if [ -d "$base_dir/python_bin" -a $MINGW = 0 ]; then
exec "$base_dir/python_bin/python.exe" "$base_dir"/git_cl.py "$@" PYTHONDONTWRITEBYTECODE=1 exec "$base_dir/python_bin/python.exe" "$base_dir"/git_cl.py "$@"
else else
exec "$base_dir/git_cl.py" "$@" PYTHONDONTWRITEBYTECODE=1 exec "$base_dir/git_cl.py" "$@"
fi fi
...@@ -11,7 +11,7 @@ OUTPUT="$(uname | grep 'MINGW')" ...@@ -11,7 +11,7 @@ OUTPUT="$(uname | grep 'MINGW')"
MINGW=$? MINGW=$?
if [ -d "$base_dir/python_bin" -a $MINGW = 0 ]; then if [ -d "$base_dir/python_bin" -a $MINGW = 0 ]; then
exec "$base_dir/python_bin/python.exe" "$base_dir"/git_try.py "$@" PYTHONDONTWRITEBYTECODE=1 exec "$base_dir/python_bin/python.exe" "$base_dir"/git_try.py "$@"
else else
exec "$base_dir/git_try.py" "$@" PYTHONDONTWRITEBYTECODE=1 exec "$base_dir/git_try.py" "$@"
fi fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment