Skip to content

[BUILD] ensurepip: pip wheel paths install outside staged --root #149444

@sulincix

Description

@sulincix
Processing /tmp/tmpdltouljx/pip-26.0.1-py3-none-any.whl
Installing collected packages: pip
ERROR: For req: pip. The wheel '/tmp/tmpdltouljx/pip-26.0.1-py3-none-any.whl' has a file '//tmp/ymp-build//d6d9788a558269f1af7c33981964ecd1/output/usr/lib/python3.14/site-packages/pip/__init__.py' trying to install outside the target directory '//tmp/ymp-build//d6d9788a558269f1af7c33981964ecd1/output/usr/lib/python3.14/site-packages'
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/tmp/ymp-build/d6d9788a558269f1af7c33981964ecd1/Python-3.14.4/Lib/ensurepip/__main__.py", line 5, in <module>
    sys.exit(ensurepip._main())
             ~~~~~~~~~~~~~~~^^
  File "/tmp/ymp-build/d6d9788a558269f1af7c33981964ecd1/Python-3.14.4/Lib/ensurepip/__init__.py", line 258, in _main
    return _bootstrap(
        root=args.root,
    ...<4 lines>...
        default_pip=args.default_pip,
    )
  File "/tmp/ymp-build/d6d9788a558269f1af7c33981964ecd1/Python-3.14.4/Lib/ensurepip/__init__.py", line 173, in _bootstrap
    return _run_pip([*args, "pip"], [os.fsdecode(tmp_wheel_path)])
  File "/tmp/ymp-build/d6d9788a558269f1af7c33981964ecd1/Python-3.14.4/Lib/ensurepip/__init__.py", line 88, in _run_pip
    return subprocess.run(cmd, check=True).returncode
           ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/tmp/ymp-build/d6d9788a558269f1af7c33981964ecd1/Python-3.14.4/Lib/subprocess.py", line 578, in run
    raise CalledProcessError(retcode, process.args,
                             output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/tmp/ymp-build/d6d9788a558269f1af7c33981964ecd1/Python-3.14.4/python', '-W', 'ignore::DeprecationWarning', '-c', '\nimport runpy\nimport sys\nsys.path = [\'/tmp/tmpdltouljx/pip-26.0.1-py3-none-any.whl\'] + sys.path\nsys.argv[1:] = [\'install\', \'--no-cache-dir\', \'--no-index\', \'--find-links\', \'/tmp/tmpdltouljx\', \'--root\', \'//tmp/ymp-build//d6d9788a558269f1af7c33981964ecd1/output/\', \'--upgrade\', \'pip\']\nrunpy.run_module("pip", run_name="__main__", alter_sys=True)\n']' returned non-zero exit status 1.

Compile parameters:

./configure --prefix=/usr \
        --libdir=/usr/lib64 \
        --enable-ipv6 \
        --enable-loadable-sqlite-extensions \
        --enable-optimizations \
        --enable-shared \
        --with-computed-gotos \
        --with-dbmliborder=gdbm:ndbm \
        --with-system-expat \
        --with-system-libmpdec

Note: If the issue disappears when building with --without-ensurepip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions