dennybaa
11/21/2016 - 12:05 AM

-

Python 2.7.12 (default, Jul  1 2016, 15:12:24) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pip.req
>>> r1 = pip.req.InstallRequirement.from_line('git+https://host/pkg6@branch#egg=pkg6-1.6')
>>> r1.link
<Link git+https://host/pkg6@branch#egg=pkg6-1.6>
>>> r2 = pip.req.InstallRequirement.from_line('docopt')
>>> r2.link
>>>