diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2014-11-26 15:41:24 -0500 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2014-11-26 15:42:20 -0500 |
commit | bf2bc0f1755a820823792d5b9dcb01bd8432acb3 (patch) | |
tree | bbc3b1acb4922303a450568e01dbcd1fb4ff904f /SConstruct | |
parent | 1041b7343f3221a21891c9cc14f38b35e6300f48 (diff) | |
download | mongo-bf2bc0f1755a820823792d5b9dcb01bd8432acb3.tar.gz |
Install swig generated python files for the python test suite
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct index 1ec3496d565..248e967872e 100644 --- a/SConstruct +++ b/SConstruct @@ -199,11 +199,19 @@ env.Program("wt", [ LIBS=[wtlib] + wtlibs) if GetOption("swig"): - env.SharedLibrary('_wiredtiger', + swiglib = env.SharedLibrary('_wiredtiger', [ 'lang\python\wiredtiger.i'], SHLIBSUFFIX=".pyd", LIBS=[wtlib]) + copySwig = env.Command( + 'lang/python/wiredtiger/__init__.py', + 'lang/python/wiredtiger.py', + Copy('$TARGET', '$SOURCE')) + env.Depends(copySwig, swiglib) + + env.Install('lang/python/wiredtiger/', swiglib) + # Shim library of functions to emulate POSIX on Windows shim = env.Library("window_shim", ["test/windows/windows_shim.c"]) |