BIND 10 #2939: check for python sqlite3 module

BIND 10 Development do-not-reply at isc.org
Wed May 1 16:25:58 UTC 2013


#2939: check for python sqlite3 module
-------------------------------------+-------------------------------------
            Reporter:  jreed         |                        Owner:
                Type:  defect        |  UnAssigned
            Priority:  medium        |                       Status:
           Component:  build system  |  reviewing
            Keywords:                |                    Milestone:  New
           Sensitive:  0             |  Tasks
         Sub-Project:  DNS           |                   Resolution:
Estimated Difficulty:  0             |                 CVSS Scoring:
         Total Hours:  0             |              Defect Severity:  N/A
                                     |  Feature Depending on Ticket:
                                     |          Add Hours to Ticket:  0
                                     |                    Internal?:  0
-------------------------------------+-------------------------------------
Changes (by jreed):

 * status:  new => reviewing


Comment:

 This works for me:

 {{{
 $ cat m4macros/ax_python_sqlite3.m4
 dnl @synopsis AX_PYTHON_SQLITE3
 dnl
 dnl Test for the Python sqlite3 module used by BIND10's datasource
 dnl

 AC_DEFUN([AX_PYTHON_SQLITE3], [

 # Check for the python sqlite3 module
 AC_MSG_CHECKING(for python sqlite3 module)
 if "$PYTHON" -c 'import sqlite3' 2>/dev/null ; then
     AC_MSG_RESULT(ok)
 else
     AC_MSG_RESULT(missing)
     AC_MSG_ERROR([Missing sqlite3 python module.])
 fi

 ])dnl AX_PYTHON_SQLITE3
 }}}

 {{{
 --- a/configure.ac
 +++ b/configure.ac
 @@ -388,7 +388,8 @@ In this case we will continue, but naming of python
 processe
      fi
  fi

 -# TODO: check for _sqlite3.py module
 +# check for _sqlite3.py module
 +AX_PYTHON_SQLITE3
 }}}

-- 
Ticket URL: <http://bind10.isc.org/ticket/2939#comment:1>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list