Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit ebab944

Browse files
committed
Update dependencies and add provided cpython lzma test to smoketest
see: https://devguide.python.org/getting-started/setup-building/index.html#linux
1 parent b32fa98 commit ebab944

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

containers/codespaces-linux/.devcontainer/library-scripts/python-debian.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,9 @@ install_from_source() {
215215
fi
216216
echo "(*) Building Python ${PYTHON_VERSION} from source..."
217217
# Install prereqs if missing
218-
check_packages curl ca-certificates gnupg2 tar make gcc libssl-dev zlib1g-dev libncurses5-dev \
219-
libbz2-dev libreadline-dev libxml2-dev xz-utils libgdbm-dev tk-dev dirmngr \
220-
libxmlsec1-dev libsqlite3-dev libffi-dev liblzma-dev uuid-dev
218+
check_packages curl gdb ca-certificates gnupg2 tar make gcc libssl-dev zlib1g-dev libncurses5-dev \
219+
libbz2-dev libreadline-dev libreadline6-dev libxml2-dev xz-utils libgdbm-dev libgdbm-compat-dev tk-dev dirmngr \
220+
libxmlsec1-dev libsqlite3-dev libffi-dev liblzma-dev lzma zma-dev uuid-dev
221221
if ! type git > /dev/null 2>&1; then
222222
apt_get_update_if_needed
223223
apt-get -y install --no-install-recommends git
@@ -249,7 +249,7 @@ install_from_source() {
249249
tar -xzf "/tmp/python-src/${tgz_filename}" -C "/tmp/python-src" --strip-components=1
250250
local config_args=""
251251
if [ "${OPTIMIZE_BUILD_FROM_SOURCE}" = "true" ]; then
252-
config_args="--enable-optimizations"
252+
config_args="--enable-optimizations --enable-framework"
253253
fi
254254
./configure --prefix="${PYTHON_INSTALL_PATH}" --with-ensurepip=install ${config_args}
255255
make -j 8
@@ -281,7 +281,7 @@ export DEBIAN_FRONTEND=noninteractive
281281
# General requirements
282282
check_packages curl ca-certificates gnupg2 tar make gcc libssl-dev zlib1g-dev libncurses5-dev \
283283
libbz2-dev libreadline-dev libxml2-dev xz-utils libgdbm-dev tk-dev dirmngr \
284-
libxmlsec1-dev libsqlite3-dev libffi-dev liblzma-dev uuid-dev
284+
libxmlsec1-dev libsqlite3-dev libffi-dev liblzma-dev lzma uuid-dev
285285

286286

287287
# Install python from source if needed

containers/codespaces-linux/test-project/test.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ cd $(dirname "$0")
33

44
source test-utils.sh codespace
55

6+
echo '---'
7+
which python
8+
echo $PATH
9+
echo '---'
10+
611
# Run common tests
712
checkCommon
813

@@ -33,6 +38,7 @@ check "pydocstyle" pydocstyle --version
3338
check "bandit" bandit --version
3439
check "virtualenv" virtualenv --version
3540

41+
check "lzma cpython test" python /opt/python/3.10.4/lib/python3.10/test/test_lzma.py
3642
check "lzma library included" python -c "import lzma"
3743

3844
# # Check Python packages

0 commit comments

Comments
 (0)