• Home
  • Raw
  • Download

Lines Matching +full:cross +full:- +full:spawn

23     # Bootstrap Python: distutils.spawn uses subprocess to build C extensions,
37 # bpo-41282 (PEP 632) deprecated distutils but setup.py still uses it
55 from distutils.spawn import find_executable
61 # --list-module-names option used by Tools/scripts/generate_module_names.py
70 # Cross compiling
87 EMSCRIPTEN = HOST_PLATFORM == 'emscripten-wasm32'
98 Python is an interpreted, interactive, object-oriented programming
105 Mac, MFC). New built-in modules are easily written in C or C++. Python
112 it. Ask around on comp.lang.python -- or just try compiling Python
117 Development Status :: 6 - Mature
133 # See bpo-21121 and bpo-35257
157 """Get the paths of sysroot sub-directories.
169 m = re.search(r'--sysroot=([^"]\S*|"[^"]+")', var)
193 The SDK paths used by Apple-supplied tool chains depend on the
204 m = re.search(r'-isysroot\s*(\S+)', cflags)
235 and returns a possibly-empty list of additional directories, or None
309 if '-j' in os.environ.get('MAKEFLAGS', ''):
345 -I must appear earlier, otherwise the pre-processor picks up files
349 # Parse compiler flags (-I, -D, -U, extra args)
355 if switch == '-I':
357 elif switch == '-D':
362 elif switch == '-U':
367 # Parse linker flags (-L, -l, extra objects, extra args)
373 if switch == '-L':
375 elif switch == '-l':
378 token[0] != '-' and
440 # re-compile extensions if a header file has been changed
536 print("%-*s %-*s %-*s" % (longest, e, longest, f,
594 print("Custom linker flags may require --with-openssl-rpath=auto")
625 # Workaround for Mac OS X: The Carbon-based modules cannot be
626 # reliably imported into a command-line Python
629 'WARNING: skipping import check for Carbon-based "%s"' %
634 sys.maxsize > 2**32 and '-arch' in ext.extra_link_args):
636 # build with an explicit '-arch' flag on OSX. That's currently
637 # only used to build 32-bit only extensions in a 4-way
638 # universal build and loading 32-bit code into a 64-bit
648 self.announce('WARNING: skipping import check for Cygwin-based "%s"'
660 # Don't try to load extensions for cross builds
694 '%s -print-multiarch > %s 2> /dev/null' % (CC, tmpfile))
710 if not find_executable('dpkg-architecture'):
714 opt = '-t' + sysconfig.get_config_var('HOST_GNU_TYPE')
719 'dpkg-architecture %s -qDEB_HOST_MULTIARCH > %s 2> /dev/null' %
733 # add library search path by wr-cc, the compiler wrapper
744 # cross builds under msys2 environment.
759 ret = run_command('%s --print-search-dirs >%s' % (CC, tmpfile))
780 # bpo-38472: With a German locale, GCC returns "gcc-Version 9.1.0
782 ret = run_command('LC_ALL=C %s -E -v - </dev/null 2>%s 1>/dev/null' % (CC, tmpfile))
821 ('LDFLAGS', '-R', self.compiler.runtime_library_dirs),
822 ('LDFLAGS', '-L', self.compiler.library_dirs),
823 ('CPPFLAGS', '-I', self.compiler.include_dirs)):
835 # strip out double-dashes first so that we don't end up with
836 # substituting "--Long" to "-Long" and thus lead to "ong" being
838 env_val = re.sub(r'(^|\s+)-(-|(?!%s))' % arg_name[1],
852 # only change this for cross builds for 3.3, issues on Mageia
875 # be assumed that no additional -I,-L directives are needed.
893 # OSF/1 and Unixware have some stuff in /usr/ccs/lib (like -ldb)
897 # HP-UX11iv3 keeps files in lib/hpux folders.
898 if HOST_PLATFORM == 'hp-ux11':
902 # This should work on any unixy platform ;-)
903 # If the user has bothered specifying additional -I and -L flags
912 if item.startswith('-I'):
916 if item.startswith('-L'):
945 # C-optimized pickle replacement
964 # Modules with some UNIX dependencies -- on by default:
979 # Memory-mapped files (also works on Win32).
986 # Python interface to subinterpreter C-API.
991 # libraries, are platform-specific, or present other surprises.
995 # These don't work for 64-bit platforms!!!
1000 # 64-bit platforms.
1021 # Python PEP-3118 (buffer protocol) test module
1027 # Test multi-phase extension module init (PEP 489)
1053 ret = run_command("%s -d %s | grep '(NEEDED)' > %s"
1134 # libpanelw. If we are here, we found a locally-supplied
1141 # Building with the system-suppied combined libncurses/libpanel
1185 # Modules that provide persistent dictionary-like semantics. You will
1208 if arg.startswith('--with-dbmliborder=')]
1210 dbm_order = [arg.split('=')[-1] for arg in dbm_args][-1].split(":")
1217 # Some systems have -lndbm, others have -lgdbm_compat,
1256 # Anthony Baxter's gdbm module. GNU dbm(3) will require -lgdbm:
1274 # Unix-only modules
1282 # macOS-only, needs SystemConfiguration and CoreFoundation framework
1289 # Helper module for various ascii-encoders. Uses zlib for an optimized
1306 # of a system shared libexpat.so is possible with --with-system-expat
1318 # Hye-Shik Chang's CJKCodecs modules.
1385 self.use_system_libffi = '--with-system-ffi' in sysconfig.get_config_var("CONFIG_ARGS")
1398 extra_compile_args.append('-DUSING_MALLOC_CLOSURE_DOT_C=1')
1399 extra_compile_args.append('-DMACOSX')
1404 # of the assembler code is non-PIC (i.e. it has relocations
1410 # finding some -z option for the Sun compiler.
1411 extra_link_args.append('-mimpure-text')
1432 ext.extra_compile_args.append("-DUSING_APPLE_OS_LIBFFI=1")
1458 ext.extra_compile_args.append("-DHAVE_FFI_PREP_CIF_VAR=1")
1460 ext.extra_compile_args.append("-DHAVE_FFI_PREP_CLOSURE_LOC=1")
1462 ext.extra_compile_args.append("-DHAVE_FFI_CLOSURE_ALLOC=1")
1469 # for dlopen, see bpo-32647
1490 # (40-50 KiB per module, only loaded when actually used). Modules can
1491 # be disabled via the --with-builtin-hashlib-hashes configure flag.
1518 # Customize subcommands to not install an egg-info file for Python
1561 fullversion = '-{0[0]}.{0[1]}'.format(sys.version_info)
1581 if "--list-module-names" in sys.argv:
1583 sys.argv.remove("--list-module-names")
1603 maintainer_email = "python-dev@python.org",
1604 description = "A high-level object-oriented programming language",
1626 # --install-platlib