def test_extras_after_wheel(script, data):
 simple = (script.site_packages / 'simple')
 no_extra = script.pip('install', '--no-index', '-f', data.find_links, 'requires_simple_extra', expect_stderr=True)
 assert (simple not in no_extra.files_created), no_extra.files_created
 extra = script.pip('install', '--no-index', '-f', data.find_links, 'requires_simple_extra[extra]', expect_stderr=True)
 assert (simple in extra.files_created), extra.files_created

def test_extras_after_wheel ( script , data ) : simple = ( script . site_packages / 'simple' ) no_extra = script . pip ( 'install' , '--no-index' , '-f' , data . find_links , 'requires_simple_extra' , expect_stderr = True ) assert ( simple not in no_extra . files_created ) , no_extra . files_created extra = script . pip ( 'install' , '--no-index' , '-f' , data . find_links , 'requires_simple_extra[extra]' , expect_stderr = True ) assert ( simple in extra . files_created ) , extra . files_created
test installing a package with extras after installing from a wheel .