File tree 4 files changed +42
-24
lines changed
4 files changed +42
-24
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,12 @@ RUN export CMAKE_VERSION=3.18.3 && \
79
79
80
80
81
81
FROM build_base AS build_cpython
82
+ COPY build_scripts/build-sqlite3.sh /build_scripts/
83
+ RUN export SQLITE_AUTOCONF_ROOT=sqlite-autoconf-3340000 && \
84
+ export SQLITE_AUTOCONF_HASH=bf6db7fae37d51754737747aaaf413b4d6b3b5fbacd52bdb2d0d6e5b2edd9aee && \
85
+ export SQLITE_AUTOCONF_DOWNLOAD_URL=https://www.sqlite.org/2020 && \
86
+ manylinux-entrypoint /build_scripts/build-sqlite3.sh
87
+
82
88
COPY build_scripts/*pubkey*.txt /build_scripts/
83
89
COPY build_scripts/build_env.sh /build_scripts/
84
90
COPY build_scripts/build-cpython.sh /build_scripts/
Original file line number Diff line number Diff line change @@ -11,26 +11,6 @@ source $MY_DIR/build_env.sh
11
11
# Get build utilities
12
12
source $MY_DIR /build_utils.sh
13
13
14
- # Install a more recent SQLite3
15
- curl -fsSLO $SQLITE_AUTOCONF_DOWNLOAD_URL /$SQLITE_AUTOCONF_ROOT .tar.gz
16
- check_sha256sum $SQLITE_AUTOCONF_ROOT .tar.gz $SQLITE_AUTOCONF_HASH
17
- tar xfz $SQLITE_AUTOCONF_ROOT .tar.gz
18
- cd $SQLITE_AUTOCONF_ROOT
19
- DESTDIR=/sqlite3 do_standard_install
20
- cd ..
21
- rm -rf $SQLITE_AUTOCONF_ROOT *
22
- rm /sqlite3/usr/local/lib/libsqlite3.a
23
- # Install for build
24
- cp -rf /sqlite3/* /
25
- # Clean-up for runtime
26
- rm -rf /sqlite3/usr/local/bin /sqlite3/usr/local/include /sqlite3/usr/local/lib/pkg-config /sqlite3/usr/local/share
27
- # Install for runtime
28
- mkdir -p /manylinux-rootfs
29
- cp -rf /sqlite3/* /manylinux-rootfs/
30
- # clean-up
31
- rm -rf /sqlite3
32
-
33
-
34
14
# Compile the latest Python releases.
35
15
# (In order to have a proper SSL module, Python is compiled
36
16
# against a recent openssl [see env vars above], which is linked
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # Top-level build script called from Dockerfile
3
+
4
+ # Stop at any error, show all commands
5
+ set -exuo pipefail
6
+
7
+ # Get script directory
8
+ MY_DIR=$( dirname " ${BASH_SOURCE[0]} " )
9
+
10
+ # Get build utilities
11
+ source $MY_DIR /build_utils.sh
12
+
13
+ # Install a more recent SQLite3
14
+ check_var ${SQLITE_AUTOCONF_ROOT}
15
+ check_var ${SQLITE_AUTOCONF_HASH}
16
+ check_var ${SQLITE_AUTOCONF_DOWNLOAD_URL}
17
+ fetch_source ${SQLITE_AUTOCONF_ROOT} .tar.gz ${SQLITE_AUTOCONF_DOWNLOAD_URL}
18
+ check_sha256sum ${SQLITE_AUTOCONF_ROOT} .tar.gz ${SQLITE_AUTOCONF_HASH}
19
+ tar xfz ${SQLITE_AUTOCONF_ROOT} .tar.gz
20
+ pushd ${SQLITE_AUTOCONF_ROOT}
21
+ DESTDIR=/manylinux-rootfs do_standard_install
22
+ popd
23
+ rm -rf ${SQLITE_AUTOCONF_ROOT} ${SQLITE_AUTOCONF_ROOT} .tar.gz
24
+
25
+ # static library is unused, remove it
26
+ rm /manylinux-rootfs/usr/local/lib/libsqlite3.a
27
+
28
+ # Strip what we can
29
+ strip_ /manylinux-rootfs
30
+
31
+ # Install
32
+ cp -rf /manylinux-rootfs/* /
33
+
34
+ # Clean-up for runtime
35
+ rm -rf /manylinux-rootfs/usr/local/bin /manylinux-rootfs/usr/local/include /manylinux-rootfs/usr/local/lib/pkg-config /manylinux-rootfs/usr/local/share
36
+ find -L /manylinux-rootfs -type f -a -not -name ' libsqlite3.so.*' -delete
Original file line number Diff line number Diff line change 3
3
PYTHON_DOWNLOAD_URL=https://www.python.org/ftp/python
4
4
# of the form <maj>.<min>.<rev> or <maj>.<min>.<rev>rc<n>
5
5
CPYTHON_VERSIONS=" 3.5.10 3.6.12 3.7.9 3.8.7 3.9.1"
6
-
7
- SQLITE_AUTOCONF_ROOT=sqlite-autoconf-3340000
8
- SQLITE_AUTOCONF_HASH=bf6db7fae37d51754737747aaaf413b4d6b3b5fbacd52bdb2d0d6e5b2edd9aee
9
- SQLITE_AUTOCONF_DOWNLOAD_URL=https://www.sqlite.org/2020
You can’t perform that action at this time.
0 commit comments