[New-bugs-announce] [issue12421] Use PYTHON when calling Parser/asdl_c.py

Henry Precheur report at bugs.python.org
Mon Jun 27 14:53:37 CEST 2011

New submission from Henry Precheur <henry at precheur.org>:

Parser/asdl_c.py uses `/usr/bin/env python' as an interpreter. But Python executable is not always `python'. With OpenBSD's ports, CPython's interpreters are installed as pythonX.Y. There's a variable PYTHON in the Makefile, that's what should be used.

This way make PYTHON=python2.7 works on OpenBSD.

The attached patch fixes that.

Note that the executable bit and the hashbang can be removed from asdl_c.py if the patch is applied.

components: Build
files: fix_ASDLGEN.diff
keywords: patch
messages: 139264
nosy: henry.precheur
priority: normal
severity: normal
status: open
title: Use PYTHON when calling Parser/asdl_c.py
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file22494/fix_ASDLGEN.diff

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list