Skip to content

Commit

Permalink
Enable stat4 most of the time
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerbinns committed Aug 31, 2014
1 parent 7d846ea commit eab0024
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/build.rst
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ need to give the flag once and giving a comma seperated list. For example:
+----------------------------------------+--------------------------------------------------------------------------------------+
| build/build_ext flag | Result |
+========================================+======================================================================================+
| | :option:`--enable-all-extensions` | Enables the FTS3/4, RTree and ICU extensions (if *icu-config* is on your path). |
| | :option:`--enable-all-extensions` | Enables the STAT4, FTS3/4, RTree, and ICU extensions if *icu-config* is on your path |
+----------------------------------------+--------------------------------------------------------------------------------------+
| | :option:`--enable=fts3` | Enables the :ref:`full text search extension <ext-fts3>`. |
| | :option:`--enable=fts4` | This flag only helps when using the amalgamation. If not using the |
Expand Down
5 changes: 5 additions & 0 deletions doc/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ Change History
Updated test suite for Python 3.4 unittest garbage collection changes
(:issue:`164`)

Using the :ref:`recommended <recommended_build>` build option of
**--enable-all-extensions** turns on `STAT4
<https://sqlite.org/compile.html#enable_stat4>`__. Windows binaries
include this too.

3.8.5-r1
========

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ def finalize_options(self):
v=beparent.finalize_options(self)

if self.enable_all_extensions:
exts=["fts4", "fts3", "fts3_parenthesis", "rtree"]
exts=["fts4", "fts3", "fts3_parenthesis", "rtree", "stat4"]
if find_in_path("icu-config"):
exts.append("icu")
if not self.enable:
Expand Down Expand Up @@ -603,7 +603,7 @@ def finalize_options(self):
# hopefully future proof test
if "_" not in e.lower() and \
"memsys" not in e.lower() and \
e.lower() not in ("fts4", "fts3", "rtree", "icu", "iotrace", "stat2"):
e.lower() not in ("fts4", "fts3", "rtree", "icu", "iotrace", "stat2", "stat3", "stat4"):
write("Unknown enable "+e, sys.stderr)
raise ValueError("Bad enable "+e)

Expand Down

0 comments on commit eab0024

Please sign in to comment.