[Python-ideas] Support 1.x notation in version specifiers
Chris Angelico
rosuav at gmail.com
Tue May 5 11:17:33 CEST 2015
On Tue, May 5, 2015 at 6:21 PM, Oleg Broytman <phd at phdru.name> wrote:
>> The current way ==1.* conflicts with system shell expansion
>
> Other comparison operators (< and >) conflict with shell redirection.
> And nobody cares because one can always quote shell metacharacters.
>
> pip install patch==1.\*
> pip install patch=='1.*'
> pip install 'patch==1.*'
> pip install 'patch>=1,<2'
Plus, you can stick anything you like into a requirements.txt and
simply 'pip install -r requirements.txt'. That's a safe option - not
least since it lets you manage your dependencies in source control.
ChrisA
More information about the Python-ideas
mailing list