From bf2bc0f1755a820823792d5b9dcb01bd8432acb3 Mon Sep 17 00:00:00 2001 From: Mark Benvenuto Date: Wed, 26 Nov 2014 15:41:24 -0500 Subject: Install swig generated python files for the python test suite --- SConstruct | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'SConstruct') 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"]) -- cgit v1.2.1