@staticmethod<EOL><INDENT>def populate_requirement_set(requirement_set,  <EOL>args,             <EOL>options,          <EOL>finder,           <EOL>session,          <EOL>name,             <EOL>wheel_cache       <EOL>):<EOL><DEDENT>
<EOL>for filename in options.constraints:<EOL><INDENT>for req_to_add in parse_requirements(<EOL>filename,<EOL>constraint=True, finder=finder, options=options,<EOL>session=session, wheel_cache=wheel_cache):<EOL><INDENT>req_to_add.is_direct = True<EOL>requirement_set.add_requirement(req_to_add)<EOL><DEDENT><DEDENT>for req in args:<EOL><INDENT>req_to_add = install_req_from_line(<EOL>req, None, isolated=options.isolated_mode,<EOL>use_pep517=options.use_pep517,<EOL>wheel_cache=wheel_cache<EOL>)<EOL>req_to_add.is_direct = True<EOL>requirement_set.add_requirement(req_to_add)<EOL><DEDENT>for req in options.editables:<EOL><INDENT>req_to_add = install_req_from_editable(<EOL>req,<EOL>isolated=options.isolated_mode,<EOL>use_pep517=options.use_pep517,<EOL>wheel_cache=wheel_cache<EOL>)<EOL>req_to_add.is_direct = True<EOL>requirement_set.add_requirement(req_to_add)<EOL><DEDENT>for filename in options.requirements:<EOL><INDENT>for req_to_add in parse_requirements(<EOL>filename,<EOL>finder=finder, options=options, session=session,<EOL>wheel_cache=wheel_cache,<EOL>use_pep517=options.use_pep517):<EOL><INDENT>req_to_add.is_direct = True<EOL>requirement_set.add_requirement(req_to_add)<EOL><DEDENT><DEDENT>requirement_set.require_hashes = options.require_hashes<EOL>if not (args or options.editables or options.requirements):<EOL><INDENT>opts = {'<STR_LIT:name>': name}<EOL>if options.find_links:<EOL><INDENT>raise CommandError(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>' %<EOL>dict(opts, links='<STR_LIT:U+0020>'.join(options.find_links)))<EOL><DEDENT>else:<EOL><INDENT>raise CommandError(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>' % opts)<EOL><DEDENT><DEDENT>
Marshal cmd line args into a requirement set.