File: 10-python.patch

package info (click to toggle)
brltty 6.8-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 35,736 kB
  • sloc: ansic: 150,440; java: 13,484; sh: 9,667; xml: 5,702; tcl: 2,634; makefile: 2,333; awk: 713; lisp: 366; python: 321; ml: 301
file content (23 lines) | stat: -rw-r--r-- 988 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: adjust Makefile to build Python bindings correctly
 Include Python make fules and add build options.
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
---
 Bindings/Python/Makefile.in |    2 ++
 1 file changed, 2 insertions(+)

--- a/Bindings/Python/Makefile.in
+++ b/Bindings/Python/Makefile.in
@@ -63,10 +63,12 @@ constants.auto.pyx: $(CONSTANTS_DEPENDEN
 doc: $(PYTHON_API)
 	LD_PRELOAD=$(API_LIB) "$(PYTHON)" $(SRC_DIR)/mkdoc.py $(PYTHON_MODULE)
 
+-include /usr/share/python3/python.mk
 install: all
 	set -- $(V_setup) install --skip-build --record "$(INSTALLED_FILES)"; \
 	[ -z "$(PYTHON_DESTDIR)" ] || set -- "$${@}" --root "$(PYTHON_DESTDIR)"; \
 	[ -z "$(PYTHON_PREFIX)" ] || set -- "$${@}" --prefix "$(PYTHON_PREFIX)"; \
+	set -- "$${@}" $(py_setup_install_args); \
 	"$(PYTHON)" ./setup.py "$${@}"
 	[ "@host_os@" != "mingw32" ] || "$(PYTHON)" ./setup.py $(V_setup) bdist_wheel --skip-build                    
 	-rm -f -r -- Brlapi.egg-info