• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:add +full:- +full:missing

36     # bpo-41282 (PEP 632) deprecated distutils but setup.py still uses it
63 # --list-module-names option used by Tools/scripts/generate_module_names.py
95 Python is an interpreted, interactive, object-oriented programming
102 Mac, MFC). New built-in modules are easily written in C or C++. Python
109 it. Ask around on comp.lang.python -- or just try compiling Python
114 Development Status :: 6 - Mature
130 # See bpo-21121 and bpo-35257
138 """Add the directory 'dir' to the list 'dirlist' (after any relative
154 """Get the paths of sysroot sub-directories.
166 m = re.search(r'--sysroot=([^"]\S*|"[^"]+")', var)
190 The SDK paths used by Apple-supplied tool chains depend on the
201 m = re.search(r'-isysroot\s*(\S+)', cflags)
217 --enable-universalsdk=(something other than no or /) or by adding a
218 -isysroot option to CFLAGS. In some cases, like when making
254 and returns a possibly-empty list of additional directories, or None
379 self.missing = []
381 if '-j' in os.environ.get('MAKEFLAGS', ''):
384 def add(self, ext): member in PyBuildExt
426 # re-compile extensions if a header file has been changed
489 for name in self.missing:
517 print("%-*s %-*s %-*s" % (longest, e, longest, f,
520 if self.missing:
525 print_three_column(self.missing)
571 for l in (self.missing, self.failed, self.failed_on_import)):
576 print("Custom linker flags may require --with-openssl-rpath=auto")
605 # Workaround for Mac OS X: The Carbon-based modules cannot be
606 # reliably imported into a command-line Python
609 'WARNING: skipping import check for Carbon-based "%s"' %
614 sys.maxsize > 2**32 and '-arch' in ext.extra_link_args):
616 # build with an explicit '-arch' flag on OSX. That's currently
617 # only used to build 32-bit only extensions in a 4-way
618 # universal build and loading 32-bit code into a 64-bit
628 self.announce('WARNING: skipping import check for Cygwin-based "%s"'
674 '%s -print-multiarch > %s 2> /dev/null' % (CC, tmpfile))
690 if not find_executable('dpkg-architecture'):
694 opt = '-t' + sysconfig.get_config_var('HOST_GNU_TYPE')
699 'dpkg-architecture %s -qDEB_HOST_MULTIARCH > %s 2> /dev/null' %
713 # add library search path by wr-cc, the compiler wrapper
739 ret = run_command('%s --print-search-dirs >%s' % (CC, tmpfile))
760 ret = run_command('%s -E -v - </dev/null 2>%s 1>/dev/null' % (CC, tmpfile))
792 # Add paths specified in the environment variables LDFLAGS and
799 ('LDFLAGS', '-R', self.compiler.runtime_library_dirs),
800 ('LDFLAGS', '-L', self.compiler.library_dirs),
801 ('CPPFLAGS', '-I', self.compiler.include_dirs)):
813 # strip out double-dashes first so that we don't end up with
814 # substituting "--Long" to "-Long" and thus lead to "ong" being
816 env_val = re.sub(r'(^|\s+)-(-|(?!%s))' % arg_name[1],
840 # OSX note: Don't add LIBDIR and INCLUDEDIR to building a framework
853 # be assumed that no additional -I,-L directives are needed.
858 # Add the sysroot paths. 'sysroot' is a compiler option used to
871 # OSF/1 and Unixware have some stuff in /usr/ccs/lib (like -ldb)
875 # HP-UX11iv3 keeps files in lib/hpux folders.
876 if HOST_PLATFORM == 'hp-ux11':
880 # This should work on any unixy platform ;-)
881 # If the user has bothered specifying additional -I and -L flags
890 if item.startswith('-I'):
894 if item.startswith('-L'):
904 self.add(Extension('array', ['arraymodule.c'],
905 extra_compile_args=['-DPy_BUILD_CORE_MODULE']))
908 self.add(Extension('_contextvars', ['_contextvarsmodule.c']))
913 self.add(Extension('math', ['mathmodule.c'],
914 extra_compile_args=['-DPy_BUILD_CORE_MODULE'],
920 self.add(Extension('cmath', ['cmathmodule.c'],
921 extra_compile_args=['-DPy_BUILD_CORE_MODULE'],
933 self.add(Extension('time', ['timemodule.c'],
937 self.add(Extension('_datetime', ['_datetimemodule.c'],
939 extra_compile_args=['-DPy_BUILD_CORE_MODULE']))
941 self.add(Extension('_zoneinfo', ['_zoneinfo.c'],
942 extra_compile_args=['-DPy_BUILD_CORE_MODULE']))
944 self.add(Extension("_random", ["_randommodule.c"],
945 extra_compile_args=['-DPy_BUILD_CORE_MODULE']))
947 self.add(Extension("_bisect", ["_bisectmodule.c"]))
949 self.add(Extension("_heapq", ["_heapqmodule.c"],
950 extra_compile_args=['-DPy_BUILD_CORE_MODULE']))
951 # C-optimized pickle replacement
952 self.add(Extension("_pickle", ["_pickle.c"],
953 extra_compile_args=['-DPy_BUILD_CORE_MODULE']))
955 self.add(Extension("_json", ["_json.c"],
956 extra_compile_args=['-DPy_BUILD_CORE_MODULE']))
959 self.add(Extension('_lsprof', ['_lsprof.c', 'rotatingtree.c']))
961 self.add(Extension('unicodedata', ['unicodedata.c'],
963 extra_compile_args=['-DPy_BUILD_CORE_MODULE']))
965 self.add(Extension('_opcode', ['_opcode.c']))
967 self.add(Extension("_asyncio", ["_asynciomodule.c"],
968 extra_compile_args=['-DPy_BUILD_CORE_MODULE']))
970 self.add(Extension("_abc", ["_abc.c"],
971 extra_compile_args=['-DPy_BUILD_CORE_MODULE']))
973 self.add(Extension("_queue", ["_queuemodule.c"],
974 extra_compile_args=['-DPy_BUILD_CORE_MODULE']))
976 self.add(Extension("_statistics", ["_statisticsmodule.c"]))
978 # Modules with some UNIX dependencies -- on by default:
987 self.add(Extension('fcntl', ['fcntlmodule.c'],
990 self.add(Extension('pwd', ['pwdmodule.c']))
993 self.add(Extension('grp', ['grpmodule.c']))
997 self.add(Extension('spwd', ['spwdmodule.c']))
999 # module support is not expected so it not 'missing'
1001 self.missing.append('spwd')
1004 self.add(Extension('select', ['selectmodule.c']))
1006 # Memory-mapped files (also works on Win32).
1007 self.add(Extension('mmap', ['mmapmodule.c']))
1011 self.add(Extension('syslog', ['syslogmodule.c']))
1013 # Python interface to subinterpreter C-API.
1014 self.add(Extension('_xxsubinterpreters', ['_xxsubinterpretersmodule.c']))
1018 # libraries, are platform-specific, or present other surprises.
1022 # These don't work for 64-bit platforms!!!
1027 # 64-bit platforms.
1030 self.add(Extension('audioop', ['audioop.c'],
1034 self.add(Extension('_csv', ['_csv.c']))
1037 self.add(Extension('_posixsubprocess', ['_posixsubprocess.c'],
1038 extra_compile_args=['-DPy_BUILD_CORE_MODULE']))
1042 self.add(Extension('_testcapi', ['_testcapimodule.c'],
1046 self.add(Extension('_testinternalcapi', ['_testinternalcapi.c'],
1047 extra_compile_args=['-DPy_BUILD_CORE_MODULE']))
1049 # Python PEP-3118 (buffer protocol) test module
1050 self.add(Extension('_testbuffer', ['_testbuffer.c']))
1053 self.add(Extension('_testimportmultiple', ['_testimportmultiple.c']))
1055 # Test multi-phase extension module init (PEP 489)
1056 self.add(Extension('_testmultiphase', ['_testmultiphase.c']))
1059 self.add(Extension('_xxtestfuzz',
1080 ret = run_command("%s -d %s | grep '(NEEDED)' > %s"
1138 readline_extra_link_args = ('-Wl,-search_paths_first',)
1151 self.add(Extension('readline', ['readline.c'],
1156 self.missing.append('readline')
1172 # libpanelw. If we are here, we found a locally-supplied
1179 # Building with the system-suppied combined libncurses/libpanel
1186 self.add(Extension('_curses', ['_cursesmodule.c'],
1187 extra_compile_args=['-DPy_BUILD_CORE_MODULE'],
1201 self.add(Extension('_curses', ['_cursesmodule.c'],
1202 extra_compile_args=['-DPy_BUILD_CORE_MODULE'],
1207 self.missing.append('_curses')
1214 self.add(Extension('_curses_panel', ['_curses_panel.c'],
1219 self.missing.append('_curses_panel')
1224 # bpo-31904: crypt() function is not provided by VxWorks.
1227 self.missing.append('_crypt')
1235 self.add(Extension('_crypt', ['_cryptmodule.c'], libraries=libs))
1242 kwargs['extra_compile_args'] = ['-D__APPLE_USE_RFC_3542']
1244 self.add(Extension('_socket', ['socketmodule.c'], **kwargs))
1247 # Modules that provide persistent dictionary-like semantics. You will
1307 db_inc_paths.append('/pkg/db-4.%d/include' % x)
1308 db_inc_paths.append('/opt/db-4.%d/include' % x)
1316 db_inc_paths.append('/pkg/db-3.%d/include' % x)
1317 db_inc_paths.append('/opt/db-3.%d/include' % x)
1322 # Add some common subdirectories for Sleepycat DB to the list,
1324 # picked up when it is installed in a non-standard prefix and
1419 # Look for a version specific db-X.Y before an ambiguous dbX
1420 # XXX should we -ever- look for a dbX name? Do any
1423 for dblib in (('db-%d.%d' % db_ver),
1439 # Only add the found library and include directories if they aren't
1461 if arg.startswith('--with-dbmliborder=')]
1463 dbm_order = [arg.split('=')[-1] for arg in dbm_args][-1].split(":")
1470 # Some systems have -lndbm, others have -lgdbm_compat,
1503 if find_file("gdbm-ndbm.h", self.inc_dirs, []) is not None:
1526 self.add(dbmext)
1528 self.missing.append('_dbm')
1530 # Anthony Baxter's gdbm module. GNU dbm(3) will require -lgdbm:
1533 self.add(Extension('_gdbm', ['_gdbmmodule.c'],
1536 self.missing.append('_gdbm')
1617 # if --enable-loadable-sqlite-extensions configure option is used.
1618 if '--enable-loadable-sqlite-extensions' not in sysconfig.get_config_var("CONFIG_ARGS"):
1629 sqlite_extra_link_args = ('-Wl,-search_paths_first',)
1642 self.add(Extension('_sqlite3', sqlite_srcs,
1649 self.missing.append('_sqlite3')
1652 # Unix-only modules
1656 self.add(Extension('termios', ['termios.c']))
1658 self.add(Extension('resource', ['resource.c']))
1660 self.missing.extend(['resource', 'termios'])
1662 # Platform-specific libraries
1664 self.add(Extension('ossaudiodev', ['ossaudiodev.c']))
1666 self.missing.append('ossaudiodev')
1669 self.add(Extension('_scproxy', ['_scproxy.c'],
1671 '-framework', 'SystemConfiguration',
1672 '-framework', 'CoreFoundation']))
1676 # 1.1.3 have security problems. See CERT Advisory CA-2002-07:
1677 # http://www.cert.org/advisories/CA-2002-07.html
1706 zlib_extra_link_args = ('-Wl,-search_paths_first',)
1709 self.add(Extension('zlib', ['zlibmodule.c'],
1714 self.missing.append('zlib')
1716 self.missing.append('zlib')
1718 self.missing.append('zlib')
1720 # Helper module for various ascii-encoders. Uses zlib for an optimized
1723 extra_compile_args = ['-DUSE_ZLIB_CRC32']
1730 self.add(Extension('binascii', ['binascii.c'],
1738 bz2_extra_link_args = ('-Wl,-search_paths_first',)
1741 self.add(Extension('_bz2', ['_bz2module.c'],
1745 self.missing.append('_bz2')
1749 self.add(Extension('_lzma', ['_lzmamodule.c'],
1752 self.missing.append('_lzma')
1761 # of a system shared libexpat.so is possible with --with-system-expat
1766 if '--with-system-expat' in sysconfig.get_config_var("CONFIG_ARGS"):
1777 # bpo-30947: Python uses best available entropy sources to
1782 # bpo-44394: libexpat uses isnan() of math.h and needs linkage
1803 '"%s" -Werror -Wno-unreachable-code -E -xc /dev/null >/dev/null 2>&1' % cc)
1805 extra_compile_args.append('-Wno-unreachable-code')
1807 self.add(Extension('pyexpat',
1820 self.add(Extension('_elementtree',
1828 self.missing.append('_elementtree')
1831 # Hye-Shik Chang's CJKCodecs modules.
1832 self.add(Extension('_multibytecodec',
1835 self.add(Extension('_codecs_%s' % loc,
1848 self.add(Extension('_multiprocessing', multiprocessing_srcs,
1859 self.add(Extension('_posixshmem', posixshmem_srcs,
1864 self.missing.append('_posixshmem')
1875 self.add(Extension('_uuid', ['_uuidmodule.c'],
1878 self.missing.append('_uuid')
1900 self.missing.append('_tkinter')
1904 ## self.add(Extension('xx', ['xxmodule.c']))
1908 self.add(Extension('xxlimited', ['xxlimited.c']))
1909 self.add(Extension('xxlimited_35', ['xxlimited_35.c']))
1918 # - Automatically, at configuration time, by using pkg-config.
1920 # Additional pkg-config configuration paths can be set via the
1925 # - Explicitly, at configuration time by setting both
1926 # --with-tcltk-includes and --with-tcltk-libs.
1929 # --with-tcltk-includes="-I/path/to/tclincludes \
1930 # -I/path/to/tkincludes"
1931 # --with-tcltk-libs="-L/path/to/tcllibs -ltclm.n \
1932 # -L/path/to/tklibs -ltkm.n"
1934 # - Explicitly, at compile time, by passing TCLTK_INCLUDES and
1936 # This will override any configuration-time option.
1954 self.add(Extension('_tkinter', ['_tkinter.c', 'tkappinit.c'],
1967 # Apple-supplied compiler chain's -framework options here.
1974 # 1. Build and link with system-wide third-party or user-built
1976 # 2. Build and link using a user-specified macOS SDK so that the
1982 # or detect_tkinter(). The former handles non-standard locations of
1997 # Apple-supplied Tcl and Tk frameworks in /System/Library but
1999 # out-of-date and buggy; their use should be avoided if at
2017 # Search the local system-wide /Library/Frameworks,
2048 # Add the base framework directory as well
2049 compile_args = ['-F', F]
2053 archs = re.findall(r'-arch\s+(\w+)', cflags)
2065 a = ln.split()[-1]
2067 detected_archs.append(ln.split()[-1])
2072 arch_args.append('-arch')
2076 … link_args = [','.join(['-Wl', '-F', F, '-framework', 'Tcl', '-framework', 'Tk']), *arch_args]
2081 if '-Wstrict-prototypes' in cflags.split():
2082 compile_args.append('-Wno-strict-prototypes')
2084 self.add(Extension('_tkinter', ['_tkinter.c', 'tkappinit.c'],
2096 # - Through environment variables.
2097 # - Platform specific detection of Tcl/Tk (currently only macOS).
2098 # - Search of various standard Unix header/library paths.
2109 # Darwin - either AquaTk, if it is found, or X11 based Tk.
2135 dotversion = dotversion[:-1] + '.' + dotversion[-1]
2160 # Check for various platform-specific directories
2192 # Add the Tcl/Tk libraries
2202 # -DWITH_PIL -I../Extensions/Imaging/libImaging tkImaging.c \
2204 # -DWITH_TOGL togl.c \
2206 # -lGL -lGLU -lXext -lXmu \
2208 self.add(Extension('_tkinter', ['_tkinter.c', 'tkappinit.c'],
2224 self.use_system_libffi = '--with-system-ffi' in sysconfig.get_config_var("CONFIG_ARGS")
2227 extra_compile_args = ['-DPy_BUILD_CORE_MODULE']
2238 extra_compile_args.append('-DUSING_MALLOC_CLOSURE_DOT_C=1')
2239 extra_compile_args.append('-DMACOSX')
2244 # of the assembler code is non-PIC (i.e. it has relocations
2250 # finding some -z option for the Sun compiler.
2251 extra_link_args.append('-mimpure-text')
2253 elif HOST_PLATFORM.startswith('hp-ux'):
2254 extra_link_args.append('-fPIC')
2263 self.add(ext)
2266 self.add(Extension('_ctypes_test',
2279 ext.extra_compile_args.append("-DUSING_APPLE_OS_LIBFFI=1")
2305 ext.extra_compile_args.append("-DHAVE_FFI_PREP_CIF_VAR=1")
2307 ext.extra_compile_args.append("-DHAVE_FFI_PREP_CLOSURE_LOC=1")
2309 ext.extra_compile_args.append("-DHAVE_FFI_CLOSURE_ALLOC=1")
2316 # for dlopen, see bpo-32647
2323 if '--with-system-libmpdec' in sysconfig.get_config_var("CONFIG_ARGS"):
2377 'ansi-legacy': [('CONFIG_32','1'), ('ANSI','1'),
2407 extra_compile_args.append('-Wno-unknown-pragmas')
2417 # https://gcc.gnu.org/ml/gcc/2010-11/msg00366.html
2418 extra_compile_args.append('-fno-ipa-pure-const')
2421 # https://sourceware.org/ml/libc-alpha/2010-12/msg00009.html
2426 self.add(Extension('_decimal',
2444 # This trick works because ax_check_openssl uses --libs-only-L,
2445 # --libs-only-l, and --cflags-only-I.
2450 openssl_includes = split_var('OPENSSL_INCLUDES', '-I')
2451 openssl_libdirs = split_var('OPENSSL_LDFLAGS', '-L')
2452 openssl_libs = split_var('OPENSSL_LIBS', '-l')
2456 self.missing.extend(['_ssl', '_hashlib'])
2464 self.missing.extend(['_ssl', '_hashlib'])
2482 # Requires static OpenSSL build with position-independent code. Some
2489 extra_linker_args.append(f"-l:lib{lib}.a")
2491 extra_linker_args.append(f"-Wl,--exclude-libs,lib{lib}.a")
2497 self.add(
2511 self.add(
2523 # (40-50 KiB per module, only loaded when actually used). Modules can
2524 # be disabled via the --with-builtin-hashlib-hashes configure flag.
2538 self.add(Extension(
2540 extra_compile_args=['-DPy_BUILD_CORE_MODULE'],
2545 self.add(Extension(
2547 extra_compile_args=['-DPy_BUILD_CORE_MODULE'],
2552 self.add(Extension(
2558 self.add(Extension(
2568 self.add(Extension(
2583 self.add(Extension(
2591 self.missing.append('nis')
2598 # bpo-32521: glibc has deprecated Sun RPC for some time. Fedora 28
2611 self.missing.append('nis')
2619 # libnsl-devel: check for libnsl in nsl/ subdirectory
2629 self.add(Extension('nis', ['nismodule.c'],
2643 # Customize subcommands to not install an egg-info file for Python
2686 fullversion = '-{0[0]}.{0[1]}'.format(sys.version_info)
2706 if "--list-module-names" in sys.argv:
2708 sys.argv.remove("--list-module-names")
2728 maintainer_email = "python-dev@python.org",
2729 description = "A high-level object-oriented programming language",
2743 extra_compile_args=['-DPy_BUILD_CORE_MODULE'])],
2752 # --install-platlib