Skip to content

REQUESTED not created when a top level requirement is constrained #11079

Closed
@sbidoul

Description

@sbidoul

Description

When installing pip generates a REQUESTED metadata file for top level requirements.

However when such a top level requirements is constrained via -c, the REQUESTED file is not produced.

Expected behavior

No response

pip version

main, today, as well as 22.0.4

Python version

not relevant

OS

not relevant

How to Reproduce

Assume the following requirements.txt.in

pip-test-package @ git+https://github.com/pypa/[email protected]

Now install pip-test-package with pip install -c requirements.txt.in pip-test-package.

Notice REQUESTED is not generated in site-packages/pip_test_package-0.1.1.dist-info/

It should be since pip-test-package is a top level requirement.

Output

No response

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: constraintDealing with "constraints" (the -c option)C: direct urlDirect URL references (PEP 440, PEP 508, PEP 610)type: bugA confirmed bug or unintended behavior

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions