Add os.path.expanduser call to normalize_path.
Add os.path.expanduser call to normalize_path.

realpath by itself won't expand tildes, which could lead to things like:

pip wheel --wheel-path=~/wheels -r requirements.txt

Producing:

Destination directory: /home/foo/src/dir/~/wheels

Which is pretty much never what you wanted.

zorosteven/pip,jythontools/pip,minrk/pip,squidsoup/pip,yati-sagade/pip,ncoghlan/pip,Gabriel439/pip,mattrobenolt/pip,supriyantomaftuh/pip,cjerdonek/pip,James-Firth/pip,techtonik/pip,tdsmith/pip,ChristopherHogan/pip,atdaemon/pip,ncoghlan/pip,msabramo/pip,haridsv/pip,dstufft/pip,yati-sagade/pip,prasaianooz/pip,Carreau/pip,qbdsoft/pip,RonnyPfannschmidt/pip,jasonkying/pip,pypa/pip,natefoo/pip,wkeyword/pip,harrisonfeng/pip,blarghmatey/pip,jmagnusson/pip,tdsmith/pip,qwcode/pip,rbtcollins/pip,jasonkying/pip,mindw/pip,alquerci/pip,erikrose/pip,pjdelport/pip,zvezdan/pip,cjerdonek/pip,caosmo/pip,xavfernandez/pip,supriyantomaftuh/pip,pfmoore/pip,techtonik/pip,qbdsoft/pip,ChristopherHogan/pip,caosmo/pip,habnabit/pip,alquerci/pip,willingc/pip,erikrose/pip,mindw/pip,ianw/pip,willingc/pip,nthall/pip,luzfcb/pip,blarghmatey/pip,fiber-space/pip,supriyantomaftuh/pip,davidovich/pip,zenlambda/pip,yati-sagade/pip,wkeyword/pip,natefoo/pip,James-Firth/pip,ChristopherHogan/pip,blarghmatey/pip,graingert/pip,sigmavirus24/pip,ianw/pip,Carreau/pip,prasaianooz/pip,rbtcollins/pip,caosmo/pip,squidsoup/pip,haridsv/pip,zorosteven/pip,nthall/pip,graingert/pip,prasaianooz/pip,davidovich/pip,patricklaw/pip,sigmavirus24/pip,chaoallsome/pip,fiber-space/pip,mattrobenolt/pip,atdaemon/pip,mujiansu/pip,h4ck3rm1k3/pip,mujiansu/pip,Ivoz/pip,benesch/pip,fiber-space/pip,esc/pip,KarelJakubec/pip,pradyunsg/pip,techtonik/pip,RonnyPfannschmidt/pip,KarelJakubec/pip,jythontools/pip,jamezpolley/pip,atdaemon/pip,benesch/pip,sbidoul/pip,ncoghlan/pip,pypa/pip,habnabit/pip,chaoallsome/pip,msabramo/pip,wkeyword/pip,Gabriel439/pip,dstufft/pip,Gabriel439/pip,pjdelport/pip,esc/pip,zenlambda/pip,harrisonfeng/pip,zvezdan/pip,chaoallsome/pip,mujiansu/pip,luzfcb/pip,h4ck3rm1k3/pip,RonnyPfannschmidt/pip,jamezpolley/pip,pjdelport/pip,benesch/pip,xavfernandez/pip,rouge8/pip,harrisonfeng/pip,alex/pip,habnabit/pip,jmagnusson/pip,h4ck3rm1k3/pip,rbtcollins/pip,davidovich/pip,rouge8/pip,sbidoul/pip,pfmoore/pip,natefoo/pip,nthall/pip,mindw/pip,rouge8/pip,Ivoz/pip,KarelJakubec/pip,jmagnusson/pip,willingc/pip,xavfernandez/pip,sigmavirus24/pip,pradyunsg/pip,tdsmith/pip,qbdsoft/pip,zvezdan/pip,alex/pip,haridsv/pip,erikrose/pip,alex/pip,zorosteven/pip,patricklaw/pip,zenlambda/pip,jasonkying/pip,luzfcb/pip,jamezpolley/pip,jythontools/pip,graingert/pip,James-Firth/pip,dstufft/pip,qwcode/pip,minrk/pip,squidsoup/pip,esc/pip