[Distutils] Normalized version confuses external tool (PyCharm)

Donald Stufft donald at stufft.io
Wed Aug 26 17:39:04 CEST 2015


On August 26, 2015 at 11:29:49 AM, Piotr Dobrogost (p at 2015.forums.dobrogost.net) wrote:
> On Wed, Aug 26, 2015 at 5:21 PM, Donald Stufft wrote:
> >
> > Well, I don’t know what PyCharm is doing,
>  
> Me neither but I suspect they simply compare version reported by pip
> (or something else) with the version from requirements.txt
>  
> > but ideally if their somehow interacting with the environment in a way that they care  
> about Python version numbers, they should support PEP 440.
>  
> I agree they should and this would solve this problem. However I'm
> wondering if the general advice for authors shouldn't be to prefer
> normalized versions so to avoid problems like this?
>  
>

Yea, the advice is to prefer the normalized forms (and if I recall, I think setuptools will normalize for them so if you’re using a newer version of setuptools it’ll do that for you and solve the problem anyways). The problem comes with older versions of setuptools and things already uploaded.

-----------------
Donald Stufft
PGP: 0x6E3CBCE93372DCFA // 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA




More information about the Distutils-SIG mailing list