Skip to content

Update pip parse_requirements import #55

Open
@raddessi

Description

@raddessi

Hi, currently the 0.0.2 release tries to "from pip.req import parse_requirements", that should be changed to try both the new and old ways:

try:
    # for pip >= 10
    from pip._internal.req import parse_requirements
except ImportError:
    # for pip <= 9.0.3
    from pip.req import parse_requirements

I actually tried forking to make a PR but am unable to install this from git.. how do you install the version in git via pip?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions