summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2017-02-08 11:27:24 +0100
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2017-02-08 11:31:45 +0100
commit03c3e5b5043cc8cba9aceeb8641d497edd1be7cf (patch)
treeb3906674239d61c5c6875bd3cb98e8f7505142b3
parent3b26f7643d39f4b7a00a96c160dc9bd13722f14c (diff)
downloadastra-03c3e5b5043cc8cba9aceeb8641d497edd1be7cf.tar.gz
astra-03c3e5b5043cc8cba9aceeb8641d497edd1be7cf.tar.bz2
astra-03c3e5b5043cc8cba9aceeb8641d497edd1be7cf.tar.xz
astra-03c3e5b5043cc8cba9aceeb8641d497edd1be7cf.zip
Clean up symlink after failed python build
-rw-r--r--build/linux/Makefile.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/linux/Makefile.in b/build/linux/Makefile.in
index 3894a8a..371b656 100644
--- a/build/linux/Makefile.in
+++ b/build/linux/Makefile.in
@@ -311,7 +311,7 @@ py: libastra.la
# TODO: Avoid writing into source dir
ln -s $(abs_top_builddir)/.libs/$(SONAME) $(srcdir)/../../python/astra
# Note: setting CC to CXX is intentional. Python uses CC for compilation even if input is C++.
- cd $(srcdir)/../../python; ASTRA_INSTALL_LIBRARY_AS_DATA=$(PYPKGDATA) CXX="${CXX}" CC="${CXX}" CPPFLAGS="${PYCPPFLAGS}" LDFLAGS='${PYLDFLAGS}' $(PYTHON) builder.py build --build-base=$(abs_top_builddir)/python/build
+ (cd $(srcdir)/../../python; ASTRA_INSTALL_LIBRARY_AS_DATA=$(PYPKGDATA) CXX="${CXX}" CC="${CXX}" CPPFLAGS="${PYCPPFLAGS}" LDFLAGS='${PYLDFLAGS}' $(PYTHON) builder.py build --build-base=$(abs_top_builddir)/python/build) || (rm $(srcdir)/../../python/astra/$(SONAME); false)
rm $(srcdir)/../../python/astra/$(SONAME)
endif