[Python-Dev] python 2 for building python 3
Eli Bendersky
eliben at gmail.com
Sat Dec 4 10:20:57 CET 2010
On Dec 4, 2010, at 11:13, "Martin v. Löwis" <martin at v.loewis.de> wrote:
> Am 04.12.2010 09:48, schrieb Eli Bendersky:
>> To build the trunk Python 3k, it seems that Python 2 has to be installed.
>> This is because Objects/typeslots.py is called in the Makefile, and this
>> file uses Python 2 "print statement" syntax, which fails if $(PYTHON) is
>> actually Python 3.
>
> This shouldn't be necessary, as typeslots.inc is also checked into
> subversion, and should have a newer time stamp than typeslots.inc
> (perhaps not currently, but that is the plan, anyway).
>
> In any case, I now made the script 2-vs-3-agnostic.
>
> Regards,
> Martin
I had the error pop out in a real build, so the time stamp is probably not a 100% guarantee. Therefore I think it's good that you made it version agnostic. This should be probably be a requirement for all scripts that are part of the build.
Thanks,
Eli
More information about the Python-Dev
mailing list