[Catalog-sig] Python Version support in PyPI

Monty Taylor mordred at inaugust.com
Wed Feb 27 20:59:43 CET 2013



On 02/27/2013 02:46 PM, Daniel Holth wrote:
> The Classifier: Python ... is another tag that could be more likely to
> tell you what you want to know. Hopefully the new, broken package
> advertises Classifier: Python 3 only. In theory I don't like the idea
> of using the Trove classifiers for anything automatic, but at least
> people tend to specify them.

Yeah - it's not so much that _I_ want to use something to know - it's
more that I want pip to not try to install python3-only packages when
I'm clearly running in python2. The reverse should also be true of course.

I know we all want the next-gen package tools to solve our problems, but
waiting on them doesn't really seem to be so workable ... how opposed
would people be to adding some logic in to pip to be helpful with this?

> On Wed, Feb 27, 2013 at 2:30 PM, Monty Taylor <mordred at inaugust.com> wrote:
>>
>>
>> On 02/27/2013 02:05 PM, Donald Stufft wrote:
>>> On Wednesday, February 27, 2013 at 2:03 PM, Monty Taylor wrote:
>>>> Hey all,
>>>>
>>>> OpenStack recently ran in to a problem where one of our depends released
>>>> a new version that only works with Python 3 and not Python 2. While I
>>>> wholeheartedly support the gusto of that, and also can't wait until we
>>>> can move to Python 3, there's a tooling issue here.
>>>>
>>>> If I'm doing pip install pyparsing from python2, the system should have
>>>> enough information to be able to tell whether or not it's going to be
>>>> getting something that's just fundamentally incompatible - such as a
>>>> version that does not support python2.
>>>>
>>>> I recognize that it would require the package in question marking itself
>>>> as not supporting python2 ... but let's face it, as we start doing this
>>>> py2-py3 transition in earnest, it's a pretty important piece of metadata
>>>> to know about - and I can't imagine we're going to be the only people
>>>> running in to the problem.
>>>>
>>>> Anybody got any thoughts on ways we can help with this that won't suck?
>>>>
>>>> Monty
>>>> _______________________________________________
>>>> Catalog-SIG mailing list
>>>> Catalog-SIG at python.org <mailto:Catalog-SIG at python.org>
>>>> http://mail.python.org/mailman/listinfo/catalog-sig
>>> The newer peps have support for this via a requires_python field but
>>> the older tools do not support this field. You'll need to version constrain
>>> your downloads manually to remove versions you know are not Py2.
>>
>> Yeah - that's what we're doing now - I think we're just looking towards
>> trying to prevent breakage systemically where we can.
>> _______________________________________________
>> Catalog-SIG mailing list
>> Catalog-SIG at python.org
>> http://mail.python.org/mailman/listinfo/catalog-sig
> 


More information about the Catalog-SIG mailing list