[openstack-dev] [all] requirements-py{2, 3} and universal wheels

Victor Stinner vstinner at redhat.com
Wed Mar 18 15:17:27 UTC 2015


>> I haven't tested yet (and someone should) that it does all JUST WORK,
>> but thats easy: put an environment marker in a requirements.txt file
>> like so:
>> 
>>  argparse; python_version < '3'

> I think the last time this came up the feature wasn't available in pip
> yet, and so using separate files was the work-around. Are environment
> markers fully supported by pip/setuptools/whatever now?

Yeah, I developed this feature for OpenStack. My change was merged into pip 6.0:
https://github.com/pypa/pip/pull/1472

I forgot to finish the work in OpenStack. I don't know where the pip requirement is specified: we need at least pip 6.0.

Victor



More information about the OpenStack-dev mailing list