[Python-Dev] Python 3 as a Default in Linux Distros

Nick Coghlan ncoghlan at gmail.com
Thu Jul 25 14:25:26 CEST 2013


On 25 July 2013 20:38, Toshio Kuratomi <a.badger at gmail.com> wrote:
>
> On Jul 24, 2013 6:37 AM, "Brett Cannon" <brett at python.org> wrote:
>> The key, though, is adding python2 and getting your code to use that
>> binary  specifically so that shifting the default name is more of a
>> convenience than something which might break existing code not ready for the
>> switch.
>>
> Applicable to this, does anyone know whether distutils, setuptools, distlib,
> or any of the other standard build+install tools are doing shebang
> requiring?  Are they doing the right thing wrt python vs python2?

It occurs to me they're almost certainly using "sys.executable" to set
the shebang line, so probably not :(

distutils-sig could probably offer a better answer though, most of the
packaging folks don't hang out here.

Cheers,
Nick.

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


More information about the Python-Dev mailing list