[New-bugs-announce] [issue24034] Make fails Objects/typeslots.inc

Masayuki Yamamoto report at bugs.python.org
Thu Apr 23 06:47:10 CEST 2015

New submission from Masayuki Yamamoto:

Objects/typeslots.inc is broken, and make stop on cygwin-1.7.35-i686.

If built-in python is not found in make processing, Objects/typeslots.inc generating will fail.
Because Objects/typeslots.inc is generated using $(PYTHON) in Makefile, but  $(PYTHON) variable is a hard-coding value that isn't check a built-in python existent.

make steps to fail and error message:
$ ./configure --prefix=/opt/py34
$ touch Include/typeslots.h
$ make
python.exe ./Objects/typeslots.py < ./Include/typeslots.h > Objects/typeslots.inc
/bin/sh: python.exe: command not found
Makefile:851: recipe for target 'Objects/typeslots.inc' failed
make: *** [Objects/typeslots.inc] Error 127

Cygwin python executable files:
$ find /usr/bin/ -name 'python*.exe'

components: Build, Interpreter Core
messages: 241843
nosy: masamoto
priority: normal
severity: normal
status: open
title: Make fails Objects/typeslots.inc
type: compile error
versions: Python 3.4, Python 3.5

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list