Lines Matching +full:cross +full:- +full:spawn
3 Miscellaneous utility functions -- anything that doesn't fit into
15 from distutils.spawn import spawn
21 distinguish platform-specific build directories and platform-specific built
28 linux-i586
29 linux-alpha (?)
30 solaris-2.6-sun4u
33 win-amd64 (64bit Windows on AMD64 (aka x86_64, Intel64, EM64T, etc)
34 win32 (all others - specifically, sys.platform is returned)
36 For other non-POSIX platforms, currently just returns 'sys.platform'.
41 return 'win-amd64'
43 return 'win-arm32'
45 return 'win-arm64'
48 # Set for cross builds explicitly
65 machine = machine.replace('/', '-')
68 # At least on Linux/Intel, 'machine' is the processor --
71 return "%s-%s" % (osname, machine)
75 release = "%d.%s" % (int(release[0]) - 3, release[2:])
81 # fall through to standard osname-release-machine representation
97 return "%s-%s-%s" % (osname, release, machine)
103 'x64' : 'win-amd64',
104 'arm' : 'win-arm32',
116 ValueError on non-Unix-ish systems if 'pathname' either starts or
125 if pathname[-1] == '/':
163 guarantee that users can use in config files, command-line options,
165 HOME - user's home directory (Unix only)
166 PLAT - description of the current platform, including hardware
178 # bpo-10496: if the current user identifier doesn't exist in the
189 """Perform shell/Perl-style variable substitution on 'string'. Every
206 return re.sub(r'\$([a-zA-Z_][a-zA-Z_0-9]*)', _subst, s)
229 """Split a string up according to Unix shell-like rules for quotes and
233 be backslash-escaped. The backslash is stripped from any two-character
240 # doesn't require character-by-character examination. It was a little
241 # bit of a brain-bender to get it working right, though...
266 if s[end] == "'": # slurp singly-quoted string
268 elif s[end] == '"': # slurp doubly-quoted string
277 s = s[:beg] + s[beg+1:end-1] + s[end:]
278 pos = m.end() - 2
300 if msg[-2:] == ',)': # correct for singleton tuple
301 msg = msg[0:-2] + ')'
329 """Byte-compile a collection of Python source files to .pyc
333 0 - don't optimize
334 1 - normal optimization (like "python -O")
335 2 - extra optimization (like "python -OO")
349 Byte-compilation is either done directly in this interpreter process
364 raise DistutilsByteCompileError('byte-compiling is disabled.')
369 # in debug mode and optimize is 0. If we're not in debug mode (-O
370 # or -OO), we don't know which level of optimization this
372 # byte-compilation and be certain that it's the right thing. Thus,
379 # "Indirect" byte-compilation: write a temporary script and then
388 log.info("writing byte-compilation script '%s'", script_name)
407 # right". This whole prefix business is rather delicate -- the
426 cmd.append(f'-Wignore:{msg}:DeprecationWarning')
428 spawn(cmd, dry_run=dry_run)
432 # "Direct" byte-compilation: use the py_compile module to compile
435 # cross-process recursion. Hey, it works!
440 if file[-3:] != ".py":
446 # cfile - byte-compiled file
447 # dfile - purported source filename (same as 'file' by default)
466 log.info("byte-compiling %s to %s", file, cfile_base)
470 log.debug("skipping byte-compilation of %s to %s",
477 RFC-822 header, by ensuring there are 8 spaces space after each newline.
488 modification is done in-place. To reduce the build time,