"""Ensure find-links option end-up being a list of strings."""
return
assert
return
# noqa: C901 # is too complex (16) # FIXME
"""Fetch an egg needed for building.
Use pip/wheel to fetch/build a wheel."""
# Warn if wheel is not available
# Ignore environment markers; if supplied, it is required.
=
# Take easy_install options into account, but do not override relevant
# pip environment variables (like PIP_INDEX_URL or PIP_QUIET); they'll
# take precedence.
=
= not in and not in
= None
in :
=
= None
=
=
=
return
=
# If requirement is a PEP 508 direct URL, directly pass
# the URL to pip, as `req @ url` does not work on the
# command line.
=
=
=
=
return
"""
Return a new requirement without the environment marker to avoid
calling pip with something like `babel; extra == "i18n"`, which
would always be ignored.
"""
# create a copy to avoid mutating the input
=
= None
return