Add support for local directories with --index-url
#4226
+219
−31
Merged
--index-url
#4226