python-2.7-103-optional-sqlite.patch 682 B

12345678910111213141516171819202122232425262728
  1. Add option to disable the sqlite3 module
  2. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  3. ---
  4. configure.in | 9 +++++++++
  5. 1 file changed, 9 insertions(+)
  6. Index: Python-2.7.2/configure.in
  7. ===================================================================
  8. --- Python-2.7.2.orig/configure.in
  9. +++ Python-2.7.2/configure.in
  10. @@ -2407,6 +2407,15 @@
  11. esac])
  12. fi
  13. +AC_SUBST(SQLITE3)
  14. +AC_ARG_ENABLE(sqlite3,
  15. + AS_HELP_STRING([--disable-sqlite3], [disable sqlite3]),
  16. + [ SQLITE3="${enableval}" ], [ SQLITE3=yes ])
  17. +
  18. +if test "$SQLITE3" = "no" ; then
  19. + DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _sqlite3"
  20. +fi
  21. +
  22. AC_SUBST(PYDOC)
  23. AC_ARG_ENABLE(pydoc,