Skip to content

Commit 14c15f4

Browse files
committed
create symlinks for python3 formula to sqlite
1 parent 9bd5fa7 commit 14c15f4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

builds/runtimes/python3

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,9 @@ find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -
4545
# Remove spare /
4646
LOCATION=${OUT_PREFIX%?}
4747

48+
# Create links to SQLITE headers so Python can call them at runtime
49+
mkdir -p ${OUT_PREFIX}/include ${OUT_PREFIX}/lib/x86_64-linux-gnu
50+
cp /usr/include/sqlite3*.h ${OUT_PREFIX}/include
51+
ln -fs $(realpath /usr/lib/x86_64-linux-gnu/libsqlite3.so) ${OUT_PREFIX}/lib/x86_64-linux-gnu/libsqlite3.so
52+
4853
ln $LOCATION/bin/python3 $LOCATION/bin/python

0 commit comments

Comments
 (0)