95 Commits
Author SHA1 Message Date
Linus Groh d10b070281 Ports: Update python3 to 3.15.2 2026-11-01 19:28:03 -05:00
Linus Groh c2eea84496 Ports: Update python3 to 3.15.1 2026-10-24 18:07:54 -04:00
Linus Groh b84170ad70 Ports: Update python3 to 3.15.0 2026-10-13 20:19:25 -04:00
Linus Groh 7c3097d9de Ports: Update python3 to 3.14.7 2026-08-09 09:16:36 -04:00
Linus Groh 6365c369b8 Ports: Update python3 to 3.14.4 2026-04-18 12:51:49 +02:00
Lucas Chollet b0e7120061 Ports: Don't use the fully qualified target triple
`configure` is smart enough to find the correct compiler from a
vendor-less target triple.

This will ease a future target-triple change.
2026-02-28 15:53:12 +01:00
Linus Groh 7c187e79a2 Ports: Update python3 to 3.14.3 2026-02-11 00:56:09 +01:00
Linus Groh 66087b32ce Ports: Update python3 to 3.14.0 2025-11-05 21:43:59 -05:00
Linus Groh b03402707b Ports: Update python3 to 3.13.7 2025-09-03 08:01:01 -04:00
Linus Groh 5309310552 Ports: Update Python to 3.13.5
Released on 2025-06-11.

https://www.python.org/downloads/release/python-315
2025-07-24 15:23:13 -04:00
Linus Groh 697b7316f4 Ports: Update Python to 3.13.3
Released on 2025-04-08.
https://www.python.org/downloads/release/python-3133/
2025-05-10 14:09:05 +02:00
Linus Groh 09900ef68c Ports: Update Python to 3.13.2
Released on 2025-02-04.
https://www.python.org/downloads/release/python-3132/
2025-03-08 16:39:22 -05:00
Linus Groh 315ad73b32 Ports: Update Python to 3.13.1
Released on 2024-12-03.
https://www.python.org/downloads/release/python-3131/
2024-12-19 20:09:02 +01:00
Linus Groh ac3427342b Revert "Ports/python3: Backport gh-126688: Reinit import lock after fork"
This reverts commit a47e63b589.

(It's not a complete revert as I added back two newlines in the
generated ReadMe.md so it matches output for the current patch files.)
2024-12-19 20:09:02 +01:00
Oskar Skog a47e63b589 Ports/python3: Backport gh-126688: Reinit import lock after fork
https://github.com/python/cpython/pull/126765

Closes #25263

Make sure to revert this commit before updating Python.
2024-11-12 22:27:19 -05:00
Linus Groh db73671001 Ports: Update Python to 3.13.0
Released on 2024-10-07.
https://www.python.org/downloads/release/python-3130/
2024-10-25 23:45:47 +02:00
Sönke Holz 591f0feb66 Ports/python: Explicitly disable use of libintl
python would otherwise fail to build if gettext is built first,
as its configure script detects the presence of libintl.h. However,
building with libintl support enabled fails to link.
2024-10-03 12:32:35 +02:00
Linus Groh 6b4c300353 Ports: Update Python to 3.12.4
Released on 2024-06-06.
https://www.python.org/downloads/release/python-3124/
2024-08-02 23:06:23 -04:00
Linus Groh 1e4a78ee04 Ports: Update Python to 3.12.3
Released on 2024-04-09.
https://www.python.org/downloads/release/python-3123/
2024-06-01 18:54:47 +02:00
Linus Groh 872bf51d8f Ports: Update Python to 3.12.2
Released on 2024-02-06.
https://www.python.org/downloads/release/python-3122/
2024-03-04 00:36:42 +01:00
Hugh Davenport 8dc146f9f2 Ports: Add hotkey for Development system menu 2024-01-14 15:16:45 -07:00
Tim Schumacher 592c3a8cb4 Ports: Remove termcap
termcap has last been updated in 2002, and is relying on a lot of
deprecated C99 behavior. All two current users are fine without it,
so just remove it completely.
2023-12-14 16:43:37 +01:00
Linus Groh 499441c747 Ports: Update Python to 3.12.1
Released on 2023-12-08.
https://www.python.org/downloads/release/python-3121/
2023-12-09 01:44:43 +01:00
Romain Chardiny 71d4ab367a Ports/python3: Add support for TCP_NODELAY 2023-11-11 15:05:52 +01:00
Linus Groh 006bf1905b Ports: Update Python to 3.12.0
Released on 2023-10-02.
https://www.python.org/downloads/release/python-3120/

Note that the top-level setup.py script has disappeared completely,
hence the two dropped patches. AFAICT this doesn't regress building any
of the native modules, presumably because the configure script fully
takes care of this now:

```
The necessary bits to build these optional modules were not found:
_dbm                  _gdbm                 _posixshmem
_tkinter              nis                   ossaudiodev
To find the necessary bits, look in configure.ac and config.log.

Checked 111 modules (31 built-in, 73 shared, 1 n/a on serenityos-x86_64,
0 disabled, 6 missing, 0 failed on import)
```
2023-10-03 15:21:40 +02:00
Oskar Skog ebee480bcc Ports/python3: Update patch for configure
- Dropped modifications to `configure.ac`
- "Merged" `0007-Set-name-of-shared-libpython.patch` into
  `0002-Tweak-configure.patch`
- Use `CCSHARED=fPIC`
2023-09-29 09:55:48 +02:00
Tim Schumacher 456fd9f574 Ports: Switch to the new files syntax 2023-09-09 01:06:31 +02:00
Linus Groh ebb7079795 Ports: Update Python to 3.11.5
Released on 2023-08-24.
https://www.python.org/downloads/release/python-3115/
2023-08-30 09:34:43 +02:00
Tim Schumacher fb4db096cb Ports: Remove the filename entry from files 2023-08-08 19:57:43 +02:00
Tim Schumacher 2732545b4c Ports: Ensure that the download filename matches the URL basename
This is a preparation step for removing support for explicitly setting a
download filename entirely.
2023-08-08 19:57:43 +02:00
Tim Schumacher 284fee9e77 Ports: Make files a proper array 2023-08-08 19:57:43 +02:00
Tim Schumacher 89b0a61067 Ports: Remove support for auth_types other than sha256 2023-07-10 13:08:27 +02:00
Fabian Dellwing 16ef5e2631 Ports: Prefer host python3.xx over python3
Previously we relied on the presence of a `python3` binary in the
PATH that has the correct minor version to build the port.

We now first check for the presence of a `python3.minor` binary
in the PATH and use that if found.

This allows users that have multiple Python versions installed
simultaneously (like from a PPA) to build the port without having
to change their main version.
2023-04-22 12:56:36 +01:00
Linus Groh cb79c6bc2f Ports: Add xz to Python dependencies
This makes it build the `_lzma` module, and thus makes `lzma` work.

Thanks to hjalves for the suggestion!
2023-04-15 18:30:24 +02:00
Linus Groh 960b55dd7d Ports: Update Python to 3.11.3
Released on 2023-04-05.
https://www.python.org/downloads/release/python-3113/
2023-04-15 18:10:49 +02:00
Julian Offenhäuser b789debe07 Ports: Build python3 port with shared libraries 2023-02-11 10:41:59 +01:00
Linus Groh edf3aee4df Ports/python3: Update Python to 3.11.0
This now requires `--host` and `--with-build-python` to be passed to the
configure script when cross compiling; the former we simply do like in
many other package.sh scripts as well, the latter we point to `python3`,
which is expected to match the port's version anyway.
2022-10-25 13:11:42 +01:00
Linus Groh 35ec636b5d Ports/python3: Reformat package.sh according to our current guidelines 2022-10-25 13:11:42 +01:00
Humberto Alves fb5a39498a Ports/python3: Make pip work
Add two patches to allow Python's package manager to work on Serenity:

- The first one enables zlib module, which is needed for `ensurepip`
  command;
- The second patch fixes pip downloads, so it's possible to install
  packages from the PyPI repository.
2022-09-02 14:03:24 +01:00
Andrew Kaster dcc0f299be Toolchain+Ports: Install host python into Local/python, not Local/$ARCH
Following the pattern for qemu, mold, and clang, we should install the
host python required to build the python port into its own install tree
rather than forcing it into the GNU compiler's bindir.
2022-06-30 12:29:18 +01:00
Tim Schumacher d426c5a4b2 Ports: Format patches without numbering, commit hash or version number 2022-06-08 17:58:36 +01:00
EWouters 218ade0b8b Ports/python3: Update python3 to version 3.10.4 2022-04-11 19:43:56 -07:00
Linus Groh 6b8358b1f1 Ports: Update Python to 3.10.3
Released on 2022-03-16.
https://www.python.org/downloads/release/python-3103/
2022-03-25 22:27:14 +00:00
Linus Groh ab976667c4 Ports: Update Python to 3.10.2
Released on 2022-01-14.
https://www.python.org/downloads/release/python-3102/
2022-01-30 17:40:39 +00:00
Linus Groh fc02370dc7 Ports: Regenerate patches for python3 2022-01-16 10:32:50 +03:30
Ali Mohammad Pur cdd6d68b2a Ports: Remove some config.sub patches and download a fresh one if needed
All of these patches did the same thing, which is already in upstream
config.sub.
With this change, we need only add `use_fresh_config_sub=true` to
the package.sh file.
Note that this is not done automatically in case the port has a modified
config.sub file.
2022-01-16 10:32:50 +03:30
Andrew Kaster 3ff7b76502 Ports: Don't try to enable PGO for python3 when cross-compiling
The --enable-optimizations flag attempts to enable PGO. Profile-guided
optimization is great in general, but will not work at all when doing a
cross-compile. If there's a more fine-grained flag for generic
optimization levels that doesn't try to do PGO, we should enable that
instead. The flag also enables `-fno-semantic-interposition`, but our
GCC patches enable that by default for -fPIC anyway, so that's not
necessary.
2022-01-08 18:56:29 +01:00
Idan Horowitz ba9a525ba6 Ports: Remove obsolete siginfo_t::si_error Python3 patch 2021-12-22 22:53:56 +02:00
Tim Schumacher 48dc28996d Ports: Update Python patches for the recent signal changes
The old patch to define `HAVE_SIGSET_T` is no longer needed, as we now
have implementations for `sigwaitinfo` and `sigtimedwait`.

Instead, for the same reason, we now have to remove a reference to
`si_errno`, which we haven't implemented yet but is just assumed to be
there.
2021-12-22 11:28:20 +01:00
Linus Groh db610d0cd6 Ports: Restore Python's setup.py patch
It appears that the patch still applied partially, which led to me
believing our changes were fully upstreamed. Only the _uuid module
specific changes didn't apply and are no longer needed, so simply
restore the other ones that I removed.
2021-12-12 00:23:04 +00:00