1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
Description: Drop the 'install' target (let dh invoke setup.py, instead)
The original install target invokes setup.py, which doesn't respect
the DESTDIR or other settings required to install python modules for
Debian. We use the debhelper tools, instead.
Author: Markus Wanner <markus@bluegap.ch>
Forwarded: not-needed
Last-Update: 2014-07-06
--- a/Makefile
+++ b/Makefile
@@ -18,20 +18,12 @@
$(OBJS): directories.stamp
-install: python_code
-
sql/$(EXTENSION)--$(EXTVERSION).sql: sql/$(EXTENSION).sql directories.stamp
cp $< $@
preflight-check:
$(srcdir)/preflight-check.sh
-python_code: setup.py
- cp $(VPATH)/setup.py ./setup--$(EXTVERSION).py
- sed -i -e "s/__VERSION__/$(EXTVERSION)-dev/g" ./setup--$(EXTVERSION).py
- $(PYTHON) ./setup--$(EXTVERSION).py install
- rm ./setup--$(EXTVERSION).py
-
release-zip: all
git archive --format zip --prefix=multicorn-$(EXTVERSION)/ --output ./multicorn-$(EXTVERSION).zip HEAD
unzip ./multicorn-$(EXTVERSION).zip
|