Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e0a669e5
Commit
e0a669e5
authored
Dec 15, 2011
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Close #13596: Only recompile Lib/_sysconfigdata.py when needed
parent
57c9c7b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
Makefile.pre.in
Makefile.pre.in
+7
-6
No files found.
Makefile.pre.in
View file @
e0a669e5
...
...
@@ -379,6 +379,7 @@ OBJECT_OBJS= \
Objects/unicodectype.o
\
Objects/weakrefobject.o
SYSCONFIGDATA
=
$(srcdir)
/Lib/_sysconfigdata.py
##########################################################################
# objects that get linked into the Python library
...
...
@@ -396,7 +397,7 @@ LIBRARY_OBJS= \
# Default target
all
:
build_all
build_all
:
$(BUILDPYTHON)
sysconfig
oldsharedmods sharedmods gdbhooks Modules/_testembed
build_all
:
$(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 $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY)
$(LINKCC)
$(PY_LDFLAGS)
$(LINKFORSHARED)
-o
$@
Modules/python.o
$(BLDLIBRARY)
$(LIBS)
$(MODLIBS)
$(SYSLIBS)
$(LDLAST)
platform
:
$(BUILDPYTHON)
sysconfig
platform
:
$(BUILDPYTHON)
$(SYSCONFIGDATA)
$(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)
./
$(BUILDPYTHON)
-SE
-m
sysconfig
--generate-posix-vars
# Build the shared modules
sharedmods
:
$(BUILDPYTHON)
sysconfig
sharedmods
:
$(BUILDPYTHON)
$(SYSCONFIGDATA)
@
case
$$
MAKEFLAGS
in
\
*
s
*
)
$(RUNSHARED)
CC
=
'
$(CC)
'
LDSHARED
=
'
$(BLDSHARED)
'
OPT
=
'
$(OPT)
'
./
$(BUILDPYTHON)
-E
$(srcdir)
/setup.py
-q
build
;;
\
*
)
$(RUNSHARED)
CC
=
'
$(CC)
'
LDSHARED
=
'
$(BLDSHARED)
'
OPT
=
'
$(OPT)
'
./
$(BUILDPYTHON)
-E
$(srcdir)
/setup.py build
;;
\
...
...
@@ -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 s
ysconfig s
haredmods 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment