mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
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
This commit is contained in:
3
drover
3
drover
@@ -22,5 +22,4 @@ then
|
||||
svn -q up "${base_dir}"
|
||||
fi
|
||||
|
||||
exec python "${base_dir}/drover.py" "$@"
|
||||
|
||||
PYTHONDONTWRITEBYTECODE=1 exec python "${base_dir}/drover.py" "$@"
|
||||
|
||||
@@ -5,5 +5,5 @@
|
||||
|
||||
setlocal
|
||||
set PATH=%~dp0svn;%PATH%
|
||||
|
||||
set PYTHONDONTWRITEBYTECODE=1
|
||||
call python "%~dp0drover.py" %*
|
||||
|
||||
2
gcl
2
gcl
@@ -5,4 +5,4 @@
|
||||
|
||||
base_dir=$(dirname "$0")
|
||||
|
||||
exec python "$base_dir/gcl.py" "$@"
|
||||
PYTHONDONTWRITEBYTECODE=1 exec python "$base_dir/gcl.py" "$@"
|
||||
|
||||
1
gcl.bat
1
gcl.bat
@@ -2,4 +2,5 @@
|
||||
setlocal
|
||||
:: This is required with cygwin only.
|
||||
PATH=%~dp0;%PATH%
|
||||
set PYTHONDONTWRITEBYTECODE=1
|
||||
call python "%~dp0gcl.py" %*
|
||||
|
||||
2
gclient
2
gclient
@@ -7,4 +7,4 @@ base_dir=$(dirname "$0")
|
||||
|
||||
"$base_dir"/update_depot_tools
|
||||
|
||||
exec python "$base_dir/gclient.py" "$@"
|
||||
PYTHONDONTWRITEBYTECODE=1 exec python "$base_dir/gclient.py" "$@"
|
||||
|
||||
4
git-cl
4
git-cl
@@ -16,7 +16,7 @@ OUTPUT="$(uname | grep 'MINGW')"
|
||||
MINGW=$?
|
||||
|
||||
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
|
||||
exec "$base_dir/git_cl.py" "$@"
|
||||
PYTHONDONTWRITEBYTECODE=1 exec "$base_dir/git_cl.py" "$@"
|
||||
fi
|
||||
|
||||
4
git-try
4
git-try
@@ -11,7 +11,7 @@ OUTPUT="$(uname | grep 'MINGW')"
|
||||
MINGW=$?
|
||||
|
||||
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
|
||||
exec "$base_dir/git_try.py" "$@"
|
||||
PYTHONDONTWRITEBYTECODE=1 exec "$base_dir/git_try.py" "$@"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user