Skip to content

Commit

Permalink
--use-system-sqlite-config when using system python
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerbinns committed Sep 9, 2022
1 parent 0255ed7 commit c8ca5a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/megatest.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ def dotest(pyver, logdir, pybin, pylib, workdir, sqlitever, debug):
logf = os.path.abspath(os.path.join(logdir, "buildruntests.txt"))
# this is used to alternate support for full metadata and test --definevalues flags
build_ext_flags="--definevalues SQLITE_ENABLE_COLUMN_METADATA,SQLITE_DEFAULT_CACHE_SIZE=-1" if random.choice((False, True)) else ""
if pyver == "system":
build_ext_flags += " --use-system-sqlite-config"

run(f"""set -e ; cd { workdir } ; ( env LD_LIBRARY_PATH={ pylib } { pybin } -bb -Werror { pyflags } setup.py fetch \
--version={ sqlitever } --all build_test_extension build_ext --inplace --force --enable-all-extensions \
Expand Down

0 comments on commit c8ca5a2

Please sign in to comment.