| /external/python/setuptools/setuptools/_distutils/command/ |
| D | build_scripts.py | 1 """distutils.command.build_scripts 3 Implements the Distutils 'build_scripts' command.""" 8 from distutils.core import Command 15 first_line_re = re.compile(b'^#!.*python[0-9.]*([ \t].*)?$') 17 class build_scripts(Command): 22 ('build-dir=', 'd', "directory to \"build\" (copy) to"), 69 log.debug("not copying %s (up-to-date)", script) 72 # Always open the file, but ignore failures in dry-run mode -- 95 log.info("copying and adjusting %s -> %s", script, 107 shebang = b"#!" + executable + post_interp + b"\n" [all …]
|
| /external/python/cpython3/Lib/distutils/command/ |
| D | build_scripts.py | 1 """distutils.command.build_scripts 3 Implements the Distutils 'build_scripts' command.""" 8 from distutils.core import Command 15 first_line_re = re.compile(b'^#!.*python[0-9.]*([ \t].*)?$') 17 class build_scripts(Command): 22 ('build-dir=', 'd', "directory to \"build\" (copy) to"), 69 log.debug("not copying %s (up-to-date)", script) 72 # Always open the file, but ignore failures in dry-run mode -- 95 log.info("copying and adjusting %s -> %s", script, 107 shebang = b"#!" + executable + post_interp + b"\n" [all …]
|
| /external/python/cpython3/PC/ |
| D | launcher2.c | 5 * runtime to be launched. It also enables auto-install of versions when they 62 buffer[r--] = L'\0'; in debug() 99 _snwprintf_s(&message[len], MSGSIZE - len, _TRUNCATE, L": %s", in winerror() 149 // We should always be a 32-bit executable, so if running in _getNativeMachine() 150 // under emulation, it must be a 64-bit host. in _getNativeMachine() 182 /* only looking for non-empty, which means at least one character in isEnvVarSet() 203 return (!y || !yLen) ? 0 : -1; in _compare() 213 return -1; in _compare() 220 return -1; in _compare() 230 return (!y || !yLen) ? 0 : -1; in _compareArgument() [all …]
|
| D | launcher.c | 2 * Copyright (C) 2011-2013 Vinay Sajip. 38 * which builds the setuptools-style launcher. 45 * one-level-higher pyvenv.cfg, and uses its "home" property to locate and 53 /* Just for now - static definition */ 101 _snwprintf_s(&message[len], MSGSIZE - len, _TRUNCATE, L": %ls", in error() 121 /* This is not thread-safe, just like getenv */ in get_env() 224 if (_wcsicmp(path, ip->executable) == 0) { in find_existing_python() 240 if (bits == ip->bits && _wcsicmp(version, ip->version) == 0) { in find_existing_python2() 283 wcsncpy_s(ip->version, MAX_VERSION_SIZE, ip_version, in _locate_pythons_for_key() 284 MAX_VERSION_SIZE-1); in _locate_pythons_for_key() [all …]
|
| /external/python/cpython3/Doc/library/ |
| D | zipapp.rst | 1 :mod:`zipapp` --- Manage executable Python zip archives 14 -------------- 18 <using-on-interface-options>`. The module provides both a 19 :ref:`zipapp-command-line-interface` and a :ref:`zipapp-python-api`. 23 ------------- 25 The following example shows how the :ref:`zipapp-command-line-interface` 30 .. code-block:: shell-session 32 $ python -m zipapp myapp -m "myapp:main" 37 .. _zipapp-command-line-interface: 39 Command-Line Interface [all …]
|
| /external/python/cpython3/Lib/test/ |
| D | test_zipapp.py | 156 # once for each file written :-( 181 # Test that no shebang line is written to the target by default. 191 # Test that a shebang line with a custom interpreter is written 212 # Test that we can read the shebang line correctly. 221 # Test that reading the shebang line of a file without one returns None. 230 # Test that we can change the shebang of a file. 241 # Test that we can change the shebang of a file, writing the result to a 278 # Test that we can remove the shebang from a file. 302 # (Unix only) tests that archives with shebang lines are made executable 307 # Test that an archive with a shebang line is made executable. [all …]
|
| /external/python/cpython3/Lib/ |
| D | zipapp.py | 12 # The __main__.py used if the users specifies "-m module:fn". 13 # Note that this will always be written as UTF-8 (module and 14 # function names can be non-ASCII in Python 3). 15 # We add a coding cookie even though UTF-8 is the default in Python 3 18 # -*- coding: utf-8 -*- 24 # The Windows launcher defaults to UTF-8 when parsing shebang lines if the 25 # file has no BOM. So use UTF-8 on Windows. 28 shebang_encoding = 'utf-8' 47 """Write a shebang line.""" 49 shebang = b'#!' + interpreter.encode(shebang_encoding) + b'\n' [all …]
|
| /external/python/setuptools/setuptools/tests/ |
| D | test_install_scripts.py | 9 from setuptools.command.install_scripts import install_scripts 20 unix_exe = '/usr/dummy-test-path/local/bin/python' 21 unix_spaces_exe = '/usr/bin/env dummy-test-python' 36 @pytest.mark.skipif(sys.platform == 'win32', reason='non-Windows only') 39 Ensure that shebang is not quoted on Unix when getting the Python exe 53 Ensure that shebang is quoted on Windows when getting the Python exe 60 with io.open(str(tmpdir.join('foo-script.py')), 'r') as f: 64 @pytest.mark.skipif(sys.platform == 'win32', reason='non-Windows only') 67 Ensure that shebang on Unix is not quoted, even when 69 is specified using --executable. [all …]
|
| /external/ltp/testcases/kernel/fs/fs_perms/ |
| D | fs_perms.c | 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 25 …* (04/12/01)v.99 First attempt at using C for fs-regression test. Only tests read and write … 27 * (05/23/01)v1.1 Added command line parameter to specify test file. 28 * (07/12/01)v1.2 Removed conf file and went to command line parameters. 31 * has shebang and should end up executed by kernel, other one is empty 65 * If flag is non zero, the file contains #!/PATH/sh shebang otherwise it's 79 /* create file with shebang */ in testsetup() 145 case -1: in testfperm()
|
| /external/crosvm/tools/impl/ |
| D | vcs.py | 3 # Use of this source code is governed by a BSD-style license that can be 24 from .command import quoted, cmd 31 GERRIT_URL = "https://chromium-review.googlesource.com" 35 for line in cmd("git ls-files").lines(): 52 def find_scripts(path: Path, shebang: str): 54 if file.is_file() and file.open(errors="ignore").read(512).startswith(f"#!{shebang}"): 66 return cmd("gcloud auth print-access-token").stdout(check=False) 72 Returns a curl `Command` instance set up to use the same HTTP credentials as git. 75 - git cookies (the default) 76 - gcloud [all …]
|
| D | util.py | 3 # Use of this source code is governed by a BSD-style license that can be 35 ANSI_ESCAPE = re.compile(r"\x1B(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~])") 73 # List of times recorded by `record_time` which will be printed if --timing-info is provided. 104 "--color", 110 "--verbose", 111 "-v", 117 "--very-verbose", 118 "-vv", 124 "--timing-info", 127 help="Print info on how long which parts of the command take", [all …]
|
| /external/python/cpython3/Doc/using/ |
| D | windows.rst | 3 .. _using-on-windows: 12 This document aims to give an overview of Windows-specific behaviour you should 19 are primarily intended to add a per-user installation of Python, with the 22 available for application-local distributions. 32 :ref:`windows-full` contains all components and is the best option for 35 :ref:`windows-store` is a simple installation of Python that is suitable for 41 :ref:`windows-nuget` are lightweight installations intended for continuous 45 :ref:`windows-embeddable` is a minimal package of Python suitable for 49 .. _windows-full: 55 ------------------ [all …]
|
| /external/grpc-grpc/tools/distrib/ |
| D | check_copyright.py | 9 # http://www.apache.org/licenses/LICENSE-2.0 28 # parse command line 31 "-o", "--output", default="details", choices=["list", "details"] 33 argp.add_argument("-s", "--skips", default=0, action="store_const", const=1) 34 argp.add_argument("-a", "--ancient", default=0, action="store_const", const=1) 35 argp.add_argument("--precommit", action="store_true") 36 argp.add_argument("--fix", action="store_true") 74 # For example, for javascript multi-line comments, the header will be '/*', the 125 # Designer-generated source 147 r"Copyright (?P<first_year>[0-9]+\-)?(?P<last_year>[0-9]+) ([Tt]he )?gRPC" [all …]
|
| /external/rust/crates/grpcio-sys/grpc/tools/distrib/ |
| D | check_copyright.py | 9 # http://www.apache.org/licenses/LICENSE-2.0 28 # parse command line 30 argp.add_argument('-o', 31 '--output', 34 argp.add_argument('-s', '--skips', default=0, action='store_const', const=1) 35 argp.add_argument('-a', '--ancient', default=0, action='store_const', const=1) 36 argp.add_argument('--precommit', action='store_true') 37 argp.add_argument('--fix', action='store_true') 75 # For example, for javascript multi-line comments, the header will be '/*', the 129 # Designer-generated source [all …]
|
| /external/python/cpython3/Tools/scripts/ |
| D | pathfix.py | 3 # Change the #! line (shebang) occurring in Python scripts. The new interpreter 4 # pathname must be given with a -i option. 6 # Command line arguments are files or directories to be processed. 11 # The original file is kept as a back-up (with a "~" attached to its name), 12 # -n flag can be used to disable this. 14 # Sometimes you may find shebangs with flags such as `#! /usr/bin/env python -si`. 16 # To change interpreter and keep flags from the original shebang line, use -k. 17 # If you want to keep flags and add to them one single literal flag, use option -a. 53 usage = ('usage: %s -i /interpreter -p -n -k -a file-or-directory ...\n' % 62 if o == '-i': [all …]
|
| /external/bazelbuild-rules_python/python/pip_install/ |
| D | pip_repository.bzl | 7 # http://www.apache.org/licenses/LICENSE-2.0 105 otherwise. See https://github.com/indygreg/python-build-standalone/issues/103 112 xcode_sdk_location = rctx.execute([which_with_fail("xcode-select", rctx), "--print-path"]) 120 # path than xcode installed command line tools. 123 "-isysroot {}/SDKs/MacOSX.sdk".format(xcode_root), 130 otherwise. See https://github.com/indygreg/python-build-standalone/issues/103 143 "-c", 154 return ["-isystem {}".format(include_path)] 157 """Determine whether or not to pass the pip `--isolated` flag to the pip invocation. 164 True if --isolated should be passed [all …]
|
| /external/googleapis/google/cloud/osconfig/agentendpoint/v1/ |
| D | patch_jobs.proto | 7 // http://www.apache.org/licenses/LICENSE-2.0 26 // Post-patch reboot settings. 32 // signals such as registry keys on Windows or `/var/run/reboot-required` on 44 // Post-patch reboot settings. 77 // Apt patching will be performed by executing `apt-get update && apt-get 85 // Runs `apt-get dist-upgrade`. 88 // Runs `apt-get upgrade`. 93 // using `apt-get dist-upgrade` instead. 111 // Adds the `--security` flag to `yum update`. Not supported on 115 // Will cause patch to run `yum update-minimal` instead. [all …]
|
| /external/googleapis/google/cloud/osconfig/agentendpoint/v1beta/ |
| D | patch_jobs.proto | 7 // http://www.apache.org/licenses/LICENSE-2.0 28 // Post-patch reboot settings. 34 // signals such as registry keys on Windows or `/var/run/reboot-required` on 46 // Post-patch reboot settings. 79 // Apt patching will be performed by executing `apt-get update && apt-get 87 // Runs `apt-get dist-upgrade`. 90 // Runs `apt-get upgrade`. 95 // using `apt-get dist-upgrade` instead. 113 // Adds the `--security` flag to `yum update`. Not supported on 117 // Will cause patch to run `yum update-minimal` instead. [all …]
|
| /external/python/google-api-python-client/docs/dyn/ |
| D | osconfig_v1beta.projects.patchJobs.html | 8 font-weight: inherit; 9 font-style: inherit; 10 font-size: 100%; 11 font-family: inherit; 12 vertical-align: baseline; 16 font-size: 13px; 21 font-size: 26px; 22 margin-bottom: 1em; 26 font-size: 24px; 27 margin-bottom: 1em; [all …]
|
| D | osconfig_v1.projects.patchJobs.html | 8 font-weight: inherit; 9 font-style: inherit; 10 font-size: 100%; 11 font-family: inherit; 12 vertical-align: baseline; 16 font-size: 13px; 21 font-size: 26px; 22 margin-bottom: 1em; 26 font-size: 24px; 27 margin-bottom: 1em; [all …]
|
| D | osconfig_v1.projects.patchDeployments.html | 8 font-weight: inherit; 9 font-style: inherit; 10 font-size: 100%; 11 font-family: inherit; 12 vertical-align: baseline; 16 font-size: 13px; 21 font-size: 26px; 22 margin-bottom: 1em; 26 font-size: 24px; 27 margin-bottom: 1em; [all …]
|
| /external/python/cpython2/Doc/tutorial/ |
| D | interpreter.rst | 1 .. _tut-using: 8 .. _tut-invoking: 15 Unix shell's search path makes it possible to start it by typing the command :: 27 command into the command prompt in a DOS box:: 31 Typing an end-of-file character (:kbd:`Control-D` on Unix, :kbd:`Control-Z` on 34 following command: ``quit()``. 36 The interpreter's line-editing features usually aren't very sophisticated. On 39 features. Perhaps the quickest check to see whether command line editing is 40 supported is typing :kbd:`Control-P` to the first Python prompt you get. If it beeps, 41 you have command line editing; see Appendix :ref:`tut-interacting` for an [all …]
|
| /external/python/cpython3/Doc/tutorial/ |
| D | interpreter.rst | 1 .. _tut-using: 8 .. _tut-invoking: 15 Unix shell's search path makes it possible to start it by typing the command: 17 .. code-block:: text 27 <windows-store>`, the :file:`python3.11` command will be available. If you have 29 command. See :ref:`setting-envvars` for other ways to launch Python. 31 Typing an end-of-file character (:kbd:`Control-D` on Unix, :kbd:`Control-Z` on 34 following command: ``quit()``. 36 The interpreter's line-editing features include interactive editing, history 39 Perhaps the quickest check to see whether command line editing is supported is [all …]
|
| /external/flatbuffers/ |
| D | yarn.lock | 5 "@babel/code-frame@7.12.11": 7 …resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.12.11.tgz#f4ad435aa263db93… 8 …integrity sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH… 12 "@babel/helper-validator-identifier@^7.16.7": 14 …solved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identif… 15 …integrity sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/… 19 …resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.16.10.tgz#744f2eb81579d6eea7… 20 …integrity sha512-5FnTQLSLswEj6IkgVw5KusNUUFY9ZGqe/TRFnP/BKYHYgfh7tc+C7mwiy95/yNP7Dh9x580Vv8r7u7ZfT… 22 "@babel/helper-validator-identifier" "^7.16.7" 24 js-tokens "^4.0.0" [all …]
|
| /external/tensorflow/tensorflow/tools/ci_build/windows/bazel/ |
| D | common_env.sh | 8 # http://www.apache.org/licenses/LICENSE-2.0 22 # - JDK8, and JAVA_HOME set. 23 # - Microsoft Visual Studio 2015 Community Edition 24 # - Msys2 25 # - Anaconda3 29 export TMPDIR=${TMPDIR:-"C:/tmp"} 30 export TMPDIR=$(cygpath -m "$TMPDIR") 31 mkdir -p "$TMPDIR" 33 # Add timestamps before each command. 37 export BAZEL_SH=${BAZEL_SH:-"C:/tools/msys64/usr/bin/bash"} [all …]
|