[Python-Dev] python 2 for building python 3 (original) (raw)
Benjamin Peterson benjamin at python.org
Sat Dec 4 14:40:41 CET 2010
- Previous message: [Python-Dev] python 2 for building python 3
- Next message: [Python-Dev] python 2 for building python 3
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
2010/12/4 Mark Dickinson <dickinsm at gmail.com>:
On Sat, Dec 4, 2010 at 1:23 PM, Mark Dickinson <dickinsm at gmail.com> wrote:
On Sat, Dec 4, 2010 at 11:41 AM, Antoine Pitrou <solipsis at pitrou.net> wrote:
Er, normally you don't need any Python installed to build Python (be it 3.x or 2.x).
Are you sure about this? I remember needing an existing Python to building Python 2.7 on a new python-less install of FreeBSD a couple of months ago. But maybe that was just an issue with timestamps on files. I'll see if I can reproduce. With a fresh checkout of the release27-maint branch on an Ubuntu 64-bit VM, with /usr/bin/python renamed to /usr/bin/pythonnothere, a './configure && make' fails with: [...] checking for socklent... yes checking for build directories... done configure: creating ./config.status config.status: creating Makefile.pre config.status: creating Modules/Setup.config config.status: creating Misc/python.pc config.status: creating Modules/ldsoaix config.status: creating pyconfig.h creating Modules/Setup creating Modules/Setup.local creating Makefile ./Parser/asdlc.py -h ./Include ./Parser/Python.asdl /usr/bin/env: python: No such file or directory make: *** [Include/Python-ast.h] Error 127 I think this is the same problem that I saw on the FreeBSD VM.
You have to touch Include/Python-ast.h and Python/Python-ast.c. We do this for release tarballs.
-- Regards, Benjamin
- Previous message: [Python-Dev] python 2 for building python 3
- Next message: [Python-Dev] python 2 for building python 3
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]