| /third_party/python/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 …]
|
| /third_party/python/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 …]
|
| /third_party/python/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 …]
|
| D | venv.rst | 1 :mod:`venv` --- Creation of virtual environments 16 -------------- 18 .. _venv-def: 19 .. _venv-intro: 38 …<https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/#creating-a-vir… 40 .. include:: ../includes/wasm-notavail.rst 43 ----------------------------- 45 .. include:: /using/venv-create.inc 47 .. _venv-explanation: 50 -------------- [all …]
|
| /third_party/python/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 …]
|
| /third_party/python/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 …]
|
| /third_party/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()
|
| /third_party/rust/rust/ |
| D | x | 5 # directly use python in the x.py shebang and have it consistently work. Instead we 8 set -eu 11 sh -n $0 14 if [ -d "$1" ]; then 15 CDPATH='' command cd "$1" && pwd -P 23 # On Windows, `py -3` sometimes works. We need to try it first because `python3` 26 if python=$(command -v $SEARCH_PYTHON) && [ -x "$python" ]; then 28 extra_arg="-3" 36 python=$(bash -c "compgen -c python" | grep '^python[2-3]\.[0-9]\+$' | head -n1)
|
| /third_party/rust/crates/syn/examples/dump-syntax/ |
| D | README.md | 4 Use the following command from this directory to test this program by running it 8 cargo run -- src/main.rs 15 shebang: None,
|
| /third_party/python/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 …]
|
| D | unix.rst | 3 .. _using-on-unix: 16 -------- 29 https://www.debian.org/doc/manuals/maint-guide/first.en.html 33 …https://docs-old.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch-creating… 35 http://www.slackbook.org/html/package-management-making-packages.html 40 ---------------------- 48 pkg_add -r python 50 …pkg_add ftp://ftp.openbsd.org/pub/OpenBSD/4.2/packages/<insert your architecture here>/python-<ver… 54 pkg_add ftp://ftp.openbsd.org/pub/OpenBSD/4.2/packages/i386/python-2.5.1p2.tgz 58 -------------- [all …]
|
| /third_party/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 …]
|
| /third_party/python/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 …]
|
| /third_party/rust/rust/src/ci/ |
| D | shared.sh | 5 # `source shared.sh`, hence the invalid shebang and not being 8 export MIRRORS_BASE="https://ci-mirrors.rust-lang.org/rustc" 11 # Duplicated in docker/dist-various-2/shared.sh 18 if [[ $n -lt $max ]]; then 21 echo "Command failed. Attempt $n/$max:" 23 echo "The command has failed after $n attempts." 31 [[ "${CI-false}" = "true" ]] || isGitHubActions 35 [[ "${GITHUB_ACTIONS-false}" = "true" ]] 40 [[ "${RUST_GHA_SELF_HOSTED-false}" = "true" ]] 52 [[ "${OSTYPE}" = "linux-gnu" ]] [all …]
|
| /third_party/python/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 …]
|
| /third_party/vk-gl-cts/external/vulkan-docs/src/scripts/asciidoctor-chunker/ |
| D | README.md | 1 # asciidoctor-chunker 3 …[npm version](https://badge.fury.io/js/asciidoctor-chunker.svg)](https://badge.fury.io/js/asciidoc… 4 …://github.com/wshito/asciidoctor-chunker/actions/workflows/node.js.yml/badge.svg)](https://github.… 5 [](https://opensource.org/licen… 7 …-page) HTML from Asciidoctor's single HTML file with the support of fine-tuned splits by chapters,… 11 - 2021/8/3 [Ver 1.0.4](https://github.com/wshito/asciidoctor-chunker/releases) Added the keyboard s… 12 - 2021/6/25 [Ver 1.0.3](https://github.com/wshito/asciidoctor-chunker/releases) Fixed the security … 13 - 2021/5/9 [Ver 1.0.2](https://github.com/wshito/asciidoctor-chunker/releases) The toc item for the… 14 - 2021/3/17 [Ver 1.0.1](https://github.com/wshito/asciidoctor-chunker/releases) The script contains… 15 - 2021/2/27 [Ver 1.0.0 Released!](https://github.com/wshito/asciidoctor-chunker/releases) [all …]
|
| /third_party/jerryscript/tools/runners/ |
| D | run-test-suite-test262.py | 9 # http://www.apache.org/licenses/LICENSE-2.0 29 return ['python2'] # The official test262.py isn't python3 compatible, but has python shebang. 35 parser.add_argument('--runtime', metavar='FILE', default=execution_runtime, 37 parser.add_argument('--engine', metavar='FILE', required=True, 39 parser.add_argument('--test-dir', metavar='DIR', required=True, 42 group.add_argument('--es51', action='store_true', 44 group.add_argument('--es2015', action='store_true', 61 return_code = subprocess.call(['git', 'clone', '--no-checkout', 70 git_hash = 'es5-tests' 74 print('Cloning test262 repository failed - invalid git revision.') [all …]
|
| /third_party/typescript/src/testRunner/unittests/tsbuild/ |
| D | outFile.ts | 9 outFileFs = ts.loadProjectFromDisk("tests/projects/outfile-concat"); 38 subScenario: "incremental-declaration-changes", 44 subScenario: "incremental-declaration-doesnt-change", 50 subScenario: "incremental-headers-change-without-dts-changes", 57 scenario: "outfile-concat", 58 … commandLineArgs: ["--b", "/src/third", "--verbose", ...(additionalCommandLineArgs || [])], 76 additionalCommandLineArgs: ["--explainFiles"], 122 commandLineArgs: ["--b", "/src/third", "--clean"], 130 commandLineArgs: ["--b", "/src/third", "--verbose"], 131 modifyFs: fs => fs.unlinkSync("/src/first/bin/first-output.tsbuildinfo"), [all …]
|
| /third_party/rust/crates/syn/examples/dump-syntax/src/ |
| D | main.rs | 4 //! Use the following command from this directory to test this program by 7 //! cargo run -- src/main.rs 12 //! shebang: None, 41 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() 45 IncorrectUsage => write!(f, "Usage: dump-syntax path/to/filename.rs"), in fmt() 63 fn try_main() -> Result<(), Error> { in try_main() 85 // Render a rustc-style error message, including colors. 88 // --> main.rs:40:17 90 // 40 | fn fmt(&self formatter: &mut fmt::Formatter) -> fmt::Result { 98 ) -> fmt::Result { in render_location() [all …]
|
| /third_party/skia/third_party/externals/spirv-tools/tools/sva/ |
| D | yarn.lock | 5 "@babel/code-frame@^7.0.0": 7 …resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.5.5.tgz#bc0782f6d69f7b7d49… 8 …integrity sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7… 14 …resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.5.0.tgz#56d11312bd9248fa6195… 15 …integrity sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChK… 19 js-tokens "^4.0.0" 23 …resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.39.tgz#e177e699ee1b8c22d23174caa… 24 …integrity sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHX… 28 …resolved "https://registry.yarnpkg.com/@types/node/-/node-12.7.5.tgz#e19436e7f8e9b4601005d73673b6d… 29 …integrity sha512-9fq4jZVhPNW8r+UYKnxF1e2HkDWOWKM5bC2/7c9wPV835I0aOrVbS/Hw/pWPk2uKrNXQqg9Z959Kz+IYD… [all …]
|
| /third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/tools/sva/ |
| D | yarn.lock | 5 "@babel/code-frame@^7.0.0": 7 …resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.5.5.tgz#bc0782f6d69f7b7d49… 8 …integrity sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7… 14 …resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.5.0.tgz#56d11312bd9248fa6195… 15 …integrity sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChK… 19 js-tokens "^4.0.0" 23 …resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.39.tgz#e177e699ee1b8c22d23174caa… 24 …integrity sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHX… 28 …resolved "https://registry.yarnpkg.com/@types/node/-/node-12.7.5.tgz#e19436e7f8e9b4601005d73673b6d… 29 …integrity sha512-9fq4jZVhPNW8r+UYKnxF1e2HkDWOWKM5bC2/7c9wPV835I0aOrVbS/Hw/pWPk2uKrNXQqg9Z959Kz+IYD… [all …]
|
| /third_party/spirv-tools/tools/sva/ |
| D | yarn.lock | 5 "@eslint-community/eslint-utils@^4.2.0": 7 …resolved "https://registry.yarnpkg.com/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz#a23… 8 …integrity sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9… 10 eslint-visitor-keys "^3.3.0" 12 "@eslint-community/regexpp@^4.4.0": 14 …resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.5.1.tgz#cdd35dce4fa1a… 15 …integrity sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6F… 19 …resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-2.0.3.tgz#4910db5505f4d503f2777… 20 …integrity sha512-+5gy6OQfk+xx3q0d6jGZZC3f3KzAkXc/IanVxd1is/VIIziRqqt3ongQz0FiTUXqTk0c7aDB3OaFuKnuS… 27 import-fresh "^3.2.1" [all …]
|
| /third_party/mksh/ |
| D | exec.c | 3 /*- 11 * is granted to deal in this work without restriction, including un- 47 * execute command tree 71 if ((flags&XFORK) && !(flags&XEXEC) && t->type != TPIPE) in execute() 72 /* run in sub-process */ in execute() 73 return (exchild(t, flags & ~XTIME, xerrok, -1)); in execute() 80 if (t->type == TCOM) { in execute() 88 current_lineno = t->lineno; in execute() 93 t->args[0] == NULL && in execute() 95 t->vars[0] != NULL && t->vars[1] == NULL && in execute() [all …]
|
| /third_party/flatbuffers/ |
| D | pnpm-lock.yaml | 11 '@typescript-eslint/eslint-plugin': 13 version: 6.13.2(@typescript-eslint/parser@6.13.2)(eslint@8.55.0)(typescript@5.3.3) 14 '@typescript-eslint/parser': 29 /@aashutoshrathi/word-wrap@1.2.6: 30 …resolution: {integrity: sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlC… 34 /@esbuild/android-arm64@0.19.8: 35 …resolution: {integrity: sha512-B8JbS61bEunhfx8kasogFENgQfr/dIp+ggYXwTqdbMAgGDhRa3AaPpQMuQU0rNxDLEC… 43 /@esbuild/android-arm@0.19.8: 44 …resolution: {integrity: sha512-31E2lxlGM1KEfivQl8Yf5aYU/mflz9g06H6S15ITUFQueMFtFjESRMoDSkvMo8thYvL… 52 /@esbuild/android-x64@0.19.8: [all …]
|