summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--cmake/FindPython.cmake4
-rw-r--r--configure.in2
3 files changed, 6 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 310e93ca8..d02f5973f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,7 @@
WeeChat ChangeLog
=================
Sébastien Helleu <flashcode@flashtux.org>
-v0.3.9-dev, 2012-07-15
+v0.3.9-dev, 2012-07-17
Version 0.3.9 (under dev!)
@@ -46,6 +46,8 @@ Version 0.3.9 (under dev!)
* irc: reallow names beginning with "#" for servers
* lua: support of lua 5.2
* lua: fix crash when unloading a script without pointer to interpreter
+* python: fix detection of python (first try "python2.x" and then "python")
+ (bug #36835)
* python: fix crash when unloading a script without pointer to interpreter
* relay: fix freeze when writing on relay socket (use non-blocking sockets in
relay for irc and weechat protocols) (bug #36655)
diff --git a/cmake/FindPython.cmake b/cmake/FindPython.cmake
index d1481e7b9..884c492c6 100644
--- a/cmake/FindPython.cmake
+++ b/cmake/FindPython.cmake
@@ -34,7 +34,7 @@ IF(PYTHON_FOUND)
ENDIF(PYTHON_FOUND)
FIND_PROGRAM(PYTHON_EXECUTABLE
- NAMES python python2.7 python2.6 python2.5 python2.4 python2.3 python2.2
+ NAMES python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python
PATHS /usr/bin /usr/local/bin /usr/pkg/bin
)
@@ -65,7 +65,7 @@ IF(PYTHON_EXECUTABLE)
)
FIND_LIBRARY(PYTHON_LIBRARY
- NAMES python python2.7 python2.6 python2.5 python2.4 python2.3 python2.2
+ NAMES python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python
PATHS ${PYTHON_POSSIBLE_LIB_PATH}
)
diff --git a/configure.in b/configure.in
index a0b8a9609..c0129bdb0 100644
--- a/configure.in
+++ b/configure.in
@@ -459,7 +459,7 @@ fi
PYTHON_VERSION=
if test "x$enable_python" = "xyes" ; then
- AC_PATH_PROGS(PYTHON, python python2.7 python2.6 python2.5 python2.4 python2.3 python2.2)
+ AC_PATH_PROGS(PYTHON, python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python)
if test -z $PYTHON ; then
AC_MSG_WARN([
*** Python must be installed on your system but python interpreter couldn't be found in path.