@@ -285,6 +285,8 @@ LIBOBJS= @LIBOBJS@
285285PYTHON= python$(EXE)
286286BUILDPYTHON= python$(BUILDEXE)
287287
288+ HOSTRUNNER= @HOSTRUNNER@
289+
288290PYTHON_FOR_REGEN?=@PYTHON_FOR_REGEN@
289291UPDATE_FILE=$(PYTHON_FOR_REGEN) $(srcdir)/Tools/scripts/update_file.py
290292PYTHON_FOR_BUILD=@PYTHON_FOR_BUILD@
@@ -1350,7 +1352,7 @@ regen-keyword:
13501352 $(UPDATE_FILE) $(srcdir)/Lib/keyword.py $(srcdir)/Lib/keyword.py.new
13511353
13521354.PHONY: regen-stdlib-module-names
1353- regen-stdlib-module-names: build_all Programs/_testembed
1355+ regen-stdlib-module-names: all Programs/_testembed
13541356 # Regenerate Python/stdlib_module_names.h
13551357 # using Tools/scripts/generate_stdlib_module_names.py
13561358 $(RUNSHARED) ./$(BUILDPYTHON) \
@@ -1648,15 +1650,15 @@ $(LIBRARY_OBJS) $(MODOBJS) Programs/python.o: $(PYTHON_HEADERS)
16481650######################################################################
16491651
16501652TESTOPTS= $(EXTRATESTOPTS)
1651- TESTPYTHON= $(RUNSHARED) ./$(BUILDPYTHON ) $(TESTPYTHONOPTS)
1653+ TESTPYTHON= $(RUNSHARED) $(PYTHON_FOR_BUILD ) $(TESTPYTHONOPTS)
16521654TESTRUNNER= $(TESTPYTHON) $(srcdir)/Tools/scripts/run_tests.py
16531655TESTTIMEOUT= 1200
16541656
16551657.PHONY: test testall testuniversal buildbottest pythoninfo
16561658
16571659# Remove "test_python_*" directories of previous failed test jobs.
16581660# Pass TESTOPTS options because it can contain --tempdir option.
1659- cleantest: build_all
1661+ cleantest: all
16601662 $(TESTRUNNER) $(TESTOPTS) --cleanup
16611663
16621664# Run a basic set of regression tests.
@@ -1691,14 +1693,14 @@ testuniversal: @DEF_MAKE_RULE@ platform
16911693
16921694# Like testall, but with only one pass and without multiple processes.
16931695# Run an optional script to include information about the build environment.
1694- buildbottest: build_all platform
1696+ buildbottest: all platform
16951697 -@if which pybuildbot.identify >/dev/null 2>&1; then \
16961698 pybuildbot.identify "CC='$(CC)'" "CXX='$(CXX)'"; \
16971699 fi
16981700 $(TESTRUNNER) -j 1 -u all -W --slowest --fail-env-changed --timeout=$(TESTTIMEOUT) $(TESTOPTS)
16991701
1700- pythoninfo: build_all
1701- $(RUNSHARED) ./$(BUILDPYTHON) -m test.pythoninfo
1702+ pythoninfo: all
1703+ $(RUNSHARED) $(HOSTRUNNER) ./$(BUILDPYTHON) -m test.pythoninfo
17021704
17031705QUICKTESTOPTS= $(TESTOPTS) -x test_subprocess test_io test_lib2to3 \
17041706 test_multibytecodec test_urllib2_localnet test_itertools \
@@ -1711,10 +1713,10 @@ quicktest: @DEF_MAKE_RULE@ platform
17111713
17121714# SSL tests
17131715.PHONY: multisslcompile multissltest
1714- multisslcompile: build_all
1716+ multisslcompile: all
17151717 $(RUNSHARED) ./$(BUILDPYTHON) $(srcdir)/Tools/ssl/multissltests.py --steps=modules
17161718
1717- multissltest: build_all
1719+ multissltest: all
17181720 $(RUNSHARED) ./$(BUILDPYTHON) $(srcdir)/Tools/ssl/multissltests.py
17191721
17201722install: @FRAMEWORKINSTALLFIRST@ commoninstall bininstall maninstall @FRAMEWORKINSTALLLAST@
@@ -1986,7 +1988,7 @@ TESTSUBDIRS= ctypes/test \
19861988 unittest/test unittest/test/testmock
19871989
19881990TEST_MODULES=@TEST_MODULES@
1989- libinstall: build_all $(srcdir)/Modules/xxmodule.c
1991+ libinstall: all $(srcdir)/Modules/xxmodule.c
19901992 @for i in $(SCRIPTDIR) $(LIBDEST); \
19911993 do \
19921994 if test ! -d $(DESTDIR)$$i; then \
0 commit comments