File: .travis_deps.sh

package info (click to toggle)
peewee 3.13.1+dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 2,848 kB
  • sloc: python: 32,191; makefile: 126; ansic: 109
file content (41 lines) | stat: -rwxr-xr-x 1,033 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash

setup_sqlite_deps() {
  wget https://www.sqlite.org/src/tarball/sqlite.tar.gz
  tar xzf sqlite.tar.gz
  cd sqlite/
  export CFLAGS="-DSQLITE_ENABLE_FTS3 \
    -DSQLITE_ENABLE_FTS3_PARENTHESIS \
    -DSQLITE_ENABLE_FTS4 \
    -DSQLITE_ENABLE_FTS5 \
    -DSQLITE_ENABLE_JSON1 \
    -DSQLITE_ENABLE_LOAD_EXTENSION \
    -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT \
    -DSQLITE_TEMP_STORE=3 \
    -DSQLITE_USE_URI \
    -O2 \
    -fPIC"
  export PREFIX="/usr/local"
  LIBS="-lm" ./configure \
    --disable-tcl \
    --enable-shared \
    --enable-tempstore=always \
    --prefix="$PREFIX"
  make && sudo make install

  cd ext/misc/

  # Build the transitive closure extension and copy shared library.
  gcc -fPIC -O2 -lsqlite3 -shared closure.c -o closure.so
  sudo cp closure.so /usr/local/lib

  # Build the lsm1 extension and copy shared library.
  cd ../lsm1
  export CFLAGS="-fPIC -O2"
  TCCX="gcc -fPIC -O2" make lsm.so
  sudo cp lsm.so /usr/local/lib
}

if [ -n "$PEEWEE_TEST_BUILD_SQLITE" ]; then
  setup_sqlite_deps
fi