The python3.9 package
Find a file
Miro Hrončok 64188e0cae 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 01:54:19 +02:00
tests Fedora CI: Add rpm -qa output for debugging 2021-06-21 12:02:18 +02:00
.gitignore Ignore stuff 2017-12-01 13:57:42 +01:00
00001-rpath.patch Update to 3.9.8 2021-11-08 08:56:26 +01:00
00111-no-static-lib.patch Update to 3.9.19 2024-03-20 13:53:11 +01:00
00189-use-rpm-wheels.patch Update to 3.9.17 2023-06-08 11:50:59 +02:00
00251-change-user-install-location.patch Update to 3.9.19 2024-03-20 13:53:11 +01:00
00353-architecture-names-upstream-downstream.patch Update to 3.9.11 2022-03-17 15:55:45 +01:00
00371-revert-bpo-1596321-fix-threading-_shutdown-for-the-main-thread-gh-28549-gh-28589.patch Update to 3.9.13 2022-05-18 16:05:55 +02:00
00407-gh-99086-fix-implicit-int-compiler-warning-in-configure-check-for-pthread_scope_system.patch Fix implicit int compiler warning in configure check for PTHREAD_SCOPE_SYSTEM 2023-11-23 11:50:56 +01:00
00415-cve-2023-27043-gh-102988-reject-malformed-addresses-in-email-parseaddr-111116.patch Security fix for CVE-2023-27043 (rhbz#2196194) 2023-12-18 13:15:55 +01:00
00419-gh-112769-test_zlib-fix-comparison-of-zlib_runtime_version-with-non-int-suffix-gh-112771-gh-112774.patch Fix test_zlib with zlib-ng-compat 2024-01-29 12:07:08 +01:00
check-pyc-timestamps.py No longer patch the default bytecode cache invalidation policy 2023-01-03 12:18:10 +01:00
idle3.appdata.xml Add AppData and desktop file for IDLE 3 (rhbz#1392049) 2017-02-28 14:33:44 +01:00
idle3.desktop Add AppData and desktop file for IDLE 3 (rhbz#1392049) 2017-02-28 14:33:44 +01:00
pubkeys.txt Verify upstream sources with GPG 2019-11-20 10:00:34 +01:00
python3.9.rpmlintrc rpmlint: Filter a new way of unversioned Obsoletes warning 2021-03-26 15:29:07 +01:00
python3.9.spec Require expat >= 2.6 to prevent errors when creating venvs with older expat 2024-04-18 01:54:19 +02:00
sources Update to 3.9.19 2024-03-20 13:53:11 +01:00