1 |
pacho 11/07/05 19:37:01 |
2 |
|
3 |
Added: planner-0.14.5-find-python.patch |
4 |
Log: |
5 |
Find python in a faster way, bug #344231, upstream bug #654044. Thanks a lot to Arfrever Frehtes Taifersar Arahesis and Ed Catmur for their help. |
6 |
|
7 |
(Portage version: 2.1.10.3/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 app-office/planner/files/planner-0.14.5-find-python.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/planner/files/planner-0.14.5-find-python.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/planner/files/planner-0.14.5-find-python.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: planner-0.14.5-find-python.patch |
16 |
=================================================================== |
17 |
--- acinclude.m4.old 2011-07-05 14:33:18.000000000 +0200 |
18 |
+++ acinclude.m4 2011-07-05 14:34:23.000000000 +0200 |
19 |
@@ -85,14 +85,8 @@ |
20 |
|
21 |
# Check for Python library path |
22 |
AC_MSG_CHECKING([for Python library path]) |
23 |
- python_path=`echo $PYTHON | sed "s,/bin.*$,,"` |
24 |
- for i in "$python_path/lib/python$PYTHON_VERSION/config/" "$python_path/lib/python$PYTHON_VERSION/" "$python_path/lib/python/config/" "$python_path/lib/python/" "$python_path/" ; do |
25 |
- python_path=`find $i -type f -name libpython$PYTHON_VERSION.* -print | sed "1q"` |
26 |
- if test -n "$python_path" ; then |
27 |
- break |
28 |
- fi |
29 |
- done |
30 |
- python_path=`echo $python_path | sed "s,/libpython.*$,,"` |
31 |
+ python_path=`$PYTHON -c 'import distutils.sysconfig; \ |
32 |
+ print(distutils.sysconfig.get_python_inc())'` |
33 |
AC_MSG_RESULT([$python_path]) |
34 |
if test -z "$python_path" ; then |
35 |
AC_MSG_ERROR([cannot find Python library path]) |