Home
last modified time | relevance | path

Searched +full:read +full:- +full:pkg (Results 1 – 25 of 521) sorted by relevance

12345678910>>...21

/external/python/cpython2/Lib/test/
Dtest_pkgutil.py25 pkg = 'test_getdata_filesys'
27 # Include a LF and a CRLF, to test that binary data is read back
31 package_dir = os.path.join(self.dirname, pkg)
45 # Check we can read the resources
46 res1 = pkgutil.get_data(pkg, 'res.txt')
48 res2 = pkgutil.get_data(pkg, 'sub/res.txt')
51 del sys.modules[pkg]
55 pkg = 'test_getdata_zipfile'
57 # Include a LF and a CRLF, to test that binary data is read back
65 z.writestr(pkg + '/__init__.py', "")
[all …]
/external/python/setuptools/setuptools/tests/
Dtest_build_py.py30 Ensure read-only flag is not preserved in copy
32 causes problems with deleting read-only files on
40 packages=['pkg'],
41 package_data={'pkg': ['data.dat']},
43 os.makedirs('pkg')
44 open('pkg/__init__.py', 'w').close()
45 open('pkg/data.dat', 'w').close()
46 os.chmod('pkg/__init__.py', stat.S_IREAD)
47 os.chmod('pkg/data.dat', stat.S_IREAD)
69 packages=['pkg'],
[all …]
Dtest_egg_info.py50 def _extract_mv_version(pkg_info_lines: List[str]) -> Tuple[int, int]:
56 with contexts.tempdir(prefix='setuptools-test.') as env_dir:
59 subs = 'home', 'lib', 'scripts', 'data', 'egg-base'
69 egg-base = %(egg-base)s
88 content = f.read()
128 content = f.read()
142 actual = os.listdir('foo.egg-info')
145 'PKG-INFO',
149 'not-zip-safe',
185 assert tb[-3].lstrip().startswith('ValueError')
[all …]
/external/python/cpython3/Lib/test/
Dtest_pkgutil.py32 pkg = 'test_getdata_filesys'
34 # Include a LF and a CRLF, to test that binary data is read back
38 package_dir = os.path.join(self.dirname, pkg)
52 # Check we can read the resources
53 res1 = pkgutil.get_data(pkg, 'res.txt')
55 res2 = pkgutil.get_data(pkg, 'sub/res.txt')
58 del sys.modules[pkg]
62 pkg = 'test_getdata_zipfile'
64 # Include a LF and a CRLF, to test that binary data is read back
72 z.writestr(pkg + '/__init__.py', "")
[all …]
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rjsmin/_setup/py3/
Dsetup.py1 # -*- coding: ascii -*-
3 # Copyright 2007 - 2013
10 # http://www.apache.org/licenses/LICENSE-2.0
66 max_required[-1] += 1
91 fp = open(filename, encoding='utf-8')
94 summary = fp.read().strip().splitlines()[0].rstrip()
103 fp = open(filename, encoding='utf-8')
105 description = fp.read().rstrip()
115 )['title'].encode('utf-8')
129 fp = open(filename, encoding='utf-8')
[all …]
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/_setup/py3/
Dsetup.py1 # -*- coding: ascii -*-
3 # Copyright 2007 - 2013
10 # http://www.apache.org/licenses/LICENSE-2.0
66 max_required[-1] += 1
91 fp = open(filename, encoding='utf-8')
94 summary = fp.read().strip().splitlines()[0].rstrip()
103 fp = open(filename, encoding='utf-8')
105 description = fp.read().rstrip()
115 )['title'].encode('utf-8')
129 fp = open(filename, encoding='utf-8')
[all …]
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/_setup/py2/
Dsetup.py1 # -*- coding: ascii -*-
3 # Copyright 2007 - 2013
10 # http://www.apache.org/licenses/LICENSE-2.0
65 max_required[-1] += 1
93 summary = fp.read().strip().splitlines()[0].rstrip()
104 description = fp.read().rstrip()
114 )['title'].encode('utf-8')
130 content = fp.read()
149 content = fp.read()
168 return fp.read().rstrip()
[all …]
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rjsmin/_setup/py2/
Dsetup.py1 # -*- coding: ascii -*-
3 # Copyright 2007 - 2013
10 # http://www.apache.org/licenses/LICENSE-2.0
65 max_required[-1] += 1
93 summary = fp.read().strip().splitlines()[0].rstrip()
104 description = fp.read().rstrip()
114 )['title'].encode('utf-8')
130 content = fp.read()
149 content = fp.read()
168 return fp.read().rstrip()
[all …]
/external/toolchain-utils/binary_search_tool/cros_pkg/
Dswitch_to_bad.sh1 #!/bin/bash -u
19 if [[ -f ${PKG_LIST_FILE} ]] ; then
21 # Read every line, and handle case where last line has no newline
22 while read pkg || [[ -n "$pkg" ]];
24 sudo cp ${BAD_BUILD}/packages/$pkg ${WORK_BUILD}/packages/$pkg
26 if [[ ${status} -ne 0 ]] ; then
27 echo "Failed to copy ${pkg} to work build tree."
37 if [[ ${status} -ne 0 ]] ; then
38 echo "Failed to copy ${pkg} to work build tree."
Dswitch_to_good.sh1 #!/bin/bash -u
19 if [[ -f ${PKG_LIST_FILE} ]] ; then
21 # Read every line, and handle case where last line has no newline
22 while read pkg || [[ -n "$pkg" ]];
24 sudo cp ${GOOD_BUILD}/packages/$pkg ${WORK_BUILD}/packages/$pkg
26 if [[ ${status} -ne 0 ]] ; then
27 echo "Failed to copy ${pkg} to work build tree."
37 if [[ ${status} -ne 0 ]] ; then
38 echo "Failed to copy ${pkg} to work build tree."
/external/rust/crates/grpcio-sys/grpc/tools/internal_ci/linux/
Dgrpc_publish_packages.sh8 # http://www.apache.org/licenses/LICENSE-2.0
16 set -ex
18 shopt -s nullglob
22 GRPC_VERSION=$(grep -e "^ *version: " build_handwritten.yaml | head -n 1 | sed 's/.*: //')
27 BUILD_ID=${KOKORO_BUILD_ID:-$(uuidgen)}
29 BUILD_GIT_COMMIT=${KOKORO_GIT_COMMIT:-unknown}
30 BUILD_TIMESTAMP=$(date -Iseconds)
31 BUILD_RELPATH=$(date "+%Y/%m")/$BUILD_GIT_COMMIT-$BUILD_ID/
38 LOCAL_STAGING_TEMPDIR=$(mktemp -d)
42 mkdir -p "$LOCAL_BUILD_ROOT"
[all …]
/external/grpc-grpc/tools/internal_ci/linux/
Dgrpc_publish_packages.sh8 # http://www.apache.org/licenses/LICENSE-2.0
16 set -ex
18 shopt -s nullglob
22 GRPC_VERSION=$(grep -e "^ *version: " build_handwritten.yaml | head -n 1 | sed 's/.*: //')
27 BUILD_ID=${KOKORO_BUILD_ID:-$(uuidgen)}
29 BUILD_GIT_COMMIT=${KOKORO_GIT_COMMIT:-unknown}
30 BUILD_TIMESTAMP=$(date -Iseconds)
31 BUILD_RELPATH=$(date "+%Y/%m")/$BUILD_GIT_COMMIT-$BUILD_ID/
38 LOCAL_STAGING_TEMPDIR=$(mktemp -d)
42 mkdir -p "$LOCAL_BUILD_ROOT"
[all …]
/external/cronet/third_party/icu/source/tools/toolutil/
Dpkg_icu.cpp4 * Copyright (C) 2008-2015, International Business Machines
22 // read a file list -------------------------------------------------------- ***
44 if((listNameEnd-listname)>length && 0==memcmp(listNameEnd-length, suffix, length)) { in isListTextFile()
52 * Read a file list.
53 * If the listname ends with ".txt", then read the list file
55 * If the listname ends with ".dat", then read the ICU .dat package file.
56 * Otherwise, read the file itself as a single-item list.
79 // read the list file in readList()
99 while(line<end && (*(end-1)=='\r' || *(end-1)=='\n')) { in readList()
100 *--end=0; in readList()
[all …]
/external/icu/icu4c/source/tools/toolutil/
Dpkg_icu.cpp4 * Copyright (C) 2008-2015, International Business Machines
22 // read a file list -------------------------------------------------------- ***
44 if((listNameEnd-listname)>length && 0==memcmp(listNameEnd-length, suffix, length)) { in isListTextFile()
52 * Read a file list.
53 * If the listname ends with ".txt", then read the list file
55 * If the listname ends with ".dat", then read the ICU .dat package file.
56 * Otherwise, read the file itself as a single-item list.
79 // read the list file in readList()
99 while(line<end && (*(end-1)=='\r' || *(end-1)=='\n')) { in readList()
100 *--end=0; in readList()
[all …]
/external/perfetto/src/profiling/common/
Dproducer_support.cc8 * http://www.apache.org/licenses/LICENSE-2.0
36 PERFETTO_ELOG("Failed to read %s", packages_list_path.c_str()); in FindInPackagesList()
40 Package pkg; in FindInPackagesList() local
41 if (!ReadPackagesListLine(ss.cur_token(), &pkg)) { in FindInPackagesList()
46 if (pkg.uid == lookup_uid) { in FindInPackagesList()
47 return std::move(pkg); // -Wreturn-std-move-in-c++11 in FindInPackagesList()
57 PERFETTO_ELOG("Failed to read %s", packages_list_path.c_str()); in AllPackagesProfileableByTrustedInitiator()
62 Package pkg; in AllPackagesProfileableByTrustedInitiator() local
63 if (!ReadPackagesListLine(ss.cur_token(), &pkg)) { in AllPackagesProfileableByTrustedInitiator()
68 ret = ret && (pkg.profileable || pkg.debuggable); in AllPackagesProfileableByTrustedInitiator()
[all …]
/external/ltp/testcases/kernel/power_management/lib/
Dpm_sched_mc.py32 os.system('dmesg -c >/dev/null')
60 socket_id = open(phy_pkg_file).read().rstrip()
97 print("Failed to check if system is hyper-threaded")
145 print("Failed to check if system is hyper-threaded")
159 core_id = open(core_file).read().rstrip()
160 cpu_phy_id = open(phy_pkg_file).read().rstrip()
178 cpu_phy_id = open(phy_pkg_file).read().rstrip()
184 print("Mapping of CPU to pkg id failed", e)
195 threads_sibs = open(siblings_file).read().rstrip()
196 thread_ids = threads_sibs.split("-")
[all …]
/external/skia/gn/
Dcodesign_ios.py5 # Use of this source code is governed by a BSD-style license that can be
18 # pkg path to application directory, e.g. out/Debug/dm.app
22 pkg,identstr,profile = sys.argv[1:] variable
27 'security', 'find-identity']).decode('utf-8').split('\n'):
33 print("Please verify by running 'security find-identity' or checking your keychain.")
45 \t<string>''' + profile + r'''</string>''', open(p, 'rb').read().decode("utf-8", "ignore"), re.MULT…
54 os.path.join(pkg, 'embedded.mobileprovision'))
59 \t<string>(.*)</string>''', open(mobileprovision, 'rb').read().decode("utf-8", "ignore"), re.MULTIL…
62 app, _ = os.path.splitext(os.path.basename(pkg))
69 <key>application-identifier</key> <string>{prefix}.com.google.{app}</string>
[all …]
/external/trace-cmd/
Dmake-trace-cmd.sh3 if [ -z "$INSTALL_PATH" ]; then
7 …FIX=prefix][BUILD_PATH=/path/to/build] INSTALL_PATH=/path/to/install make-trace-cmd.sh install|ins…
11 echo " Please read PACKAGING for more information."
16 if [ ! -d $INSTALL_PATH ]; then
20 if [ ! -z "$BUILD_PATH" ]; then
21 if [ ! -d $BUILD_PATH ]; then
27 if [ -z "$PREFIX" ]; then
31 PKG_PATH=`pkg-config --variable pc_path pkg-config | tr ":" " " | cut -d' ' -f1`
34 # If pkg-config supports --with-path, use that as well
35 if pkg-config --with-path=/tmp --variable pc_path pkg-config &> /dev/null ; then
[all …]
/external/python/asn1crypto/dev/
Ddeps.py1 # coding: utf-8
28 deps_dir = os.path.join(build_root, 'modularcrypto-deps')
77 code += "(New-Object Net.WebClient).DownloadFile('%s', '%s');" % (url, dest_path)
78 _execute([powershell_exe, '-Command', code], dest, 'Unable to connect to')
82 ['curl', '-L', '--silent', '--show-error', '-O', url],
101 r'([-._]?(?:alpha|a|beta|b|preview|pre|c|rc)\.?\d*)?'
102 r'(-\d+|(?:[-._]?(?:rev|r|post)\.?\d*))?'
103 r'([-._]?dev\.?\d*)?',
118 pre = pre.lstrip('._-')
127 'a': -3,
[all …]
/external/sdk-platform-java/rules_java_gapic/
Djava_gapic_pkg.bzl7 # https://www.apache.org/licenses/LICENSE-2.0
73 ctx.outputs.pkg,
79 mkdir -p {package_dir_path}/{tar_cd_suffix}/{tar_prefix}/samples/snippets/generated/
80 unzip -q ./$s -d {package_dir_path}/{tar_cd_suffix}/{tar_prefix}/samples/snippets/generated/
83 mkdir -p {package_dir_path}
85 tar -xzpf $dep -C {package_dir_path}
89 tar -zchpf {tar_prefix}/{package_dir}.tar.gz {tar_prefix}/*
90 cd - > /dev/null
91 mv {package_dir_path}/{package_dir}.tar.gz {pkg}
92 rm -rf {package_dir_path}
[all …]
/external/deqp/external/
Dfetch_sources.py1 # -*- coding: utf-8 -*-
3 #-------------------------------------------------------------------------
5 # --------------------------------------
13 # http://www.apache.org/licenses/LICENSE-2.0
21 #-------------------------------------------------------------------------
59 # Remove read-only first
91 archiveDir = os.path.join(EXTERNAL_DIR, pkg.baseDir, pkg.archiveDir)
97 archiveFile = os.path.join(EXTERNAL_DIR, pkg.baseDir, pkg.archiveDir, pkg.filename)
104 return os.path.join(EXTERNAL_DIR, pkg.baseDir, pkg.archiveDir, "extracted")
115 checksum_bytes = checksum.encode("utf-8")
[all …]
/external/python/cpython2/Lib/
Dpkgutil.py20 magic = stream.read(4)
24 stream.read(4) # Skip timestamp
29 """Make a trivial single-dispatch generic function"""
128 or, if path is None, all top-level modules on sys.path.
164 the current sys.path, plus any modules that are frozen or built-in.
175 subname = fullname.split(".")[-1]
199 filenames.sort() # handle packages before same-named modules
253 return file.read()
299 self.source = self.file.read()
303 if os.path.exists(self.filename[:-1]):
[all …]
/external/bazelbuild-rules_python/examples/bzlmod/runfiles/
Drunfiles_test.py7 # http://www.apache.org/licenses/LICENSE-2.0
18 from other_module.pkg import lib
31 self.assertEqual(f.read().strip(), "Hello, example_bzlmod!")
37 self.assertEqual(f.read().strip(), "Hello, example_bzlmod!")
41 "our_other_module/other_module/pkg/data/data.txt"
44 self.assertEqual(f.read().strip(), "Hello, other_module!")
49 self.assertEqual(f.read().strip(), "Hello, other_module!")
54 self.assertEqual(f.read().strip(), "Hello, other_module!")
60 self.assertEqual(f.read().strip(), "Hello, other_module!")
/external/bazelbuild-rules_python/examples/bzlmod_build_file_generation/runfiles/
Drunfiles_test.py7 # http://www.apache.org/licenses/LICENSE-2.0
18 from other_module.pkg import lib
31 self.assertEqual(f.read().strip(), "Hello, example_bzlmod!")
37 self.assertEqual(f.read().strip(), "Hello, example_bzlmod!")
41 "our_other_module/other_module/pkg/data/data.txt"
44 self.assertEqual(f.read().strip(), "Hello, other_module!")
49 self.assertEqual(f.read().strip(), "Hello, other_module!")
54 self.assertEqual(f.read().strip(), "Hello, other_module!")
60 self.assertEqual(f.read().strip(), "Hello, other_module!")
/external/python/setuptools/setuptools/tests/config/
Dtest_expand.py65 "pkg/__init__.py": "",
66 "pkg/sub/__init__.py": "VERSION = '0.1.1'",
67 "pkg/sub/mod.py": (
76 # Make sure it can read the attr statically without evaluating the module
77 assert expand.read_attr('pkg.sub.VERSION') == '0.1.1'
78 values = expand.read_attr('lib.mod.VALUES', {'lib': 'pkg/sub'})
84 assert expand.read_attr('pkg.sub.VERSION', root_dir=tmp_path) == '0.1.1'
85 values = expand.read_attr('lib.mod.VALUES', {'lib': 'pkg/sub'}, tmp_path)
91 module, which triggers side-effects and might create problems (see issue #3176)
97 "src/pkg/__init__.py": "from .main import func\nfrom .about import version",
[all …]

12345678910>>...21