From 14c15f4dd8ed272380a8fb6101ec0ce318ff3084 Mon Sep 17 00:00:00 2001 From: Casey Faist Date: Mon, 30 Sep 2019 11:57:17 -0700 Subject: [PATCH] create symlinks for python3 formula to sqlite --- builds/runtimes/python3 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/builds/runtimes/python3 b/builds/runtimes/python3 index 0638218..5e5b290 100755 --- a/builds/runtimes/python3 +++ b/builds/runtimes/python3 @@ -45,4 +45,9 @@ find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm - # Remove spare / LOCATION=${OUT_PREFIX%?} +# Create links to SQLITE headers so Python can call them at runtime +mkdir -p ${OUT_PREFIX}/include ${OUT_PREFIX}/lib/x86_64-linux-gnu +cp /usr/include/sqlite3*.h ${OUT_PREFIX}/include +ln -fs $(realpath /usr/lib/x86_64-linux-gnu/libsqlite3.so) ${OUT_PREFIX}/lib/x86_64-linux-gnu/libsqlite3.so + ln $LOCATION/bin/python3 $LOCATION/bin/python