[Distutils] complicated setup

Nick Coghlan ncoghlan at gmail.com
Sun Jun 30 01:18:01 CEST 2013


On 30 June 2013 05:08, Ethan Furman <ethan at stoneleaf.us> wrote:
> I was hoping to provide good examples of Python 3 code (as opposed to good
> examples of 2/3 boundary straddling), but yeah, it's danged difficult!

Writing idiomatic Python 3 code and supporting both Python 2 & 3
aren't really compatible goals. I suggest pointing to the stdlib
implementation for the idiomatic Python 3 only code, and just
targeting the common 2/3 subset for the PyPI version - a lot of people
have been down this road before you and it really is the easiest way
to do it :)

> Is there a way to have both a Py2 distribution and a Py3 distribution
> available on PyPI?

Register two different names (which also makes for a fairly poor end
user experience)

Cheers,
Nick.

--
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia


More information about the Distutils-SIG mailing list