File tree 2 files changed +7
-9
lines changed
2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 3
3
# Master
4
4
5
5
- Sqlite fix:
6
- - Update Python3 base formula
6
+ - Update Python3 and Python2 base formula
7
7
- Update Python formulas 3.6.x, 3.7.x, 3.5.x
8
8
- Test staged binaries on Travis
9
9
Original file line number Diff line number Diff line change @@ -12,14 +12,7 @@ python_version=${BASE^} # this gives us only the filename with version number
12
12
version_number=$( echo " $python_version " | cut -d- -f2) # this returns just X.X.X
13
13
dep_url=https://python.org/ftp/python/${version_number} /${python_version} .tgz
14
14
15
- # shellcheck source=bin/utils
16
- source " $BIN_DIR /steps/sqlite3"
17
-
18
- sqlite3_version
19
- echo " Setting up SQLite3 Headers for $SQLITE3_VERSION "
20
- sqlite3_install " $OUT_PREFIX " " $SQLITE3_VERSION " 1
21
-
22
- echo " Building Python 3..."
15
+ echo " Building ${python_version} ..."
23
16
echo " Pulling from source: ${dep_url} "
24
17
25
18
curl -L " ${dep_url} " | tar xz -C " ${OUT_PREFIX} "
@@ -33,3 +26,8 @@ make install
33
26
# Remove unneeded test directories, similar to the official Docker Python images:
34
27
# https://github.com/docker-library/python
35
28
find " ${OUT_PREFIX} " \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf ' {}' +
29
+
30
+ # Create links to SQLITE headers so Python can call them at runtime
31
+ mkdir -p ${OUT_PREFIX} /include ${OUT_PREFIX} /lib/x86_64-linux-gnu
32
+ cp /usr/include/sqlite3* .h ${OUT_PREFIX} /include
33
+ ln -fs $( realpath /usr/lib/x86_64-linux-gnu/libsqlite3.so) ${OUT_PREFIX} /lib/x86_64-linux-gnu/libsqlite3.so
You can’t perform that action at this time.
0 commit comments