query installed requirements for extras

Fixes an issue where egg_info('requires.txt') does not exist for packages installed from wheels.

Affected use case:

    pip install pkg (from wheel)
    pip install pkg[extra]

Test included.

Closes #1885