cpython: 06d83098d9a9 (original) (raw)
Mercurial > cpython
changeset 73990:06d83098d9a9
Close #13596: Only recompile Lib/_sysconfigdata.py when needed [#13596]
Victor Stinner victor.stinner@haypocalc.com | |
---|---|
date | Thu, 15 Dec 2011 21:48:39 +0100 |
parents | df5c28c01deb |
children | df57bea858f3 |
files | Makefile.pre.in |
diffstat | 1 files changed, 7 insertions(+), 6 deletions(-)[+] [-] Makefile.pre.in 13 |
line wrap: on
line diff
--- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -379,6 +379,7 @@ OBJECT_OBJS= [](#l1.3) Objects/unicodectype.o [](#l1.4) Objects/weakrefobject.o +SYSCONFIGDATA=$(srcdir)/Lib/_sysconfigdata.py ##########################################################################
objects that get linked into the Python library
@@ -396,7 +397,7 @@ LIBRARY_OBJS= [](#l1.11)
Default target
all: build_all -build_all: $(BUILDPYTHON) sysconfig oldsharedmods sharedmods gdbhooks Modules/_testembed +build_all: (BUILDPYTHON)(BUILDPYTHON) (BUILDPYTHON)(SYSCONFIGDATA) oldsharedmods sharedmods gdbhooks Modules/_testembed
Compile a binary with gcc profile guided optimization.
profile-opt: @@ -429,15 +430,15 @@ coverage: (BUILDPYTHON):Modules/python.o(BUILDPYTHON): Modules/python.o (BUILDPYTHON):Modules/python.o(LIBRARY) (LDLIBRARY)(LDLIBRARY) (LDLIBRARY)(PY3LIBRARY) (LINKCC)(LINKCC) (LINKCC)(PY_LDFLAGS) (LINKFORSHARED)−o(LINKFORSHARED) -o (LINKFORSHARED)−o@ Modules/python.o (BLDLIBRARY)(BLDLIBRARY) (BLDLIBRARY)(LIBS) (MODLIBS)(MODLIBS) (MODLIBS)(SYSLIBS) $(LDLAST) -platform: $(BUILDPYTHON) sysconfig +platform: (BUILDPYTHON)(BUILDPYTHON) (BUILDPYTHON)(SYSCONFIGDATA) (RUNSHARED)./(RUNSHARED) ./(RUNSHARED)./(BUILDPYTHON) -E -c 'import sys ; from sysconfig import get_platform ; print(get_platform()+"-"+sys.version[0:3])' >platform
Generate the sysconfig build-time data
-sysconfig: $(BUILDPYTHON) +$(SYSCONFIGDATA): $(BUILDPYTHON) (RUNSHARED)./(RUNSHARED) ./(RUNSHARED)./(BUILDPYTHON) -SE -m sysconfig --generate-posix-vars
Build the shared modules
-sharedmods: $(BUILDPYTHON) sysconfig +sharedmods: (BUILDPYTHON)(BUILDPYTHON) (BUILDPYTHON)(SYSCONFIGDATA) @case MAKEFLAGS in [](#l1.36) s) (RUNSHARED)CC=′(RUNSHARED) CC='(RUNSHARED)CC=′(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' ./$(BUILDPYTHON) -E $(srcdir)/setup.py -q build;; [](#l1.37) *) (RUNSHARED)CC=′(RUNSHARED) CC='(RUNSHARED)CC=′(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' ./$(BUILDPYTHON) -E $(srcdir)/setup.py build;; [](#l1.38) @@ -1315,7 +1316,7 @@ clean: pycremoval find build -name 'fficonfig.h' -exec rm -f {} ';' || true find build -name 'fficonfig.py' -exec rm -f {} ';' || true -rm -f Lib/lib2to3/Grammar.pickle - -rm -f Lib/_sysconfigdata.py + -rm -f $(SYSCONFIGDATA) -rm -f Modules/_testembed profile-removal: @@ -1393,7 +1394,7 @@ patchcheck: Python/thread.o: @THREADHEADERS@
Declare targets that aren't real files
-.PHONY: all build_all sysconfig sharedmods oldsharedmods test quicktest +.PHONY: all build_all sharedmods oldsharedmods test quicktest .PHONY: install altinstall oldsharedinstall bininstall altbininstall .PHONY: maninstall libinstall inclinstall libainstall sharedinstall .PHONY: frameworkinstall frameworkinstallframework frameworkinstallstructure