Skip to content

Commit 0bd888b

Browse files
author
y-p
committed
BUG: fix cython caching in setup.py
1 parent 4d3e34e commit 0bd888b

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

setup.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,15 @@
1212
import warnings
1313

1414
try:
15-
BUILD_CACHE_DIR = os.environ.get('BUILD_CACHE_DIR')
16-
17-
# uncomment to activate the build cache
18-
# BUILD_CACHE_DIR="/tmp/.pandas_build_cache/"
19-
20-
if os.isdir(BUILD_CACHE_DIR):
15+
BUILD_CACHE_DIR = os.environ.get('BUILD_CACHE_DIR',"")
16+
if os.path.isdir(BUILD_CACHE_DIR):
2117
print("--------------------------------------------------------")
2218
print("BUILD CACHE ACTIVATED. be careful, this is experimental.")
2319
print("--------------------------------------------------------")
2420
else:
2521
BUILD_CACHE_DIR = None
2622
except:
27-
pass
23+
BUILD_CACHE_DIR = None
2824

2925
# may need to work around setuptools bug by providing a fake Pyrex
3026
try:

0 commit comments

Comments
 (0)