Verified Commit b096b32e authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame 🎃
Browse files

Bug 40487: Bump Python version to 3.11.3

Debian Stretch's Python version is still too old for some of the
projects we need to build under it.
So, since we needed to review the Python options we use anyway, we
decided also to update it to a much more recent version.
parent 85031e91
Loading
Loading
Loading
Loading
+1023 B (5.2 KiB)

File changed.

No diff preview for this file type.

+6 −1
Original line number Diff line number Diff line
#!/bin/bash
[% c("var/set_default_env") -%]

[% IF c("var/linux") -%]
  [% pc(c('var/compiler'), 'var/setup', { compiler_tarfile => c('input_files_by_name/' _ c('var/compiler')) }) %]
[% END -%]

distdir=/var/tmp/dist/[% project %]
mkdir -p $distdir
tar xf [% c('input_files_by_name/python') %]
cd Python-[% c('version') %]
./configure --prefix=$distdir
./configure --prefix=$distdir --enable-optimizations
make -j[% c("num_procs") %]
make prefix=$distdir install
cd /var/tmp/dist
+9 −3
Original line number Diff line number Diff line
# vim: filetype=yaml sw=2
version: 3.6.8
version: 3.11.3
filename: 'python-[% c("var/build_id") %].tar.gz'
container:
  use_container: 1
@@ -8,9 +8,12 @@ var:
    - xz-utils
    - build-essential
    - python-all
    - zlib1g-dev
    - libssl-dev
    - libbz2-dev
    - libffi-dev
    - libncurses-dev
    - libsqlite3-dev
    - libssl-dev
    - zlib1g-dev

  setup: |
    mkdir -p /var/tmp/dist
@@ -24,3 +27,6 @@ input_files:
    gpg_keyring: python.gpg
    sig_ext: asc
    file_gpg_id: 1
  - name: '[% c("var/compiler") %]'
    project: '[% c("var/compiler") %]'
    enable: '[% c("var/linux") %]'