Commit graph

31 commits

Author SHA1 Message Date
Python Maint
5cf9f2e9e5 Rebuilt for Python 3.13 2024-06-06 18:27:18 +02:00
Python Maint
a843455610 Bootstrap for Python 3.13 2024-06-06 16:08:25 +02:00
Karolina Surma
3aedd5cc92 Fedora 38 is EOL, always build with rpmwheels 2024-06-06 11:54:58 +02:00
Karolina Surma
e2f294c9e2 Keep SOURCE_DATE_EPOCH set 2024-06-06 11:54:58 +02:00
Karolina Surma
fe95321993 Skip test_signal for now 2024-06-06 11:54:58 +02:00
Miro Hrončok
db3aa2889c Skip test_gdb for now 2024-06-06 08:51:00 +02:00
Miro Hrončok
7b82077f49 Update to Python 3.13.0b2 2024-06-06 01:32:42 +02:00
Karolina Surma
1c24374362 Update to Python 3.13.0b1 2024-05-10 13:15:38 +02:00
Miro Hrončok
0898154cc9 Build Python with -O3
https://fedoraproject.org/wiki/Changes/Python_built_with_gcc_O3
2024-05-09 15:06:13 +02:00
Miro Hrončok
c686992b6c Require expat >= 2.6 to prevent errors when creating venvs with older expat
The code in CPython uses XML_SetReparseDeferralEnabled when expat is >= 2.6 during the build.
However, when users upgrade Python independently on the expat package,
they may have expat 2.5 installed and see errors like:

    $ python3.1X -m venv venv
    Error: Command '['venv/bin/python3.1X', '-m', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.

    $ venv/bin/python3.1X -m ensurepip --upgrade --default-pip
    Traceback (most recent call last):
      ...
      File "/tmp/.../pip-24.0-py3-none-any.whl/pip/_internal/commands/install.py", line 15, in <module>
        from pip._internal.cli.req_command import (
        ...<3 lines>...
        )
      File "/tmp/.../pip-24.0-py3-none-any.whl/pip/_internal/cli/req_command.py", line 21, in <module>
        from pip._internal.index.package_finder import PackageFinder
      File "/tmp/.../pip-24.0-py3-none-any.whl/pip/_internal/index/package_finder.py", line 30, in <module>
        from pip._internal.req import InstallRequirement
      File "/tmp/.../pip-24.0-py3-none-any.whl/pip/_internal/req/__init__.py", line 8, in <module>
        from .req_install import InstallRequirement
      File "/tmp/.../pip-24.0-py3-none-any.whl/pip/_internal/req/req_install.py", line 40, in <module>
        from pip._internal.operations.install.wheel import install_wheel
      File "/tmp/.../pip-24.0-py3-none-any.whl/pip/_internal/operations/install/wheel.py", line 39, in <module>
        from pip._vendor.distlib.scripts import ScriptMaker
      File "/tmp/.../pip-24.0-py3-none-any.whl/pip/_vendor/distlib/scripts.py", line 16, in <module>
        from .compat import sysconfig, detect_encoding, ZipFile
      File "/tmp/.../pip-24.0-py3-none-any.whl/pip/_vendor/distlib/compat.py", line 81, in <module>
        import xmlrpc.client as xmlrpclib
      File "/usr/lib64/python3.1X/xmlrpc/client.py", line 138, in <module>
        from xml.parsers import expat
      File "/usr/lib64/python3.1X/xml/parsers/expat.py", line 4, in <module>
        from pyexpat import *
    ImportError: /usr/lib64/python3.1X/lib-dynload/pyexpat.cpython-31X-x86_64-linux-gnu.so: undefined symbol: XML_SetReparseDeferralEnabled
    Traceback (most recent call last):
      ...
    subprocess.CalledProcessError: Command '['venv/bin/python3.1X', '-W', 'ignore::DeprecationWarning', '-c', '\nimport runpy\nimport sys\nsys.path = [\'/tmp/.../pip-24.0-py3-none-any.whl\'] + sys.path\nsys.argv[1:] = [\'install\', \'--no-cache-dir\', \'--no-index\', \'--find-links\', \'/tmp/...\', \'--upgrade\', \'pip\']\nrunpy.run_module("pip", run_name="__main__", alter_sys=True)\n']' returned non-zero exit status 1.

Thanks to Markus Falb for discovering this problem.

https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org/thread/7XHGWHBQDNFKNGSZTP44SSD6PQKZPG6C/
2024-04-18 00:58:28 +02:00
Karolina Surma
fa7c4e897f Declare the bundled mimalloc and update license tags accordingly
mimalloc provide is only declared in -libs subpackage, although
it's present also in -devel, -debug, -freethreading and
-freethreading-debug. All of those effectively require -libs, so
duplicating the provide accross all those was deemed unnecessary.
2024-04-12 13:00:08 +02:00
Karolina Surma
b95623ede3 Update to Python 3.13.0a6
Patch 00371 was removed as it no longer applies after
33da0e844c
We need to monitor the freeipa situation and rework the patch entirely in
case it is still needed.
See also https://bugzilla.redhat.com/2133853
2024-04-12 08:31:46 +02:00
Karolina Surma
c1d785c5ae Remove internal usage of @LIBPYTHON@ 2024-03-21 09:46:36 +01:00
Miro Hrončok
4161fb48da Move all test modules to the test subpackage
- __phello__
  - _xxinterpqueues
  - _xxsubinterpreters
  - xxlimited
  - xxlimited_35
  - xxsubtype

Source: https://github.com/python/cpython/blob/v3.13.0a5/Tools/build/generate_stdlib_module_names.py#L21
2024-03-13 12:42:47 +01:00
Miro Hrončok
0697d12bda Update to Python 3.13.0a5 2024-03-13 12:06:12 +01:00
Karolina Surma
c9e9f5fd4d Fix crash involving exhausted list operator
Additionally don't generate sbom (causes build to fail),
backport an accidentally lost _PyCFunctionFastWithKeywords name.
2024-02-21 10:43:57 +01:00
Karolina Surma
1ac5b6981e Update to Python 3.13.0a4 2024-02-16 10:14:00 +01:00
Fedora Release Engineering
08e077563c Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-26 13:33:15 +00:00
Miro Hrončok
f26990ceb8 Enable python3.13-freethreading and python3.13-freethreading-debug on ppc64le 2024-01-19 22:54:14 +01:00
Karolina Surma
1fd7efe735 Document how to find the bundled wheels versions 2024-01-19 12:29:04 +01:00
Karolina Surma
f6915d7e27 Update to Python 3.13.0a3 2024-01-19 12:29:01 +01:00
Miro Hrončok
864b42948f Update the comment for the bootstrap bcond 2024-01-08 13:16:49 +01:00
Tomáš Hrnčiar
f0b75f2c21 Require python3-rpm-generators even when bootstrapping non-main Pythons 2024-01-05 11:50:55 +01:00
Miro Hrončok
2da1bb9f6d Don't build the freethreding packages on ppc64le/s390x for now
See https://github.com/python/cpython/issues/112535
And https://github.com/python/cpython/pull/112624
And https://github.com/python/cpython/pull/112751

Rather than backporting a handful of small commits, let's wait for the next release.
2023-12-07 22:14:02 +01:00
Miro Hrončok
84d78b385a Add the python3.13-freethreading and python3.13-freethreading-debug packages
- See https://peps.python.org/pep-0703/
2023-12-07 22:14:02 +01:00
Miro Hrončok
f7b147540f Remove a duplicate %files entry for /usr/lib64/libpython3.Xd.so.1.0
This file is already listed as %{_libdir}/%{py_INSTSONAME_debug}.
The relevant nondebug file is in -libs, not -devel.
2023-11-29 16:20:16 +01:00
Miro Hrončok
0412f5117a Sanitize the %files section
- Don't bother listing %dirs and __pycache__ and *.py, list entire directories
- Keep pure Python and extension modules separated
- Sort things
- Macronize the list of extension modules for -debug
2023-11-29 16:20:16 +01:00
Karolina Surma
2e5126d7e1 Remove obsolete references to 2to3 2023-11-24 09:09:03 +01:00
Karolina Surma
55e8450a1f Update to Python 3.13a2 2023-11-24 09:08:21 +01:00
Miro Hrončok
a379172e60 Finish bootstrapping Python 3.13.0a1, use it to build self 2023-11-15 16:28:55 +01:00
Karolina Surma
a4428d6f28 Initial Python 3.13 package forked from Python 3.12 2023-10-19 01:33:48 +02:00
Renamed from python3.12.spec (Browse further)