Skip to content
Snippets Groups Projects
Commit 8a281c1d authored by Simon Désaulniers's avatar Simon Désaulniers
Browse files

fallback to setup.py generated install record

parent 71680229
No related branches found
No related tags found
No related merge requests found
if USE_CYTHON if USE_CYTHON
PYTHON_INSTALL_RECORD = $(builddir)/install_record.txt
pybuild.stamp: pybuild.stamp:
LDFLAGS="-L$(top_srcdir)/src/.libs" $(PYTHON) setup.py build_ext --inplace LDFLAGS="-L$(top_srcdir)/src/.libs" $(PYTHON) setup.py build_ext --inplace
echo stamp > pybuild.stamp echo stamp > pybuild.stamp
...@@ -8,15 +10,18 @@ CLEANFILES = pybuild.stamp ...@@ -8,15 +10,18 @@ CLEANFILES = pybuild.stamp
all-local: pybuild.stamp all-local: pybuild.stamp
clean-local: clean-local:
rm -rf $(builddir)/build $(builddir)/*.so rm -rf $(builddir)/build $(builddir)/*.so $(PYTHON_INSTALL_RECORD)
install-exec-local: install-exec-local:
$(PYTHON) setup.py install $(PYTHON) setup.py install --record $(PYTHON_INSTALL_RECORD)
rm -rf $(builddir)/build rm -rf $(builddir)/build
if HAVE_PIP if HAVE_PIP
uninstall-local: uninstall-local:
/usr/bin/yes | $(PIP) uninstall $(PACKAGE) /usr/bin/yes | $(PIP) uninstall $(PACKAGE)
else
uninstall-local:
while read -r file; do rm -rvf $$file ; done <$(PYTHON_INSTALL_RECORD)
endif endif
endif endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment