_testcapi depends on testcapi_long.h
Thanks Lisandro Dalcin.
diff --git a/setup.py b/setup.py
index 13d0687..985779d 100644
--- a/setup.py
+++ b/setup.py
@@ -447,7 +447,8 @@
# _json speedups
exts.append( Extension("_json", ["_json.c"]) )
# Python C API test module
- exts.append( Extension('_testcapi', ['_testcapimodule.c']) )
+ exts.append( Extension('_testcapi', ['_testcapimodule.c'],
+ depends=['testcapi_long.h']) )
# profilers (_lsprof is for cProfile.py)
exts.append( Extension('_hotshot', ['_hotshot.c']) )
exts.append( Extension('_lsprof', ['_lsprof.c', 'rotatingtree.c']) )