]> granicus.if.org Git - icu/commitdiff
ICU-20062 Set the Python -B flag to inhibit the writing of .pyc files.
authorFredrik Roubert <roubert@google.com>
Mon, 6 Aug 2018 12:22:35 +0000 (14:22 +0200)
committerShane Carr <shane@unicode.org>
Thu, 27 Sep 2018 21:27:38 +0000 (14:27 -0700)
This will prevent littering the source tree with spurious .pyc files.
The potential faster execution when re-running a script that has an
up-to-date .pyc file is negligible.

icu4c/as_is/bomlist.py
icu4c/source/test/depstest/dependencies.py
icu4c/source/test/depstest/depstest.py
icu4c/source/tools/icu-svnprops-check.py
tools/release/c/bomfix.py
tools/scripts/bldicures.py
tools/unicode/c/genprops/misc/ucdcopy.py
tools/unicode/c/genuca/genteststub.py
tools/unicode/py/parsescriptmetadata.py
tools/unicode/py/preparseucd.py

index b606dc86c5ef7ef7fcb07290672e5391d1aae840..ae28c25627d7cc91e6901741710a5d9612d173df 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python -B
 
 # Copyright (C) 2016 and later: Unicode, Inc. and others.
 # License & terms of use: http://www.unicode.org/copyright.html
index 87bbc8cdfb496c9c99020fcf9db9d73e83c24f95..f4e7a7d47517cd599ef66b15175be3d2bd0b8c38 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/python
+#! /usr/bin/python -B
 # -*- coding: utf-8 -*-
 #
 # Copyright (C) 2016 and later: Unicode, Inc. and others.
index 2a542e787074897837d65bb1a25cc797d506aa33..231c6819c6e1c0d2c6844d4fcfddf02197b467fb 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/python
+#! /usr/bin/python -B
 # -*- coding: utf-8 -*-
 #
 # Copyright (C) 2016 and later: Unicode, Inc. and others.
index b0e86b3e88c2bfd6389bd1ce53e7a59755f242cf..313da136884a58c8d83ea9409da2d1fe6dd5c37b 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/python
+#! /usr/bin/python -B
 
 # Copyright (C) 2016 and later: Unicode, Inc. and others.
 # License & terms of use: http://www.unicode.org/copyright.html
index 99c393bdb8f8cbcae49e819b96d8b9bd55511d2f..300fc629e5fb4d31a8dc49199b4e7c84bad9862c 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python -B
 # -*- coding: utf-8 -*-
 
 #
index b7673ef79291d5c549d0a034451e2d4f3f1d2fe4..920c977fc57ce9cae89a1cdf38e005d65d28d5bb 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python -B
 #
 # Copyright (C) 2017 and later: Unicode, Inc. and others.
 # License & terms of use: http://www.unicode.org/copyright.html
index 0bae46ba099407cbc63f1bdb6e68b0d12cf597e3..9c196352caad14e68d687b2f12604bc6813a58bd 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python2.4
+#!/usr/bin/python2.4 -B
 #
 # Copyright (C) 2017 and later: Unicode, Inc. and others.
 # License & terms of use: http://www.unicode.org/copyright.html
index c394cea677e482bc91564390462ed66d3ef84bf3..3708f76d1b517efe6743ad367ed32c8e16625aec 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python -B
 #
 # Copyright (C) 2017 and later: Unicode, Inc. and others.
 # License & terms of use: http://www.unicode.org/copyright.html
index 80b4ac42da768e769f69eeceef00ce51b1c78e8d..626dac3dd630402562f052d661edcf8d12af3306 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python -B
 # -*- coding: utf-8 -*-
 #
 # Copyright (C) 2017 and later: Unicode, Inc. and others.
index d79ae451ac59ee6886a59cb4b6393ca9e2fbcdbf..7850ef00670def5294102c0111313d8fcf32afe1 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python -B
 # -*- coding: utf-8 -*-
 # © 2016 and later: Unicode, Inc. and others.
 # License & terms of use: http://www.unicode.org/copyright.html