• Home
  • Raw
  • Download

Lines Matching +full:python +full:- +full:version

1 # Top-level Makefile for Python
14 # If you have a previous version of Python installed that you don't
30 VERSION= @VERSION@
64 # Use this to make a link between python$(VERSION) and python in $(BINDIR)
74 INSTALL_SHARED= ${INSTALL} -m 755
87 # once Python is installed (Issue #21121).
91 # once Python is installed (bpo-35257)
99 # command line to append to these values without stomping the pre-set
102 PY_CFLAGS_NODIST=$(CONFIGURE_CFLAGS_NODIST) $(CFLAGS_NODIST) -I$(srcdir)/Include/internal
106 PY_CPPFLAGS= $(BASECPPFLAGS) -I. -I$(srcdir)/Include $(CONFIGURE_CPPFLAGS) $(CPPFLAGS)
113 # the python executable -- this is only needed for a few systems
120 PY_BUILTIN_MODULE_CFLAGS= $(PY_STDMODULE_CFLAGS) -DPy_BUILD_CORE_BUILTIN
121 PY_CORE_CFLAGS= $(PY_STDMODULE_CFLAGS) -DPy_BUILD_CORE
124 # Strict or non-strict aliasing flags used to compile dtoa.c, see above
128 # Machine-dependent subdirectories
135 # Install prefix for architecture-independent files
138 # Install prefix for architecture-dependent files
158 LIBDEST= $(SCRIPTDIR)/python$(VERSION)
159 INCLUDEPY= $(INCLUDEDIR)/python$(LDVERSION)
160 CONFINCLUDEPY= $(CONFINCLUDEDIR)/python$(LDVERSION)
168 DESTSHARED= $(BINLIBDEST)/lib-dynload
178 # Short name and location for Mac OS X Python framework
191 STRIPFLAG=-s
193 # Flags to lipo to produce a 32-bit-only universal executable
196 # Flags to lipo to produce an intel-64-only universal executable
202 # Environment to run shared python without installed libraries
234 # install process. Default to user-only-writable for all file types.
251 WASM_STDLIB=$(WASM_ASSETS_DIR)/lib/python$(VERSION)/os.py
256 DISTDIRS= $(SUBDIRS) $(SUBDIRSTOO) Ext-dummy
282 LIBOBJDIR= Python/
285 PYTHON= python$(EXE)
286 BUILDPYTHON= python$(BUILDEXE)
293 # Single-platform builds depend on $(BUILDPYTHON). Cross builds use an
294 # external "build Python" and have an empty PYTHON_FOR_BUILD_DEPS.
297 # Single-platform builds use Programs/_freeze_module.c for bootstrapping and
299 # Cross builds use an external "build Python" for all modules.
310 # The task to run while instrumented when building the profile-opt target.
312 # by default. The default is "-m test --pgo". To run more tests, use
313 # PROFILE_TASK="-m test --pgo-extended"
318 COVERAGE_REPORT=$(abs_builddir)/lcov-report
319 COVERAGE_LCOV_OPTIONS=--rc lcov_branch_coverage=1
320 COVERAGE_REPORT_OPTIONS=--rc lcov_branch_coverage=1 --branch-coverage --title "CPython $(VERSION) L…
375 # Python
378 Python/_warnings.o \
379 Python/Python-ast.o \
380 Python/Python-tokenize.o \
381 Python/asdl.o \
382 Python/ast.o \
383 Python/ast_opt.o \
384 Python/ast_unparse.o \
385 Python/bltinmodule.o \
386 Python/ceval.o \
387 Python/codecs.o \
388 Python/compile.o \
389 Python/context.o \
390 Python/dynamic_annotations.o \
391 Python/errors.o \
392 Python/frame.o \
393 Python/frozenmain.o \
394 Python/future.o \
395 Python/getargs.o \
396 Python/getcompiler.o \
397 Python/getcopyright.o \
398 Python/getplatform.o \
399 Python/getversion.o \
400 Python/hamt.o \
401 Python/hashtable.o \
402 Python/import.o \
403 Python/importdl.o \
404 Python/initconfig.o \
405 Python/marshal.o \
406 Python/modsupport.o \
407 Python/mysnprintf.o \
408 Python/mystrtoul.o \
409 Python/pathconfig.o \
410 Python/preconfig.o \
411 Python/pyarena.o \
412 Python/pyctype.o \
413 Python/pyfpe.o \
414 Python/pyhash.o \
415 Python/pylifecycle.o \
416 Python/pymath.o \
417 Python/pystate.o \
418 Python/pythonrun.o \
419 Python/pytime.o \
420 Python/bootstrap_hash.o \
421 Python/specialize.o \
422 Python/structmember.o \
423 Python/symtable.o \
424 Python/sysmodule.o \
425 Python/thread.o \
426 Python/traceback.o \
427 Python/getopt.o \
428 Python/pystrcmp.o \
429 Python/pystrtod.o \
430 Python/pystrhex.o \
431 Python/dtoa.o \
432 Python/formatter_unicode.o \
433 Python/fileutils.o \
434 Python/suggestions.o \
435 Python/$(DYNLOADFILE) \
490 DEEPFREEZE_OBJS = Python/deepfreeze/deepfreeze.o
493 # objects that get linked into the Python library
506 Python/frozen.o
514 # in-place by dtrace(1).
516 Python/ceval.o Python/import.o Python/sysmodule.o Modules/gcmodule.o
587 build_all: check-clean-src $(BUILDPYTHON) platform oldsharedmods sharedmods \
588 gdbhooks Programs/_testembed python-config
589 build_wasm: check-clean-src $(BUILDPYTHON) platform oldsharedmods python-config
592 check-clean-src:
593 @if test -n "$(VPATH)" -a \( \
594 -f "$(srcdir)/Programs/python.o" \
595 -o -f "$(srcdir)\Python/frozen_modules/importlib._bootstrap.h" \
598 …echo "Building Python out of the source tree (in $(abs_builddir)) requires a clean source tree ($(…
599 echo "Try to run: make -C \"$(srcdir)\" clean" ; \
604 profile-clean-stamp:
609 profile-gen-stamp: profile-clean-stamp
611 echo "Error: Cannot perform PGO build because llvm-profdata was not found in PATH" ;\
620 profile-run-stamp:
624 $(MAKE) profile-gen-stamp
629 $(MAKE) clean-retain-profile
632 # to record its completion and avoid re-running it.
645 # Compile Python binary with profile guided optimization.
646 # To force re-running of the profile task, remove the profile-run-stamp file.
647 profile-opt: profile-run-stamp
649 -rm -f profile-clean-stamp
653 .PHONY=coverage coverage-lcov coverage-report
657 $(MAKE) @DEF_MAKE_RULE@ CFLAGS="$(CFLAGS) -O0 -pg --coverage" LDFLAGS="$(LDFLAGS) --coverage"
659 coverage-lcov:
661 @rm -f $(COVERAGE_INFO)
662 @rm -rf $(COVERAGE_REPORT)
663 @lcov $(COVERAGE_LCOV_OPTIONS) --capture \
664 --directory $(abs_builddir) \
665 --base-directory $(realpath $(abs_builddir)) \
666 --path $(realpath $(abs_srcdir)) \
667 --output-file $(COVERAGE_INFO)
670 @lcov $(COVERAGE_LCOV_OPTIONS) --remove $(COVERAGE_INFO) \
676 '*/Python/pyfpe.c' \
677 '*/Python/pystrcmp.c' \
681 --output-file $(COVERAGE_INFO)
683 --output-directory $(COVERAGE_REPORT) \
690 coverage-report: regen-token regen-frozen
696 $(MAKE) coverage-lcov
700 clinic: check-clean-src $(srcdir)/Modules/_blake2/blake2s_impl.c
701 $(PYTHON_FOR_REGEN) $(srcdir)/Tools/clinic/clinic.py --make --srcdir $(srcdir)
704 $(BUILDPYTHON): Programs/python.o $(LINK_PYTHON_DEPS)
705 …$(LINKCC) $(PY_CORE_LDFLAGS) $(LINKFORSHARED) -o $@ Programs/python.o $(LINK_PYTHON_OBJS) $(LIBS) …
708 …$(RUNSHARED) $(PYTHON_FOR_BUILD) -c 'import sys ; from sysconfig import get_platform ; print("%s-%…
710 # Create build directory and generate the sysconfig build-time data there.
712 # sys.path fixup -- see Modules/getpath.c.
715 # initialization to succeed. It will be overwritten by generate-posix-vars
719 $(RUNSHARED) $(PYTHON_FOR_BUILD) -S -m sysconfig --generate-posix-vars ;\
720 if test $$? -ne 0 ; then \
721 echo "generate-posix-vars failed" ; \
722 rm -f ./pybuilddir.txt ; \
726 # blake2s is auto-generated from blake2b
729 $(PYTHON_FOR_REGEN) $(srcdir)/Tools/clinic/clinic.py -f $@
733 # -s, --silent or --quiet is always the first char.
734 # Under BSD make, MAKEFLAGS might be " -s -v x=y".
735 # Ignore macros passed by GNU make, passed after --
737 @case "`echo X $$MAKEFLAGS | sed 's/^X //;s/ -- .*//'`" in \
738 *\ -s*|s*) quiet="-q";; \
749 -rm -f $@
754 …$(BLDSHARED) -Wl,-h$(INSTSONAME) -o $(INSTSONAME) $(LIBRARY_OBJS) $(MODLIBS) $(SHLIBS) $(LIBC) $(L…
755 $(LN) -f $(INSTSONAME) $@; \
757 $(BLDSHARED) -o $@ $(LIBRARY_OBJS) $(MODLIBS) $(SHLIBS) $(LIBC) $(LIBM); \
761 $(BLDSHARED) $(NO_AS_NEEDED) -o $@ -Wl,-h$@ $^
764-dynamiclib -Wl,-single_module $(PY_CORE_LDFLAGS) -undefined dynamic_lookup -Wl,-install_name,$(pr…
767 libpython$(VERSION).sl: $(LIBRARY_OBJS)
768 $(LDSHARED) -o $@ $(LIBRARY_OBJS) $(MODLIBS) $(SHLIBS) $(LIBC) $(LIBM)
771 Modules/python.exp: $(LIBRARY)
774 # Copy up the gdb python hooks into a position where they can be automatically
779 gdbhooks: $(BUILDPYTHON)-gdb.py
782 $(BUILDPYTHON)-gdb.py: $(SRC_GDB_HOOKS)
783 $(INSTALL_DATA) $(SRC_GDB_HOOKS) $(BUILDPYTHON)-gdb.py
789 $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK): \
792 $(INSTALL) -d -m $(DIRMODE) $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)
793 $(CC) -o $(LDLIBRARY) $(PY_CORE_LDFLAGS) -dynamiclib \
794 -all_load $(LIBRARY) -Wl,-single_module \
795 -install_name $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK) \
796 -compatibility_version $(VERSION) \
797 -current_version $(VERSION) \
798 -framework CoreFoundation $(LIBS);
799 $(INSTALL) -d -m $(DIRMODE) \
800 $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Resources/English.lproj
802 $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Resources/Info.plist
803 $(LN) -fsn $(VERSION) $(PYTHONFRAMEWORKDIR)/Versions/Current
804 $(LN) -fsn Versions/Current/$(PYTHONFRAMEWORK) $(PYTHONFRAMEWORKDIR)/$(PYTHONFRAMEWORK)
805 $(LN) -fsn Versions/Current/Resources $(PYTHONFRAMEWORKDIR)/Resources
807 # This rule builds the Cygwin Python DLL and import library if configured
810 if test -n "$(DLLLIBRARY)"; then \
811 $(LDSHARED) -Wl,--out-implib=$@ -o $(DLLLIBRARY) $^ \
816 # wasm32-emscripten browser build
818 # --preload-file turns a relative asset path into an absolute path.
826 --buildroot . --prefix $(prefix)
828 python.html: $(srcdir)/Tools/wasm/python.html python.worker.js
829 @cp $(srcdir)/Tools/wasm/python.html $@
831 python.worker.js: $(srcdir)/Tools/wasm/python.worker.js
832 @cp $(srcdir)/Tools/wasm/python.worker.js $@
844 $(CC) -c $(LIBMPDEC_CFLAGS) -o $@ $(srcdir)/Modules/_decimal/libmpdec/basearith.c
847 $(CC) -c $(LIBMPDEC_CFLAGS) -o $@ $(srcdir)/Modules/_decimal/libmpdec/constants.c
850 $(CC) -c $(LIBMPDEC_CFLAGS) -o $@ $(srcdir)/Modules/_decimal/libmpdec/context.c
853 $(CC) -c $(LIBMPDEC_CFLAGS) -o $@ $(srcdir)/Modules/_decimal/libmpdec/convolute.c
856 $(CC) -c $(LIBMPDEC_CFLAGS) -o $@ $(srcdir)/Modules/_decimal/libmpdec/crt.c
859 $(CC) -c $(LIBMPDEC_CFLAGS) -o $@ $(srcdir)/Modules/_decimal/libmpdec/difradix2.c
862 $(CC) -c $(LIBMPDEC_CFLAGS) -o $@ $(srcdir)/Modules/_decimal/libmpdec/fnt.c
865 $(CC) -c $(LIBMPDEC_CFLAGS) -o $@ $(srcdir)/Modules/_decimal/libmpdec/fourstep.c
868 $(CC) -c $(LIBMPDEC_CFLAGS) -o $@ $(srcdir)/Modules/_decimal/libmpdec/io.c
871 $(CC) -c $(LIBMPDEC_CFLAGS) -o $@ $(srcdir)/Modules/_decimal/libmpdec/mpalloc.c
874 $(CC) -c $(LIBMPDEC_CFLAGS) -o $@ $(srcdir)/Modules/_decimal/libmpdec/mpdecimal.c
877 $(CC) -c $(LIBMPDEC_CFLAGS) -o $@ $(srcdir)/Modules/_decimal/libmpdec/mpsignal.c
880 $(CC) -c $(LIBMPDEC_CFLAGS) -o $@ $(srcdir)/Modules/_decimal/libmpdec/numbertheory.c
883 $(CC) -c $(LIBMPDEC_CFLAGS) -o $@ $(srcdir)/Modules/_decimal/libmpdec/sixstep.c
886 $(CC) -c $(LIBMPDEC_CFLAGS) -o $@ $(srcdir)/Modules/_decimal/libmpdec/transpose.c
889 -rm -f $@
901 $(CC) -c $(LIBEXPAT_CFLAGS) -o $@ $(srcdir)/Modules/expat/xmlparse.c
904 $(CC) -c $(LIBEXPAT_CFLAGS) -o $@ $(srcdir)/Modules/expat/xmlrole.c
907 $(CC) -c $(LIBEXPAT_CFLAGS) -o $@ $(srcdir)/Modules/expat/xmltok.c
910 -rm -f $@
915 # targets. ln --relative is not portable.
921 $(LN) -sf ../../$$mod $$target/`basename $$mod`; \
942 $(SHELL) $(MAKESETUP) -c $(srcdir)/Modules/config.c.in \
943 -s Modules \
949 @echo "The Makefile was updated, you may need to re-run make."
951 .PHONY: regen-test-frozenmain
952 regen-test-frozenmain: $(BUILDPYTHON)
958 .PHONY: regen-re
959 regen-re: $(BUILDPYTHON)
965 …$(LINKCC) $(PY_CORE_LDFLAGS) $(LINKFORSHARED) -o $@ Programs/_testembed.o $(LINK_PYTHON_OBJS) $(LI…
968 # "Bootstrap Python" used to run deepfreeze.py
971 Python/frozen_modules/importlib._bootstrap.h \
972 Python/frozen_modules/importlib._bootstrap_external.h
977 $(LINKCC) $(PY_LDFLAGS_NOLTO) -o $@ $(LIBRARY_OBJS_OMIT_FROZEN) \
986 # _bootstrap_python for freezing and deepfreezing, so users can build Python
987 # without an existing Python installation. Cross builds cannot execute
988 # compiled binaries and therefore rely on an external build Python
989 # interpreter. The build interpreter must have same version and same bytecode
998 # ``./_bootstrap_python Programs/_freeze_module.py``. The pure Python
1003 # 1) create all frozen module headers with external build Python and
1005 # 2) deepfreeze modules with external build Python.
1008 # FROZEN_FILES_* are auto-generated by Tools/scripts/freeze_modules.py.
1035 Python/frozen_modules/importlib._bootstrap.h \
1036 Python/frozen_modules/importlib._bootstrap_external.h \
1037 Python/frozen_modules/zipimport.h \
1038 Python/frozen_modules/abc.h \
1039 Python/frozen_modules/codecs.h \
1040 Python/frozen_modules/io.h \
1041 Python/frozen_modules/_collections_abc.h \
1042 Python/frozen_modules/_sitebuiltins.h \
1043 Python/frozen_modules/genericpath.h \
1044 Python/frozen_modules/ntpath.h \
1045 Python/frozen_modules/posixpath.h \
1046 Python/frozen_modules/os.h \
1047 Python/frozen_modules/site.h \
1048 Python/frozen_modules/stat.h \
1049 Python/frozen_modules/importlib.util.h \
1050 Python/frozen_modules/importlib.machinery.h \
1051 Python/frozen_modules/runpy.h \
1052 Python/frozen_modules/__hello__.h \
1053 Python/frozen_modules/__phello__.h \
1054 Python/frozen_modules/__phello__.ham.h \
1055 Python/frozen_modules/__phello__.ham.eggs.h \
1056 Python/frozen_modules/__phello__.spam.h \
1057 Python/frozen_modules/frozen_only.h
1065 …$(LINKCC) $(PY_CORE_LDFLAGS) -o $@ Programs/_freeze_module.o Modules/getpath_noop.o $(LIBRARY_OBJS…
1068 Python/frozen_modules/getpath.h: Modules/getpath.py $(FREEZE_MODULE_BOOTSTRAP_DEPS)
1069 $(FREEZE_MODULE_BOOTSTRAP) getpath $(srcdir)/Modules/getpath.py Python/frozen_modules/getpath.h
1073 Python/frozen_modules/importlib._bootstrap.h: Lib/importlib/_bootstrap.py $(FREEZE_MODULE_BOOTSTRAP…
1074 …$(FREEZE_MODULE_BOOTSTRAP) importlib._bootstrap $(srcdir)/Lib/importlib/_bootstrap.py Python/froze…
1076 Python/frozen_modules/importlib._bootstrap_external.h: Lib/importlib/_bootstrap_external.py $(FREEZ…
1077 …rtlib._bootstrap_external $(srcdir)/Lib/importlib/_bootstrap_external.py Python/frozen_modules/imp…
1079 Python/frozen_modules/zipimport.h: Lib/zipimport.py $(FREEZE_MODULE_BOOTSTRAP_DEPS)
1080 $(FREEZE_MODULE_BOOTSTRAP) zipimport $(srcdir)/Lib/zipimport.py Python/frozen_modules/zipimport.h
1082 Python/frozen_modules/abc.h: Lib/abc.py $(FREEZE_MODULE_DEPS)
1083 $(FREEZE_MODULE) abc $(srcdir)/Lib/abc.py Python/frozen_modules/abc.h
1085 Python/frozen_modules/codecs.h: Lib/codecs.py $(FREEZE_MODULE_DEPS)
1086 $(FREEZE_MODULE) codecs $(srcdir)/Lib/codecs.py Python/frozen_modules/codecs.h
1088 Python/frozen_modules/io.h: Lib/io.py $(FREEZE_MODULE_DEPS)
1089 $(FREEZE_MODULE) io $(srcdir)/Lib/io.py Python/frozen_modules/io.h
1091 Python/frozen_modules/_collections_abc.h: Lib/_collections_abc.py $(FREEZE_MODULE_DEPS)
1092 …$(FREEZE_MODULE) _collections_abc $(srcdir)/Lib/_collections_abc.py Python/frozen_modules/_collect…
1094 Python/frozen_modules/_sitebuiltins.h: Lib/_sitebuiltins.py $(FREEZE_MODULE_DEPS)
1095 $(FREEZE_MODULE) _sitebuiltins $(srcdir)/Lib/_sitebuiltins.py Python/frozen_modules/_sitebuiltins.h
1097 Python/frozen_modules/genericpath.h: Lib/genericpath.py $(FREEZE_MODULE_DEPS)
1098 $(FREEZE_MODULE) genericpath $(srcdir)/Lib/genericpath.py Python/frozen_modules/genericpath.h
1100 Python/frozen_modules/ntpath.h: Lib/ntpath.py $(FREEZE_MODULE_DEPS)
1101 $(FREEZE_MODULE) ntpath $(srcdir)/Lib/ntpath.py Python/frozen_modules/ntpath.h
1103 Python/frozen_modules/posixpath.h: Lib/posixpath.py $(FREEZE_MODULE_DEPS)
1104 $(FREEZE_MODULE) posixpath $(srcdir)/Lib/posixpath.py Python/frozen_modules/posixpath.h
1106 Python/frozen_modules/os.h: Lib/os.py $(FREEZE_MODULE_DEPS)
1107 $(FREEZE_MODULE) os $(srcdir)/Lib/os.py Python/frozen_modules/os.h
1109 Python/frozen_modules/site.h: Lib/site.py $(FREEZE_MODULE_DEPS)
1110 $(FREEZE_MODULE) site $(srcdir)/Lib/site.py Python/frozen_modules/site.h
1112 Python/frozen_modules/stat.h: Lib/stat.py $(FREEZE_MODULE_DEPS)
1113 $(FREEZE_MODULE) stat $(srcdir)/Lib/stat.py Python/frozen_modules/stat.h
1115 Python/frozen_modules/importlib.util.h: Lib/importlib/util.py $(FREEZE_MODULE_DEPS)
1116 …$(FREEZE_MODULE) importlib.util $(srcdir)/Lib/importlib/util.py Python/frozen_modules/importlib.ut…
1118 Python/frozen_modules/importlib.machinery.h: Lib/importlib/machinery.py $(FREEZE_MODULE_DEPS)
1119 …$(FREEZE_MODULE) importlib.machinery $(srcdir)/Lib/importlib/machinery.py Python/frozen_modules/im…
1121 Python/frozen_modules/runpy.h: Lib/runpy.py $(FREEZE_MODULE_DEPS)
1122 $(FREEZE_MODULE) runpy $(srcdir)/Lib/runpy.py Python/frozen_modules/runpy.h
1124 Python/frozen_modules/__hello__.h: Lib/__hello__.py $(FREEZE_MODULE_DEPS)
1125 $(FREEZE_MODULE) __hello__ $(srcdir)/Lib/__hello__.py Python/frozen_modules/__hello__.h
1127 Python/frozen_modules/__phello__.h: Lib/__phello__/__init__.py $(FREEZE_MODULE_DEPS)
1128 $(FREEZE_MODULE) __phello__ $(srcdir)/Lib/__phello__/__init__.py Python/frozen_modules/__phello__.h
1130 Python/frozen_modules/__phello__.ham.h: Lib/__phello__/ham/__init__.py $(FREEZE_MODULE_DEPS)
1131 …$(FREEZE_MODULE) __phello__.ham $(srcdir)/Lib/__phello__/ham/__init__.py Python/frozen_modules/__p…
1133 Python/frozen_modules/__phello__.ham.eggs.h: Lib/__phello__/ham/eggs.py $(FREEZE_MODULE_DEPS)
1134 …$(FREEZE_MODULE) __phello__.ham.eggs $(srcdir)/Lib/__phello__/ham/eggs.py Python/frozen_modules/__…
1136 Python/frozen_modules/__phello__.spam.h: Lib/__phello__/spam.py $(FREEZE_MODULE_DEPS)
1137 …$(FREEZE_MODULE) __phello__.spam $(srcdir)/Lib/__phello__/spam.py Python/frozen_modules/__phello__…
1139 Python/frozen_modules/frozen_only.h: Tools/freeze/flag.py $(FREEZE_MODULE_DEPS)
1140 $(FREEZE_MODULE) frozen_only $(srcdir)/Tools/freeze/flag.py Python/frozen_modules/frozen_only.h
1146 .PHONY: regen-frozen
1147 regen-frozen: Tools/scripts/freeze_modules.py $(FROZEN_FILES_IN)
1149 @echo "The Makefile was updated, you may need to re-run make."
1154 .PHONY: regen-deepfreeze
1155 regen-deepfreeze: $(DEEPFREEZE_OBJS)
1160 Python/deepfreeze/deepfreeze.c: $(DEEPFREEZE_DEPS)
1162 Python/frozen_modules/importlib._bootstrap.h:importlib._bootstrap \
1163 Python/frozen_modules/importlib._bootstrap_external.h:importlib._bootstrap_external \
1164 Python/frozen_modules/zipimport.h:zipimport \
1165 Python/frozen_modules/abc.h:abc \
1166 Python/frozen_modules/codecs.h:codecs \
1167 Python/frozen_modules/io.h:io \
1168 Python/frozen_modules/_collections_abc.h:_collections_abc \
1169 Python/frozen_modules/_sitebuiltins.h:_sitebuiltins \
1170 Python/frozen_modules/genericpath.h:genericpath \
1171 Python/frozen_modules/ntpath.h:ntpath \
1172 Python/frozen_modules/posixpath.h:posixpath \
1173 Python/frozen_modules/os.h:os \
1174 Python/frozen_modules/site.h:site \
1175 Python/frozen_modules/stat.h:stat \
1176 Python/frozen_modules/importlib.util.h:importlib.util \
1177 Python/frozen_modules/importlib.machinery.h:importlib.machinery \
1178 Python/frozen_modules/runpy.h:runpy \
1179 Python/frozen_modules/__hello__.h:__hello__ \
1180 Python/frozen_modules/__phello__.h:__phello__ \
1181 Python/frozen_modules/__phello__.ham.h:__phello__.ham \
1182 Python/frozen_modules/__phello__.ham.eggs.h:__phello__.ham.eggs \
1183 Python/frozen_modules/__phello__.spam.h:__phello__.spam \
1184 Python/frozen_modules/frozen_only.h:frozen_only \
1185 -o Python/deepfreeze/deepfreeze.c
1188 @echo " so run 'make regen-global-objects' if necessary."
1191 .PHONY: regen-importlib
1192 regen-importlib: regen-frozen
1197 .PHONY: regen-global-objects
1198 regen-global-objects: $(srcdir)/Tools/scripts/generate_global_objects.py
1201 @echo " so be sure to re-run regen-global-objects after those tools."
1206 regen-abidump: all
1208 …abidw "libpython$(LDVERSION).so" --no-architecture --out-file $(srcdir)/Doc/data/python$(LDVERSION…
1209 …@$(UPDATE_FILE) $(srcdir)/Doc/data/python$(LDVERSION).abi $(srcdir)/Doc/data/python$(LDVERSION).ab…
1211 check-abidump: all
1212 …bidiff $(srcdir)/Doc/data/python$(LDVERSION).abi "libpython$(LDVERSION).so" --drop-private-types -…
1214 regen-limited-abi: all
1215 …$(RUNSHARED) ./$(BUILDPYTHON) $(srcdir)/Tools/scripts/stable_abi.py --generate-all $(srcdir)/Misc/…
1220 regen-all: regen-opcode regen-opcode-targets regen-typeslots \
1221 regen-token regen-ast regen-keyword regen-sre regen-frozen clinic \
1222 regen-pegen-metaparser regen-pegen regen-test-frozenmain \
1223 regen-global-objects
1225 @echo "Note: make regen-stdlib-module-names and make regen-configure should be run manually"
1237 $(CC) -c $(PY_CORE_CFLAGS) \
1238 -DGITVERSION="\"`LC_ALL=C $(GITVERSION)`\"" \
1239 -DGITTAG="\"`LC_ALL=C $(GITTAG)`\"" \
1240 -DGITBRANCH="\"`LC_ALL=C $(GITBRANCH)`\"" \
1241 -o $@ $(srcdir)/Modules/getbuildinfo.c
1243 Modules/getpath.o: $(srcdir)/Modules/getpath.c Python/frozen_modules/getpath.h Makefile $(PYTHON_HE…
1244 $(CC) -c $(PY_CORE_CFLAGS) -DPYTHONPATH='"$(PYTHONPATH)"' \
1245 -DPREFIX='"$(prefix)"' \
1246 -DEXEC_PREFIX='"$(exec_prefix)"' \
1247 -DVERSION='"$(VERSION)"' \
1248 -DVPATH='"$(VPATH)"' \
1249 -DPLATLIBDIR='"$(PLATLIBDIR)"' \
1250 -DPYTHONFRAMEWORK='"$(PYTHONFRAMEWORK)"' \
1251 -o $@ $(srcdir)/Modules/getpath.c
1253 Programs/python.o: $(srcdir)/Programs/python.c
1254 $(MAINCC) -c $(PY_CORE_CFLAGS) -o $@ $(srcdir)/Programs/python.c
1257 $(MAINCC) -c $(PY_CORE_CFLAGS) -o $@ $(srcdir)/Programs/_testembed.c
1269 Python/dynload_shlib.o: $(srcdir)/Python/dynload_shlib.c Makefile
1270 $(CC) -c $(PY_CORE_CFLAGS) \
1271 -DSOABI='"$(SOABI)"' \
1272 -o $@ $(srcdir)/Python/dynload_shlib.c
1274 Python/dynload_hpux.o: $(srcdir)/Python/dynload_hpux.c Makefile
1275 $(CC) -c $(PY_CORE_CFLAGS) \
1276 -DSHLIB_EXT='"$(EXT_SUFFIX)"' \
1277 -o $@ $(srcdir)/Python/dynload_hpux.c
1279 Python/sysmodule.o: $(srcdir)/Python/sysmodule.c Makefile $(srcdir)/Include/pydtrace.h
1280 $(CC) -c $(PY_CORE_CFLAGS) \
1281 -DABIFLAGS='"$(ABIFLAGS)"' \
1283 -o $@ $(srcdir)/Python/sysmodule.c
1287 .PHONY: regen-pegen-metaparser
1288 regen-pegen-metaparser:
1290 PYTHONPATH=$(srcdir)/Tools/peg_generator $(PYTHON_FOR_REGEN) -m pegen -q python \
1292 -o $(srcdir)/Tools/peg_generator/pegen/grammar_parser.py.new
1296 .PHONY: regen-pegen
1297 regen-pegen:
1299 PYTHONPATH=$(srcdir)/Tools/peg_generator $(PYTHON_FOR_REGEN) -m pegen -q c \
1300 $(srcdir)/Grammar/python.gram \
1302 -o $(srcdir)/Parser/parser.new.c
1305 .PHONY=regen-ast
1306 regen-ast:
1308 # - Include/internal/pycore_ast.h
1309 # - Include/internal/pycore_ast_state.h
1310 # - Python/Python-ast.c
1312 $(MKDIR_P) $(srcdir)/Python
1314 $(srcdir)/Parser/Python.asdl \
1315 -H $(srcdir)/Include/internal/pycore_ast.h.new \
1316 -I $(srcdir)/Include/internal/pycore_ast_state.h.new \
1317 -C $(srcdir)/Python/Python-ast.c.new
1321 $(UPDATE_FILE) $(srcdir)/Python/Python-ast.c $(srcdir)/Python/Python-ast.c.new
1323 .PHONY: regen-opcode
1324 regen-opcode:
1334 .PHONY: regen-token
1335 regen-token:
1336 # Regenerate Doc/library/token-list.inc from Grammar/Tokens
1340 $(srcdir)/Doc/library/token-list.inc
1357 .PHONY: regen-keyword
1358 regen-keyword:
1359 # Regenerate Lib/keyword.py from Grammar/python.gram and Grammar/Tokens
1361 PYTHONPATH=$(srcdir)/Tools/peg_generator $(PYTHON_FOR_REGEN) -m pegen.keywordgen \
1362 $(srcdir)/Grammar/python.gram \
1367 .PHONY: regen-stdlib-module-names
1368 regen-stdlib-module-names: all Programs/_testembed
1369 # Regenerate Python/stdlib_module_names.h
1373 > $(srcdir)/Python/stdlib_module_names.h.new
1374 $(UPDATE_FILE) $(srcdir)/Python/stdlib_module_names.h $(srcdir)/Python/stdlib_module_names.h.new
1376 regen-sre:
1384 Python/compile.o Python/symtable.o Python/ast_unparse.o Python/ast.o Python/future.o: $(srcdir)/Inc…
1386 Python/getplatform.o: $(srcdir)/Python/getplatform.c
1387 $(CC) -c $(PY_CORE_CFLAGS) -DPLATFORM='"$(MACHDEP)"' -o $@ $(srcdir)/Python/getplatform.c
1389 Python/importdl.o: $(srcdir)/Python/importdl.c
1390 $(CC) -c $(PY_CORE_CFLAGS) -I$(DLINCLDIR) -o $@ $(srcdir)/Python/importdl.c
1433 .PHONY: regen-opcode-targets
1434 regen-opcode-targets:
1435 # Regenerate Python/opcode_targets.h from Lib/opcode.py
1436 # using Python/makeopcodetargets.py
1437 $(PYTHON_FOR_REGEN) $(srcdir)/Python/makeopcodetargets.py \
1438 $(srcdir)/Python/opcode_targets.h.new
1439 $(UPDATE_FILE) $(srcdir)/Python/opcode_targets.h $(srcdir)/Python/opcode_targets.h.new
1441 Python/ceval.o: $(srcdir)/Python/opcode_targets.h $(srcdir)/Python/ceval_gil.h \
1442 $(srcdir)/Python/condvar.h
1444 Python/frozen.o: $(FROZEN_FILES_OUT)
1446 # Generate DTrace probe macros, then rename them (PYTHON_ -> PyDTrace_) to
1451 $(DTRACE) $(DFLAGS) -o $@ -h -s $<
1452 : sed in-place edit with POSIX-only tools
1456 Python/ceval.o: $(srcdir)/Include/pydtrace.h
1457 Python/import.o: $(srcdir)/Include/pydtrace.h
1460 Python/pydtrace.o: $(srcdir)/Include/pydtrace.d $(DTRACE_DEPS)
1461 $(DTRACE) $(DFLAGS) -o $@ -G -s $< $(DTRACE_DEPS)
1465 .PHONY: regen-typeslots
1466 regen-typeslots:
1478 $(srcdir)/Include/Python.h \
1660 $(srcdir)/Python/stdlib_module_names.h
1662 $(LIBRARY_OBJS) $(MODOBJS) Programs/python.o: $(PYTHON_HEADERS)
1675 # Pass TESTOPTS options because it can contain --tempdir option.
1677 $(TESTRUNNER) $(TESTOPTS) --cleanup
1680 # This excludes some tests that are particularly resource-intensive.
1684 # Run the full test suite twice - once without .pyc files, and once with.
1692 -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
1693 $(TESTPYTHON) -E $(srcdir)/Lib/compileall.py
1694 -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
1695 -$(TESTRUNNER) -u all $(TESTOPTS)
1696 $(TESTRUNNER) -u all $(TESTOPTS)
1705 $(TESTRUNNER) -u all $(TESTOPTS)
1707 ./$(BUILDPYTHON) -E -m test -j 0 -u all $(TESTOPTS)
1712 -@if which pybuildbot.identify >/dev/null 2>&1; then \
1715 $(TESTRUNNER) -j 1 -u all -W --slowest --fail-env-changed --timeout=$(TESTTIMEOUT) $(TESTOPTS)
1717 # Like testall, but run Python tests with HOSTRUNNER directly.
1719 $(RUNSHARED) $(HOSTRUNNER) ./$(BUILDPYTHON) -m test -u all $(TESTOPTS)
1722 $(RUNSHARED) $(HOSTRUNNER) ./$(BUILDPYTHON) -m test.pythoninfo
1724 QUICKTESTOPTS= $(TESTOPTS) -x test_subprocess test_io test_lib2to3 \
1736 $(RUNSHARED) ./$(BUILDPYTHON) $(srcdir)/Tools/ssl/multissltests.py --steps=modules
1743 # which can lead to two parallel `./python setup.py build` processes that
1748 upgrade) ensurepip="--upgrade" ;; \
1751 $(RUNSHARED) $(PYTHON_FOR_BUILD) -m ensurepip \
1752 $$ensurepip --root=$(DESTDIR)/ ; \
1758 upgrade) ensurepip="--altinstall --upgrade" ;; \
1759 install|*) ensurepip="--altinstall" ;; \
1761 $(RUNSHARED) $(PYTHON_FOR_BUILD) -m ensurepip \
1762 $$ensurepip --root=$(DESTDIR)/ ; \
1765 commoninstall: check-clean-src @FRAMEWORKALTINSTALLFIRST@ \
1784 if test ! -d $(DESTDIR)$$i; then \
1786 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
1791 # Install the interpreter with $(VERSION) affixed
1796 if test ! -d $(DESTDIR)$$i; then \
1798 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
1802 if test "$(PYTHONFRAMEWORKDIR)" = "no-framework" ; then \
1803 $(INSTALL_PROGRAM) $(BUILDPYTHON) $(DESTDIR)$(BINDIR)/python$(LDVERSION)$(EXE); \
1805 $(INSTALL_PROGRAM) $(STRIPFLAG) Mac/pythonw $(DESTDIR)$(BINDIR)/python$(LDVERSION)$(EXE); \
1807 -if test "$(VERSION)" != "$(LDVERSION)"; then \
1808 …if test -f $(DESTDIR)$(BINDIR)/python$(VERSION)$(EXE) -o -h $(DESTDIR)$(BINDIR)/python$(VERSION)$(…
1809 then rm -f $(DESTDIR)$(BINDIR)/python$(VERSION)$(EXE); \
1811 (cd $(DESTDIR)$(BINDIR); $(LN) python$(LDVERSION)$(EXE) python$(VERSION)$(EXE)); \
1813 @if test "$(PY_ENABLE_SHARED)" = 1 -o "$(STATIC_LIBPYTHON)" = 1; then \
1814 if test -f $(LDLIBRARY) && test "$(PYTHONFRAMEWORKDIR)" = "no-framework" ; then \
1815 if test -n "$(DLLLIBRARY)" ; then \
1820 (cd $(DESTDIR)$(LIBDIR); $(LN) -sf $(INSTSONAME) $(LDLIBRARY)) \
1823 if test -n "$(PY3LIBRARY)"; then \
1830 rm -f $(DESTDIR)$(BINDIR)/python$(VERSION)-32$(EXE); \
1832 -output $(DESTDIR)$(BINDIR)/python$(VERSION)-32$(EXE) \
1833 $(DESTDIR)$(BINDIR)/python$(VERSION)$(EXE); \
1836 rm -f $(DESTDIR)$(BINDIR)/python$(VERSION)-intel64$(EXE); \
1838 -output $(DESTDIR)$(BINDIR)/python$(VERSION)-intel64$(EXE) \
1839 $(DESTDIR)$(BINDIR)/python$(VERSION)$(EXE); \
1843 if test ! -d $(DESTDIR)$(LIBPC); then \
1845 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(LIBPC); \
1847 -if test -f $(DESTDIR)$(BINDIR)/python3$(EXE) -o -h $(DESTDIR)$(BINDIR)/python3$(EXE); \
1848 then rm -f $(DESTDIR)$(BINDIR)/python3$(EXE); \
1851 (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)$(EXE) python3$(EXE))
1852 -if test "$(VERSION)" != "$(LDVERSION)"; then \
1853 rm -f $(DESTDIR)$(BINDIR)/python$(VERSION)-config; \
1854 (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(LDVERSION)-config python$(VERSION)-config); \
1855 rm -f $(DESTDIR)$(LIBPC)/python-$(LDVERSION).pc; \
1856 (cd $(DESTDIR)$(LIBPC); $(LN) -s python-$(VERSION).pc python-$(LDVERSION).pc); \
1857 rm -f $(DESTDIR)$(LIBPC)/python-$(LDVERSION)-embed.pc; \
1858 (cd $(DESTDIR)$(LIBPC); $(LN) -s python-$(VERSION)-embed.pc python-$(LDVERSION)-embed.pc); \
1860 -rm -f $(DESTDIR)$(BINDIR)/python3-config
1861 (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)-config python3-config)
1862 -rm -f $(DESTDIR)$(LIBPC)/python3.pc
1863 (cd $(DESTDIR)$(LIBPC); $(LN) -s python-$(VERSION).pc python3.pc)
1864 -rm -f $(DESTDIR)$(LIBPC)/python3-embed.pc
1865 (cd $(DESTDIR)$(LIBPC); $(LN) -s python-$(VERSION)-embed.pc python3-embed.pc)
1866 -rm -f $(DESTDIR)$(BINDIR)/idle3
1867 (cd $(DESTDIR)$(BINDIR); $(LN) -s idle$(VERSION) idle3)
1868 -rm -f $(DESTDIR)$(BINDIR)/pydoc3
1869 (cd $(DESTDIR)$(BINDIR); $(LN) -s pydoc$(VERSION) pydoc3)
1870 -rm -f $(DESTDIR)$(BINDIR)/2to3
1871 (cd $(DESTDIR)$(BINDIR); $(LN) -s 2to3-$(VERSION) 2to3)
1873 rm -f $(DESTDIR)$(BINDIR)/python3-32$(EXE); \
1874 (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)-32$(EXE) python3-32$(EXE)) \
1877 rm -f $(DESTDIR)$(BINDIR)/python3-intel64$(EXE); \
1878 (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)-intel64$(EXE) python3-intel64$(EXE)) \
1885 if test ! -d $(DESTDIR)$$i; then \
1887 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
1891 $(INSTALL_DATA) $(srcdir)/Misc/python.man \
1892 $(DESTDIR)$(MANDIR)/man1/python$(VERSION).1
1896 -rm -f $(DESTDIR)$(MANDIR)/man1/python3.1
1897 (cd $(DESTDIR)$(MANDIR)/man1; $(LN) -s python$(VERSION).1 python3.1)
1922 site-packages \
2018 test/test_tomllib/data/invalid/array-of-tables \
2020 test/test_tomllib/data/invalid/dates-and-times \
2021 test/test_tomllib/data/invalid/dotted-keys \
2022 test/test_tomllib/data/invalid/inline-table \
2023 test/test_tomllib/data/invalid/keys-and-vals \
2024 test/test_tomllib/data/invalid/literal-str \
2025 test/test_tomllib/data/invalid/multiline-basic-str \
2026 test/test_tomllib/data/invalid/multiline-literal-str \
2030 test/test_tomllib/data/valid/dates-and-times \
2031 test/test_tomllib/data/valid/multiline-basic-str \
2040 test/xmltestdata/c14n-20 \
2052 if test ! -d $(DESTDIR)$$i; then \
2054 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
2066 if test ! -d $$a; then continue; else true; fi; \
2068 if test ! -d $(DESTDIR)$$b; then \
2070 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$b; \
2076 if test -x $$i; then \
2092 if test ! -d $$a; then continue; else true; fi; \
2093 if test `ls $$a | wc -l` -lt 1; then continue; fi; \
2103 if test -d $$i; then continue; fi; \
2104 if test -x $$i; then \
2117 if test -d $(DESTDIR)$(LIBDEST)/distutils/tests; then \
2121 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
2122 $(PYTHON_FOR_BUILD) -Wi $(DESTDIR)$(LIBDEST)/compileall.py \
2123 -j0 -d $(LIBDEST) -f \
2124 -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
2126 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
2127 $(PYTHON_FOR_BUILD) -Wi -O $(DESTDIR)$(LIBDEST)/compileall.py \
2128 -j0 -d $(LIBDEST) -f \
2129 -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
2131 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
2132 $(PYTHON_FOR_BUILD) -Wi -OO $(DESTDIR)$(LIBDEST)/compileall.py \
2133 -j0 -d $(LIBDEST) -f \
2134 -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
2136 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
2137 $(PYTHON_FOR_BUILD) -Wi $(DESTDIR)$(LIBDEST)/compileall.py \
2138 -j0 -d $(LIBDEST)/site-packages -f \
2139 -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
2140 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
2141 $(PYTHON_FOR_BUILD) -Wi -O $(DESTDIR)$(LIBDEST)/compileall.py \
2142 -j0 -d $(LIBDEST)/site-packages -f \
2143 -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
2144 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
2145 $(PYTHON_FOR_BUILD) -Wi -OO $(DESTDIR)$(LIBDEST)/compileall.py \
2146 -j0 -d $(LIBDEST)/site-packages -f \
2147 -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
2148 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
2149 $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/Grammar.txt
2150 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
2151 $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/PatternGrammar.txt
2153 # bpo-21536: Misc/python-config.sh is generated in the build directory
2154 # from $(srcdir)Misc/python-config.sh.in.
2155 python-config: $(srcdir)/Misc/python-config.in Misc/python-config.sh
2156 @ # Substitution happens here, as the completely-expanded BINDIR
2158 …sed -e "s,@EXENAME@,$(BINDIR)/python$(LDVERSION)$(EXE)," < $(srcdir)/Misc/python-config.in >python…
2159 @ # Replace makefile compat. variable references with shell script compat. ones; $(VAR) -> ${VAR}
2160 LC_ALL=C sed -e 's,\$$(\([A-Za-z0-9_]*\)),\$$\{\1\},g' < Misc/python-config.sh >python-config
2161 @ # On Darwin, always use the python version of the script, the shell
2162 @ # version doesn't use the compiler customizations that are provided
2163 @ # in python (_osx_support.py).
2164 @if test `uname -s` = Darwin; then \
2165 cp python-config.py python-config; \
2174 if test ! -d $(DESTDIR)$$i; then \
2176 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
2180 @if test ! -d $(DESTDIR)$(INCLUDEPY)/cpython; then \
2182 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(INCLUDEPY)/cpython; \
2185 @if test ! -d $(DESTDIR)$(INCLUDEPY)/internal; then \
2187 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(INCLUDEPY)/internal; \
2214 libainstall: all python-config
2217 if test ! -d $(DESTDIR)$$i; then \
2219 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
2224 if test -d $(LIBRARY); then :; else \
2225 if test "$(PYTHONFRAMEWORKDIR)" = no-framework; then \
2232 echo Skip install of $(LIBRARY) - use make frameworkinstall; \
2235 $(INSTALL_DATA) Programs/python.o $(DESTDIR)$(LIBPL)/python.o; \
2244 $(INSTALL_DATA) Misc/python.pc $(DESTDIR)$(LIBPC)/python-$(VERSION).pc
2245 $(INSTALL_DATA) Misc/python-embed.pc $(DESTDIR)$(LIBPC)/python-$(VERSION)-embed.pc
2247 $(INSTALL_SCRIPT) $(srcdir)/install-sh $(DESTDIR)$(LIBPL)/install-sh
2248 $(INSTALL_SCRIPT) python-config.py $(DESTDIR)$(LIBPL)/python-config.py
2249 $(INSTALL_SCRIPT) python-config $(DESTDIR)$(BINDIR)/python$(LDVERSION)-config
2250 @if [ -s Modules/python.exp -a \
2253 $(INSTALL_DATA) Modules/python.exp \
2254 $(DESTDIR)$(LIBPL)/python.exp; \
2255 echo; echo "$(LIBPL)/python.exp"; \
2270 --prefix=$(prefix) \
2271 --install-scripts=$(BINDIR) \
2272 --install-platlib=$(DESTSHARED) \
2273 --root=$(DESTDIR)/
2274 -rm $(DESTDIR)$(DESTSHARED)/_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH).py
2275 -rm -r $(DESTDIR)$(DESTSHARED)/__pycache__
2278 # framework-based Python. frameworkinstall installs everything, the
2283 # This target is here for backward compatibility, previous versions of Python
2287 # On install, we re-make the framework
2289 # --enable-framework. If --enable-framework has been specified then we have
2296 @if test "$(PYTHONFRAMEWORKDIR)" = no-framework; then \
2297 echo Not configured with --enable-framework; \
2302 if test ! -d $(DESTDIR)$$i; then \
2304 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
2308 $(LN) -fsn include/python$(LDVERSION) $(DESTDIR)$(prefix)/Headers
2309 …sed 's/%VERSION%/'"`$(RUNSHARED) ./$(BUILDPYTHON) -c 'import platform; print(platform.python_versi…
2310 $(LN) -fsn $(VERSION) $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Versions/Current
2311 …$(LN) -fsn Versions/Current/$(PYTHONFRAMEWORK) $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/$(PYTHONFRAM…
2312 $(LN) -fsn Versions/Current/Headers $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Headers
2313 $(LN) -fsn Versions/Current/Resources $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Resources
2318 # install (which includes python-config) happy.
2320 $(LN) -fs "../../../$(PYTHONFRAMEWORK)" "$(DESTDIR)$(LIBPL)/libpython$(LDVERSION).a"
2321 $(LN) -fs "../../../$(PYTHONFRAMEWORK)" "$(DESTDIR)$(LIBPL)/libpython$(LDVERSION).dylib"
2322 $(LN) -fs "../../../$(PYTHONFRAMEWORK)" "$(DESTDIR)$(LIBPL)/libpython$(VERSION).a"
2323 $(LN) -fs "../../../$(PYTHONFRAMEWORK)" "$(DESTDIR)$(LIBPL)/libpython$(VERSION).dylib"
2324 $(LN) -fs "../$(PYTHONFRAMEWORK)" "$(DESTDIR)$(prefix)/lib/libpython$(LDVERSION).dylib"
2325 $(LN) -fs "../$(PYTHONFRAMEWORK)" "$(DESTDIR)$(prefix)/lib/libpython$(VERSION).dylib"
2337 # This installs the python* and other bin symlinks in $prefix/bin or in
2353 $(MAKE) -f Makefile.pre Makefile
2363 $(CC) -c $(PY_CORE_CFLAGS) -o $@ $<
2365 # bpo-30104: dtoa.c uses union to cast double to unsigned long[2]. clang 4.0
2366 # with -O2 or higher and strict aliasing miscompiles the ratio() function
2367 # causing rounding issues. Compile dtoa.c using -fno-strict-aliasing on clang.
2369 Python/dtoa.o: Python/dtoa.c
2370 $(CC) -c $(PY_CORE_CFLAGS) $(CFLAGS_ALIASING) -o $@ $<
2374 ./$(BUILDPYTHON) $(srcdir)/Tools/scripts/reindent.py -r $(srcdir)/Lib
2379 $(SHELL) config.status --recheck
2385 (cd $(srcdir); autoreconf -ivf -Werror)
2387 .PHONY: regen-configure
2388 regen-configure:
2389 @if command -v podman >/dev/null; then RUNTIME="podman"; else RUNTIME="docker"; fi; \
2390 …if ! command -v $$RUNTIME; then echo "$@ needs either Podman or Docker container runtime." >&2; ex…
2391 if command -v selinuxenabled >/dev/null && selinuxenabled; then OPT=":Z"; fi; \
2392 …CMD="$$RUNTIME run --rm --pull=always -v $(abs_srcdir):/src$$OPT quay.io/tiran/cpython_autoconf:26…
2398 ctags -w $(srcdir)/Include/*.h $(srcdir)/Include/cpython/*.h $(srcdir)/Include/internal/*.h
2399 for i in $(SRCDIRS); do ctags -f tags -w -a $(srcdir)/$$i/*.[ch]; done
2400 ctags -f tags -w -a $(srcdir)/Modules/_ctypes/*.[ch]
2401 …r)/Lib -type f -name "*.py" -not -name "test_*.py" -not -path "*/test/*" -not -path "*/tests/*" -n…
2402 LC_ALL=C sort -o tags tags
2408 for i in $(SRCDIRS); do etags -a $$i/*.[ch]; done
2409 etags -a $(srcdir)/Modules/_ctypes/*.[ch]
2410 …$(srcdir)/Lib -type f -name "*.py" -not -name "test_*.py" -not -path "*/test/*" -not -path "*/test…
2412 # Sanitation targets -- clean leaves libraries, executables and tags
2415 -find $(srcdir) -depth -name '__pycache__' -exec rm -rf {} ';'
2416 -find $(srcdir) -name '*.py[co]' -exec rm -f {} ';'
2419 -rm -f *BAD *GOOD *SKIPPED
2420 -rm -rf OUT
2421 -rm -f *.TXT
2422 -rm -f *.txt
2423 -rm -f gb-18030-2000.xml
2426 $(MAKE) -C $(srcdir)/Doc clean
2430 clean-retain-profile: pycremoval
2431 find . -name '*.[oa]' -exec rm -f {} ';'
2432 find . -name '*.s[ol]' -exec rm -f {} ';'
2433 find . -name '*.so.[0-9]*.[0-9]*' -exec rm -f {} ';'
2434 find . -name '*.wasm' -exec rm -f {} ';'
2435 find . -name '*.lst' -exec rm -f {} ';'
2436 find build -name 'fficonfig.h' -exec rm -f {} ';' || true
2437 find build -name '*.py' -exec rm -f {} ';' || true
2438 find build -name '*.py[co]' -exec rm -f {} ';' || true
2439 -rm -f pybuilddir.txt
2440 -rm -f Lib/lib2to3/*Grammar*.pickle
2441 -rm -f _bootstrap_python
2442 -rm -f python.html python*.js python.data python*.symbols python*.map
2443 -rm -f $(WASM_STDLIB)
2444 -rm -f Programs/_testembed Programs/_freeze_module
2445 -rm -f Python/deepfreeze/*.[co]
2446 -rm -f Python/frozen_modules/*.h
2447 -rm -f Python/frozen_modules/MANIFEST
2448 -find build -type f -a ! -name '*.gc??' -exec rm -f {} ';'
2449 -rm -f Include/pydtrace_probes.h
2450 -rm -f profile-gen-stamp
2452 profile-removal:
2453 find . -name '*.gc??' -exec rm -f {} ';'
2454 find . -name '*.profclang?' -exec rm -f {} ';'
2455 find . -name '*.dyn' -exec rm -f {} ';'
2456 rm -f $(COVERAGE_INFO)
2457 rm -rf $(COVERAGE_REPORT)
2458 rm -f profile-run-stamp
2460 clean: clean-retain-profile
2461 @if test @DEF_MAKE_ALL_RULE@ = profile-opt; then \
2462 rm -f profile-gen-stamp profile-clean-stamp; \
2463 $(MAKE) profile-removal; \
2467 -rm -f $(BUILDPYTHON) $(LIBRARY) $(LDLIBRARY) $(DLLLIBRARY) \
2470 -rm -rf build platform
2471 -rm -rf $(PYTHONFRAMEWORKDIR)
2472 -rm -f python-config.py python-config
2476 # Keep configure and Python-ast.[ch], it's possible they can't be generated
2481 -rm -f core Makefile Makefile.pre config.status Modules/Setup.local \
2483 Modules/ld_so_aix Modules/python.exp Misc/python.pc \
2484 Misc/python-embed.pc Misc/python-config.sh
2485 -rm -f python*-gdb.py
2490 LC_ALL=C; find $(srcdir)/[a-zA-Z]* '(' -name '*.fdc' -o -name '*~' \
2491 -o -name '[@,#]*' -o -name '*.old' \
2492 -o -name '*.orig' -o -name '*.rej' \
2493 -o -name '*.bak' ')' \
2494 -exec rm -f {} ';'
2503 -type d \
2504 -o -name '*.[chs]' \
2505 -o -name '*.py' \
2506 -o -name '*.pyw' \
2507 -o -name '*.dat' \
2508 -o -name '*.el' \
2509 -o -name '*.fd' \
2510 -o -name '*.in' \
2511 -o -name '*.gif' \
2512 -o -name '*.txt' \
2513 -o -name '*.xml' \
2514 -o -name '*.xbm' \
2515 -o -name '*.xpm' \
2516 -o -name '*.uue' \
2517 -o -name '*.decTest' \
2518 -o -name '*.tmCommand' \
2519 -o -name '*.tmSnippet' \
2520 -o -name 'Setup' \
2521 -o -name 'Setup.*' \
2522 -o -name README \
2523 -o -name NEWS \
2524 -o -name HISTORY \
2525 -o -name Makefile \
2526 -o -name ChangeLog \
2527 -o -name .hgignore \
2528 -o -name MANIFEST \
2529 -o -print
2535 check-limited-abi: all
2536 …$(RUNSHARED) ./$(BUILDPYTHON) $(srcdir)/Tools/scripts/stable_abi.py --all $(srcdir)/Misc/stable_ab…
2538 .PHONY: update-config
2539 update-config:
2540 …curl -sL -o config.guess 'https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.…
2541 …curl -sL -o config.sub 'https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.su…
2546 Python/thread.o: @THREADHEADERS@ $(srcdir)/Python/condvar.h
2549 .PHONY: all build_all build_wasm sharedmods check-clean-src oldsharedmods test quicktest
2556 .PHONY: clean-retain-profile profile-removal run_profile_task
2567-config.h $(srcdir)/Modules/_blake2/impl/blake2-impl.h $(srcdir)/Modules/_blake2/impl/blake2.h $(s…