Skip to content

Commit 97db5db

Browse files
author
y-p
committed
BLD: test_perf will read BUILD_CACHE_DIR from .build_cache_dir if it exists
1 parent 9807def commit 97db5db

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,4 @@ pandas/io/*.json
3333
.idea/libraries/sass_stdlib.xml
3434

3535
.idea/pandas.iml
36+
.build_cache_dir

setup.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,13 @@
1212
import warnings
1313

1414
try:
15-
BUILD_CACHE_DIR = os.environ.get('BUILD_CACHE_DIR',"")
15+
basedir = os.path.dirname(__file__)
16+
dotfile = os.path.join(basedir,".build_cache_dir")
17+
BUILD_CACHE_DIR = ""
18+
if os.path.exists(dotfile):
19+
BUILD_CACHE_DIR = open(dotfile).readline().strip()
20+
BUILD_CACHE_DIR = os.environ.get('BUILD_CACHE_DIR',BUILD_CACHE_DIR)
21+
1622
if os.path.isdir(BUILD_CACHE_DIR):
1723
print("--------------------------------------------------------")
1824
print("BUILD CACHE ACTIVATED. be careful, this is experimental.")

0 commit comments

Comments
 (0)