summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2010-07-18 14:22:10 +0000
committerPauli Virtanen <pav@iki.fi>2010-07-18 14:22:10 +0000
commit73b8b54cdf0057850cefc3b2cb0be4fad8e70fb8 (patch)
tree3cd024beb7295aacd1913d084f2ec43440c90e28 /tools
parent943bae6ce7e587e6fdac4bcd336f607fdc729437 (diff)
downloadnumpy-73b8b54cdf0057850cefc3b2cb0be4fad8e70fb8.tar.gz
ENH: 3K: optionally use lib2to3cache in 2to3 conversion
Diffstat (limited to 'tools')
-rwxr-xr-xtools/py3tool.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/py3tool.py b/tools/py3tool.py
index 7327932c4..5d10f9591 100755
--- a/tools/py3tool.py
+++ b/tools/py3tool.py
@@ -26,6 +26,9 @@ import re
import subprocess
import fnmatch
+if os.environ.get('USE_2TO3CACHE'):
+ import lib2to3cache
+
BASE = os.path.normpath(os.path.join(os.path.dirname(__file__), '..'))
TEMP = os.path.normpath(os.path.join(BASE, '_py3k'))