This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2016-03-29.10:55:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Oh ok, I understood the issue.
[haypo@freebsd ~/prog/python/default]$ rm Objects/ 
[haypo@freebsd ~/prog/python/default]$ make
python ./Objects/ < ./Include/typeslots.h > Objects/
/bin/sh: python: not found
*** Error code 127

make: stopped in /home/haypo/prog/python/default

I have "python2" and "python3" but no "python" on FreeBSD CURRENT. The configure script is smart enough to select "python3" as the ASDL generator, but it uses $(PYTHON) ("python") to build Objects/

We should use a smarter code to select the external "python" program to build Objects/

Moreover, when "make Objects/" fails, it creates an empty Objects/ file:
Objects/typeobject.o: Objects/
Objects/ $(srcdir)/Include/typeslots.h $(srcdir)/Objects/
        $(PYTHON) $(srcdir)/Objects/ < $(srcdir)/Include/typeslots.h > Objects/

The Objects/ should be written directly by Objects/
Date User Action Args
2016-03-29 10:55:04vstinnersetrecipients: + vstinner
2016-03-29 10:55:04vstinnersetmessageid: <>
2016-03-29 10:55:04vstinnerlinkissue26662 messages
2016-03-29 10:55:03vstinnercreate