File: python-multiarch-header-path.patch

package info (click to toggle)
keybinder 0.3.1-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,880 kB
  • sloc: sh: 11,397; ansic: 602; makefile: 151; python: 10
file content (17 lines) | stat: -rw-r--r-- 811 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Define python multiarch header include paths
 Use python-config to get the multiarch header include paths
Author: Micah Gersten <micahg@ubuntu.com>

Index: keybinder/m4/python.m4
===================================================================
--- keybinder.orig/m4/python.m4	2015-11-08 13:12:12.785838096 -0500
+++ keybinder/m4/python.m4	2015-11-08 13:12:12.785838096 -0500
@@ -45,7 +45,7 @@
 dnl deduce PYTHON_INCLUDES
 py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
 py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
-PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
+PYTHON_INCLUDES=`$PYTHON-config --includes`
 if test "$py_prefix" != "$py_exec_prefix"; then
   PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
 fi