Commit Graph

29 Commits

Author SHA1 Message Date
Martin Storsjö 0979cfdd38 build-python: Update to Python 3.14.5 2026-06-04 12:38:09 +03:00
Martin Storsjö c737c4a0b6 build-python: Add --with-pic to fix the native static libffi on x86_64
This fixes building python on x86_64 linux after
fabc4571b2.
2026-03-13 14:10:49 +02:00
Martin Storsjö fabc4571b2 build-python: Build the native libffi as a static library only
This fixes importing the _ctypes module, if a shared libffi doesn't
happen to exist on the host system with the right so version.
Since Python 3.12, such a build error ends up failing the build,
while it previously passed silently even if some parts of the build
had failed.
2026-03-13 12:18:30 +02:00
Martin Storsjö f25f2fb3aa build-python: Update to Python 3.13.11 2026-01-19 00:00:37 +02:00
Martin Storsjö 9e00ce96c7 build-python: Install the license files for libffi and python 2026-01-08 11:26:44 +02:00
Martin Storsjö 61044083ab build-python: Bump to Python 3.12.9 2025-04-01 19:42:19 +03:00
Martin Storsjö 867ffad816 build-python: Bump to libffi 3.4.7 2025-04-01 19:42:18 +03:00
Martin Storsjö 5fe69a92ac build-python: Bump to Python 3.12.7 2024-12-10 11:24:43 +02:00
Martin Storsjö fb9fd06216 build-python: Bump to Python 3.11.9 and libffi 3.4.6 2024-06-20 10:57:25 +03:00
Martin Storsjö a78eb49f57 build-python: Configure python with --disable-test-modules
These modules were already manually stripped out from the install,
but we can also skip building them entirely - this gets rid of
30% of the number of lines of log output when building python
(reducing the number of lines from 21539 to 14653 lines, for the
whole of building python for both native and a cross target).
2024-06-20 00:03:39 +03:00
Martin Storsjö c2a38eb71b build-python: Bump to Python 3.11.7 2024-01-31 00:16:10 +02:00
Martin Storsjö d2512dde21 build-python: Bump to the latest version of cpython-mingw
This version fixes a race condition in the build, which in most
cases was benign but in rare cases could successfully build a Python
that would crash at runtime.
2023-12-07 13:33:53 +02:00
Martin Storsjö 13827fe666 build-python: Install a versionless python.exe in addition to python3.exe
This can make it marginally easier to use it, even if the embedded
Python installation isn't that much meant to be used for various
external purposes.
2023-12-07 13:33:53 +02:00
Martin Storsjö 0f24a65373 build-python: Bump to the latest version of Python 3.11.6 from msys2 2023-11-28 00:02:44 +02:00
Martin Storsjö 0f8d5f068f build-python: Bump Python to 3.11.6 2023-10-06 16:34:12 +03:00
Martin Storsjö a711bb4ed0 build-python: Bump libffi to version 3.4.4
This is the latest release version.

This requires a newer version of Autoconf than what is available
out of the box in Ubuntu 20.04.
2023-10-06 16:33:59 +03:00
Martin Storsjö e7238335e7 build-python: Bump to Python 3.11.4
This is the current version packaged in MSYS2.
2023-08-18 22:30:29 +03:00
Martin Storsjö 46215b2510 build-python: Bump to Python 3.10.11 2023-04-27 10:50:36 +03:00
Martin Storsjö 3844ad9a95 build-python: Use $HOST-gcc instead of $HOST-clang for cross compilation
While $HOST-clang is more specific for the use in llvm-mingw,
using the form $HOST-gcc would allow using the same script in
GCC based environments too.
2023-03-11 23:53:10 +02:00
Martin Storsjö d07bb8889b build-python: Bump to Python 3.10.9 2023-01-29 01:09:17 +02:00
Martin Storsjö 3d4e36806a Avoid using the nonstandard "which" command
This command isn't a standard tool; different distributions have
different implementations, and e.g. Fedora doesn't ship it by
default.

Settle on using "command -v $tool >/dev/null" for tests about whether
a tool is available. (We could also use "hash $tool 2>/dev/null" as we
already had in build-all.sh, but settling on using "command -v"
everywhere, for consistency and simplicity.)
2022-08-02 15:17:24 +03:00
Martin Storsjö 9daf8a9b84 build-python: Update to the latest version of cpython-mingw 3.10.5 2022-07-31 01:08:30 +03:00
Martin Storsjö 98f3380bec build-python: Bump to cpython-mingw 3.10.5
This is the version that msys2 currently ships.
2022-06-19 23:10:14 +03:00
Martin Storsjö 3debb07f0f build-python: Bump to the latest version on the mingw-v3.9.10 branch 2022-03-23 13:07:39 +02:00
Martin Storsjö 578afb1a6d build-python: Bump to the latest version on the mingw-v3.9.7 branch
This makes the armv7 build of python work correctly.
2022-02-09 14:02:20 +02:00
Martin Storsjö 7e7344281d build-python: Discard local changes before checking out a new revision
Even if we don't patch cpython-mingw any longer, we still run
autoreconf on it (and libffi), which can cause changes to
committed files. If trying to check out a different version of
the source, this would fail unless the local changes have been
discarded.
2021-11-16 12:37:59 +02:00
Long Nguyen fefa34fd04 build-python: Update to v3.9.7, remove patches
Also add gitignores/dockerignores for directories created during
the python build.
2021-11-15 21:47:55 +02:00
Martin Storsjö 69d3d40f00 build-python: Fix rebuilding with an already checked out directory
After applying patches (with plain 'patch' instead of 'git am'), we
need to reset the tree to be able to check out the targeted version
again.
2021-08-17 11:13:45 +03:00
Long Nguyen 8ff26ac253 Add a script for cross building python 2021-08-16 11:26:37 +03:00