Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docker/build_scripts/build-cpython.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ fi
# do not change the default for user built extension (yet?)
./configure \
CFLAGS_NODIST="${MANYLINUX_CFLAGS} ${MANYLINUX_CPPFLAGS} ${CFLAGS_EXTRA}" \
LDFLAGS_NODIST="${MANYLINUX_LDFLAGS}" \
--prefix=${PREFIX} --disable-shared --with-ensurepip=no > /dev/null
LDFLAGS_NODIST="${MANYLINUX_LDFLAGS} -Wl,--rpath=${PREFIX}/lib" \
--prefix=${PREFIX} --enable-shared --with-ensurepip=no > /dev/null
make > /dev/null
make install > /dev/null
popd
Expand Down
7 changes: 0 additions & 7 deletions docker/build_scripts/finalize-python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,4 @@
# Stop at any error, show all commands
set -exuo pipefail

# most people don't need libpython*.a, and they're many megabytes.
# compress them all together for best efficiency
pushd /opt/_internal
XZ_OPT=-9e tar -cJf static-libs-for-embedding-only.tar.xz cpython-*/lib/libpython*.a
popd
find /opt/_internal -name '*.a' -print0 | xargs -0 rm -f

hardlink -cv /opt/_internal