Skip to content

--unsafe-package doesn't normalize hyphens/underscores #2150

Open
@ntjess

Description

@ntjess

Pip resolves package-name and package_name to the same dependency. However, the unsafe package specifier doesn't take this into account on the latest released version.

Example: pip-compile --unsafe-package opencv_python --no-allow-unsafe still installs opencv-python in the final output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    PR wantedFeature is discussed or bug is confirmed, PR neededbugSomething is not workinghelp wantedRequest help from the communityneeds reproduceNeed to reproduce an issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions