Lines Matching defs:for
1 # Autodetecting setup.py script for building the Python extensions
106 is also usable as an extension language for applications that need a
111 listed here, it may still be supported, if there's a C compiler for
132 # reserved for building the interpreter and the stdlib modules.
149 for i, path in enumerate(dirlist):
161 * subdirs: a sequence of names of subdirectories used as the location for
166 for var_name in make_vars:
172 for subdir in subdirs:
194 setting of various variables; see the xcrun man page for more info.
195 Also sets MACOS_SDK_SPECIFIED for use by macosx_sdk_specified().
226 for header in headers:
234 """Searches for the directory where a given file is located,
251 for dir_ in std_dirs:
260 for dir_ in paths:
279 bad_paths = [tzpath for tzpath in tzpaths if not os.path.isabs(tzpath)]
334 f'WARNING: Makefile is missing module variable for "{ext.name}"',
352 for token in shlex.split(cflags):
370 for token in shlex.split(ldflags):
396 extensions = [ext for ext in self.extensions
399 ext_map = dict((ext.name, i) for i, ext in enumerate(extensions))
416 # Fix up the paths for scripts, too
418 for filename in self.distribution.scripts]
427 for ext in self.extensions:
429 for filename in ext.sources ]
435 dep for dep in makedeps.split() if dep != "\\"
438 find_module_file(filename, moddirlist) for filename in ext.depends
453 for ext in self.extensions:
463 self.extensions = [x for x in self.extensions if x not in
466 for ext in mods_configured:
506 for ext in self.extensions:
508 for name in self.missing:
519 for ext in self.extensions:
525 longest = max([len(e.name) for e in self.extensions], default=0)
528 longest = max(longest, max([len(name) for name in all_failed]))
535 for e, f, g in zip(lst[::3], lst[1::3], lst[2::3]):
545 " detect_modules() for the module's name.")
554 print_three_column([ext.name for ext in mods_built])
562 print_three_column([ext.name for ext in mods_disabled])
589 for l in (self.missing, self.failed, self.failed_on_import)):
621 'WARNING: skipping import check for failed build "%s"' %
625 # Workaround for Mac OS X: The Carbon-based modules cannot be
629 'WARNING: skipping import check for Carbon-based "%s"' %
641 'WARNING: skipping import check for "%s"' %
645 # Workaround for Cygwin: Cygwin currently has fork issues when many
648 self.announce('WARNING: skipping import check for Cygwin-based "%s"'
660 # Don't try to load extensions for cross builds
746 for d in line.strip().split("=")[1].split(pathsep):
766 for line in fp:
789 for line in fp.readlines():
799 for d in line.strip().split("=")[1].split(":"):
815 # CPPFLAGS for header and library files.
820 for env_var, arg_name, dir_list in (
830 # options in env_val that it mistakes for known option, we
832 # character that is not for the option we are dealing with.
837 # used for a library directory.
842 for directory in reversed(options.dirs):
852 # only change this for cross builds for 3.3, issues on Mageia
873 # lib_dirs and inc_dirs are used to search for files;
911 for item in cflags.split():
915 for item in ldflags.split():
950 # profiler (_lsprof is for cProfile.py)
995 # These don't work for 64-bit platforms!!!
1002 # audioop needs libm for floor() in multiple functions.
1062 for ln in fp:
1077 # use the same library for the readline and curses modules.
1083 # Use IBM supplied 'curses' for successful build of _curses
1095 (tuple(int(n) for n in dep_target.split('.')[0:2])
1137 # for OS X but we need _XOPEN_SOURCE_EXTENDED here for
1153 # OSX has an old Berkeley curses, not good enough for
1169 # If the curses module is enabled, check for the panel module
1186 # probably want to arrange for at least one of them to be available on
1189 # implementation independent wrapper for these; dbm/dumb.py provides
1206 for arg in sysconfig.get_config_var("CONFIG_ARGS").split()]
1207 dbm_args = [arg for arg in config_args
1210 dbm_order = [arg.split('=')[-1] for arg in dbm_args][-1].split(":")
1214 for cand in dbm_order:
1289 # Helper module for various ascii-encoders. Uses zlib for an optimized
1303 # developers on SourceForge; see www.libexpat.org for more information.
1321 for loc in ('kr', 'jp', 'cn', 'tw', 'hk', 'iso2022'):
1410 # finding some -z option for the Sun compiler.
1420 # function my_sqrt() needs libm for sqrt()
1450 for lib_name in ('ffi', 'ffi_pic'):
1469 # for dlopen, see bpo-32647
1478 # Uncomment for extra functionality:
1518 # Customize subcommands to not install an egg-info file for Python
1531 # this is works for EXT_SUFFIX too, which ends with SHLIB_SUFFIX
1543 for filename in files:
1551 for dirpath, dirnames, fnames in os.walk(dirname):
1565 for filename in outfiles:
1589 """Hack for parallel build"""
1607 classifiers = [x for x in CLASSIFIERS.split("\n") if x],