Bug 6448 says the embedded Python stuff does not really work.
authormorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 20 Jan 2012 03:20:35 +0000 (03:20 +0000)
committermorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 20 Jan 2012 03:20:35 +0000 (03:20 +0000)
And if I run Valgrind with Python enabled, I get pages of errors related to it.

So: disable Python by default.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40602 f5534014-38df-0310-8fa8-9805f1628bb7

CMakeLists.txt
CMakeOptions.txt
configure.in

index 2c7bc929ed0c79776baf2b3424691b6d586d05b2..bbbaffa7e944e3982f1cabe90027d6a0135fde35 100644 (file)
@@ -228,7 +228,7 @@ endif()
 # - set HAVE_XXX
 
 #The minimum package list
-set(PACKAGELIST GLIB2 GMODULE2 GTHREAD2 M LEX YACC Perl SH PythonInterp)
+set(PACKAGELIST GLIB2 GMODULE2 GTHREAD2 M LEX YACC Perl SH)
 set(GLIB2_FIND_REQUIRED)
 set(GLIB2_MIN_VERSION 2.14.0)
 set(GTHREAD2_REQUIRED)
@@ -338,7 +338,7 @@ endforeach()
 #packaging
 include(CPackConfig.txt)
 
-if(HAVE_LIBPYTHON)
+if(PYTHON_FOUND)
        set(HAVE_PYTHON 1)
        set(PYTHON_DIR "${CMAKE_INSTALL_PREFIX}/lib/wireshark/python/${CPACK_PACKAGE_VERSION}")
 endif()
index 7f587378b5eede9371de617c1ad28ce6fb519006..86076346d41e1226ce4d7dddc337cd44e551b2f7 100644 (file)
@@ -36,7 +36,7 @@ option(ENABLE_ADNS       "Build with adns support" ON)
 option(ENABLE_PORTAUDIO  "Build with portaudio support" ON)
 option(ENABLE_ZLIB       "Build with zlib compression support" ON)
 option(ENABLE_LUA        "Build with lua dissector support" ON)
-option(ENABLE_PYTHON     "Build with python dissector support" ON)
+option(ENABLE_PYTHON     "Build with python dissector support" OFF)
 option(ENABLE_SMI        "Build with smi snmp support" ON)
 option(ENABLE_GNUTLS     "Build with GNU TLS support" ON)
 option(ENABLE_GCRYPT     "Build with GNU crypto support" ON)
index 7484e81e8507e0670eb737fcbb6d9f3826045ecd..73ebc2aac1bffde177ca84b9a137c1f1fd9ca632 100644 (file)
@@ -1620,7 +1620,7 @@ AC_MSG_CHECKING(whether to use the Python interpreter for scripting)
 
 AC_ARG_WITH(python,
     AC_HELP_STRING( [--with-python@<:@=DIR@:>@],
-                    [use Python interpreter (installed in DIR, if supplied) @<:@default=yes, if available@:>@ (EXPERIMENTAL)]),
+                    [use Python interpreter (installed in DIR, if supplied) @<:@default=no@:>@ (EXPERIMENTAL)]),
 [
        pythondir='${libdir}/wireshark/python/${VERSION}'
        if test "x$withval" = "xno"
@@ -1634,12 +1634,11 @@ AC_ARG_WITH(python,
                pythondir="$withval"
        fi
 ],[
+       # By default (user didn't explicitly enable Python), don't enable
+       # Python support.
        #
-       # Use the embeddable Python interpreter if it's present,
-       # otherwise don't.
-       #
-       want_pythin=ifavailable
-       pythondir='${libdir}/wireshark/python/${VERSION}'
+       want_python=no
+       #pythondir='${libdir}/wireshark/python/${VERSION}'
 ])
 if test "x$want_python" = "xno" ; then
         AC_MSG_RESULT(no)