Skip to content

Commit

Permalink
BLD: test_perf will read BUILD_CACHE_DIR from .build_cache_dir if it …
Browse files Browse the repository at this point in the history
…exists
  • Loading branch information
y-p committed Mar 27, 2013
1 parent 9807def commit 97db5db
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ pandas/io/*.json
.idea/libraries/sass_stdlib.xml

.idea/pandas.iml
.build_cache_dir
8 changes: 7 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@
import warnings

try:
BUILD_CACHE_DIR = os.environ.get('BUILD_CACHE_DIR',"")
basedir = os.path.dirname(__file__)
dotfile = os.path.join(basedir,".build_cache_dir")
BUILD_CACHE_DIR = ""
if os.path.exists(dotfile):
BUILD_CACHE_DIR = open(dotfile).readline().strip()
BUILD_CACHE_DIR = os.environ.get('BUILD_CACHE_DIR',BUILD_CACHE_DIR)

if os.path.isdir(BUILD_CACHE_DIR):
print("--------------------------------------------------------")
print("BUILD CACHE ACTIVATED. be careful, this is experimental.")
Expand Down

0 comments on commit 97db5db

Please sign in to comment.