def _clean_req(req):
    """Given a Requirement, remove environment markers and return it"""
    r = Requirement(str(req))  # create a copy before modifying
    r.marker = None
    return r
Given a Requirement, remove environment markers and return it
product/gradle-plugin/src/main/python/setuptools/command/_requirestxt.py