File: drop-install-target.diff

package info (click to toggle)
postgresql-multicorn 1.4.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,244 kB
  • sloc: ansic: 3,324; python: 2,258; sql: 751; makefile: 259; sh: 81
file content (31 lines) | stat: -rw-r--r-- 1,001 bytes parent folder | download | duplicates (3)
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
@@ -19,20 +19,12 @@ directories.stamp:
 
 $(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 $(srcdir)/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