◐ Shell
clean mode source ↗

Update ensurepip from CPython 3.13.9 by youknowone · Pull Request #5740 · RustPython/RustPython

Still failing, but with different error:

ERROR: Exception:
Traceback (most recent call last):
  File "/tmp/tmpcrk8exvy/pip-25.2-py3-none-any.whl/pip/_internal/cli/base_command.py", line 107, in _run_wrapper
    status = _inner_run()
  File "/tmp/tmpcrk8exvy/pip-25.2-py3-none-any.whl/pip/_internal/cli/base_command.py", line 100, in _inner_run
    self.handle_pip_version_check(options)
  File "/tmp/tmpcrk8exvy/pip-25.2-py3-none-any.whl/pip/_internal/cli/base_command.py", line 98, in _inner_run
    return self.run(options, args)
  File "/tmp/tmpcrk8exvy/pip-25.2-py3-none-any.whl/pip/_internal/cli/base_command.py", line 98, in _inner_run
    return self.run(options, args)
  File "/tmp/tmpcrk8exvy/pip-25.2-py3-none-any.whl/pip/_internal/cli/req_command.py", line 77, in wrapper
    raise
  File "/tmp/tmpcrk8exvy/pip-25.2-py3-none-any.whl/pip/_internal/cli/req_command.py", line 71, in wrapper
    return func(self, options, args)
  File "/tmp/tmpcrk8exvy/pip-25.2-py3-none-any.whl/pip/_internal/commands/install.py", line 339, in run
    session = self.get_default_session(options)
  File "/tmp/tmpcrk8exvy/pip-25.2-py3-none-any.whl/pip/_internal/cli/index_command.py", line 80, in get_default_session
    self._session = self.enter_context(self._build_session(options))
  File "/tmp/tmpcrk8exvy/pip-25.2-py3-none-any.whl/pip/_internal/cli/index_command.py", line 99, in _build_session
    ssl_context = _create_truststore_ssl_context()
  File "/home/runner/work/RustPython/RustPython/pylib/Lib/functools.py", line 584, in wrapper
    result = user_function(*args, **kwds)
  File "/tmp/tmpcrk8exvy/pip-25.2-py3-none-any.whl/pip/_internal/cli/index_command.py", line 47, in _create_truststore_ssl_context
    return None
  File "/tmp/tmpcrk8exvy/pip-25.2-py3-none-any.whl/pip/_internal/cli/index_command.py", line 44, in _create_truststore_ssl_context
    from pip._vendor import truststore
  File "/tmp/tmpcrk8exvy/pip-25.2-py3-none-any.whl/pip/_vendor/truststore/__init__.py", line 31, in <module>
    from ._api import SSLContext, extract_from_ssl, inject_into_ssl  # noqa: E402
  File "/tmp/tmpcrk8exvy/pip-25.2-py3-none-any.whl/pip/_vendor/truststore/_api.py", line 75, in <module>
    class SSLContext(_truststore_SSLContext_super_class):  # type: ignore[misc]
  File "/tmp/tmpcrk8exvy/pip-25.2-py3-none-any.whl/pip/_vendor/truststore/_api.py", line 107, in SSLContext
    session: ssl.SSLSession | None = None,
AttributeError: module 'ssl' has no attribute 'SSLSession'
Traceback (most recent call last):
  File "/home/runner/work/RustPython/RustPython/pylib/Lib/runpy.py", line 197, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/runner/work/RustPython/RustPython/pylib/Lib/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/runner/work/RustPython/RustPython/pylib/Lib/ensurepip/__main__.py", line 5, in <module>
    sys.exit(ensurepip._main())
  File "/home/runner/work/RustPython/RustPython/pylib/Lib/ensurepip/__init__.py", line 263, in _main
    default_pip=args.default_pip,
  File "/home/runner/work/RustPython/RustPython/pylib/Lib/ensurepip/__init__.py", line 153, in _bootstrap
    with tempfile.TemporaryDirectory() as tmpdir:
  File "/home/runner/work/RustPython/RustPython/pylib/Lib/ensurepip/__init__.py", line 172, in _bootstrap
    return _run_pip([*args, "pip"], [os.fsdecode(tmp_wheel_path)])
  File "/home/runner/work/RustPython/RustPython/pylib/Lib/ensurepip/__init__.py", line 87, in _run_pip
    return subprocess.run(cmd, check=True).returncode
  File "/home/runner/work/RustPython/RustPython/pylib/Lib/subprocess.py", line 548, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/home/runner/work/RustPython/RustPython/pylib/Lib/subprocess.py", line 572, in run
    output=stdout, stderr=stderr)
CalledProcessError: (2, ['/home/runner/work/RustPython/RustPython/target/release/rustpython', '-W', 'ignore::DeprecationWarning', '-c', '\nimport runpy\nimport sys\nsys.path = [\'/tmp/tmpcrk8exvy/pip-25.2-py3-none-any.whl\'] + sys.path\nsys.argv[1:] = [\'install\', \'--no-cache-dir\', \'--no-index\', \'--find-links\', \'/tmp/tmpcrk8exvy\', \'--user\', \'pip\']\nrunpy.run_module("pip", run_name="__main__", alter_sys=True)\n'])