Skip to content

Commit

Permalink
ICU-20062 Set the Python -B flag to inhibit the writing of .pyc files.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
roubert authored and sffc committed Sep 27, 2018
1 parent 23389e7 commit 12e2a72
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion icu4c/as_is/bomlist.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion icu4c/source/test/depstest/dependencies.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/python
#! /usr/bin/python -B
# -*- coding: utf-8 -*-
#
# Copyright (C) 2016 and later: Unicode, Inc. and others.
Expand Down
2 changes: 1 addition & 1 deletion icu4c/source/test/depstest/depstest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/python
#! /usr/bin/python -B
# -*- coding: utf-8 -*-
#
# Copyright (C) 2016 and later: Unicode, Inc. and others.
Expand Down
2 changes: 1 addition & 1 deletion icu4c/source/tools/icu-svnprops-check.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion tools/release/c/bomfix.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python -B
# -*- coding: utf-8 -*-

#
Expand Down
2 changes: 1 addition & 1 deletion tools/scripts/bldicures.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion tools/unicode/c/genprops/misc/ucdcopy.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion tools/unicode/c/genuca/genteststub.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion tools/unicode/py/parsescriptmetadata.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python -B
# -*- coding: utf-8 -*-
#
# Copyright (C) 2017 and later: Unicode, Inc. and others.
Expand Down
2 changes: 1 addition & 1 deletion tools/unicode/py/preparseucd.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 12e2a72

Please sign in to comment.