mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-43103: Add configure --without-static-libpython (GH-24418)
Add a new configure --without-static-libpython option to not build the libpythonMAJOR.MINOR.a static library and not install the python.o object file. Fix smelly.py and stable_abi.py tools when libpython3.10.a is missing.
This commit is contained in:
parent
6a4177516b
commit
801bb0b503
7 changed files with 113 additions and 25 deletions
|
@ -2,8 +2,9 @@
|
|||
|
||||
import argparse
|
||||
import glob
|
||||
import re
|
||||
import os.path
|
||||
import pathlib
|
||||
import re
|
||||
import subprocess
|
||||
import sys
|
||||
import sysconfig
|
||||
|
@ -213,7 +214,8 @@ def check_symbols(parser_args):
|
|||
LIBRARY = sysconfig.get_config_var("LIBRARY")
|
||||
if not LIBRARY:
|
||||
raise Exception("failed to get LIBRARY variable from sysconfig")
|
||||
check_library(parser_args.stable_abi_file, LIBRARY, abi_funcs)
|
||||
if os.path.exists(LIBRARY):
|
||||
check_library(parser_args.stable_abi_file, LIBRARY, abi_funcs)
|
||||
|
||||
# dynamic library
|
||||
LDLIBRARY = sysconfig.get_config_var("LDLIBRARY")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue