bt2: by-pass distutils changed file check
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Wed, 11 Apr 2018 21:20:40 +0000 (17:20 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 2 May 2019 04:05:45 +0000 (00:05 -0400)
Changes made to a SWIG interface file (.i) that is included in
native_bt.i would not trigger rebuilding of the extension on `make`
as the main source file (native_bt.i) has not changed.

The Makefile is already tracking when files changed and need to be
recompiled so we can simply bypass the setup.py checks by using the
--force flag.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
bindings/python/bt2/Makefile.am

index 9474ebb3b14613d59e88a5da415ddd4e432eea69..96f3ccae45d3f86dff514d9a93a4f41a86bd7cb0 100644 (file)
@@ -80,8 +80,8 @@ copy-static-deps.stamp: $(STATIC_BINDINGS_DEPS)
        touch $@
 
 build-python-bindings.stamp: copy-static-deps.stamp $(GENERATED_BINDINGS_DEPS)
-       $(BUILD_FLAGS) $(PYTHON) $(builddir)/setup.py build_ext --swig "$(SWIG)"
-       $(BUILD_FLAGS) $(PYTHON) $(builddir)/setup.py build
+       $(BUILD_FLAGS) $(PYTHON) $(builddir)/setup.py build_ext --force --swig "$(SWIG)"
+       $(BUILD_FLAGS) $(PYTHON) $(builddir)/setup.py build --force
        touch $@
 
 install-exec-local: build-python-bindings.stamp
This page took 0.025791 seconds and 4 git commands to generate.