Home
last modified time | relevance | path

Searched refs:pkg_name (Results 1 – 25 of 45) sorted by relevance

12

/external/python/cpython3/Lib/
Drunpy.py66 pkg_name=None, script_name=None): argument
78 if pkg_name is None:
79 pkg_name = mod_spec.parent
85 __package__ = pkg_name,
92 pkg_name=None, script_name=None): argument
98 mod_name, mod_spec, pkg_name, script_name)
107 pkg_name, _, _ = mod_name.rpartition(".")
108 if pkg_name:
111 __import__(pkg_name)
116 if e.name is None or (e.name != pkg_name and
[all …]
/external/python/cpython2/Lib/
Drunpy.py64 mod_loader=None, pkg_name=None): argument
71 __package__ = pkg_name)
77 mod_loader=None, pkg_name=None): argument
82 mod_name, mod_fname, mod_loader, pkg_name)
169 pkg_name = mod_name.rpartition('.')[0]
174 "__main__", fname, loader, pkg_name)
185 pkg_name = mod_name.rpartition('.')[0]
188 fname, loader, pkg_name)
192 fname, loader, pkg_name)
271 pkg_name = ""
[all …]
/external/python/cpython3/Lib/test/test_importlib/
Dtest_main.py85 pkg_name = self.pkg_with_dashes(self.site_dir)
86 assert version(pkg_name) == '1.0'
105 pkg_name = self.pkg_with_mixed_case(self.site_dir)
106 assert version(pkg_name) == '1.0'
107 assert version(pkg_name.lower()) == '1.0'
108 assert version(pkg_name.upper()) == '1.0'
143 pkg_name = self.pkg_with_non_ascii_description(self.site_dir)
144 meta = metadata(pkg_name)
148 pkg_name = self.pkg_with_non_ascii_description_egg_info(self.site_dir)
149 meta = metadata(pkg_name)
Dtest_api.py28 pkg_name = 'pkg'
29 pkg_long_name = '{0}.__init__'.format(pkg_name)
30 name = '{0}.mod'.format(pkg_name)
38 pkg_name = 'pkg'
39 pkg_long_name = '{0}.__init__'.format(pkg_name)
41 absolute_name = '{0}.{1}'.format(pkg_name, module_name)
45 self.init.import_module(pkg_name)
46 module = self.init.import_module(relative_name, pkg_name)
61 pkg_name = 'pkg'
62 pkg_long_name = '{0}.__init__'.format(pkg_name)
[all …]
/external/autotest/utils/
Dpackager.py137 pkg_name = pkgmgr.get_tarball_name(name, pkg_type)
141 (pkg_name, pkg_name)) + exclude_string)
152 tarball_path = pkgmgr.tar_package(pkg_name, pkg_dir,
157 md5sum_filepath = os.path.join(build_dir, pkg_name + '.checksum')
174 tarball_path = os.path.join(pkg_dir, pkg_name);
179 tarball_path = pkgmgr.tar_package(pkg_name, pkg_dir,
193 pkgmgr.remove_pkg(pkg_name, remove_checksum=True)
215 pkg_name = pkgmgr.get_tarball_name(name, pkg_type)
221 (pkg_name, pkg_name)) + exclude_string)
224 tarball_path = os.path.join(pkg_dir, pkg_name);
[all …]
/external/python/cpython2/Lib/test/
Dtest_importlib.py130 pkg_name = 'pkg'
131 pkg_long_name = '{0}.__init__'.format(pkg_name)
132 name = '{0}.mod'.format(pkg_name)
156 pkg_name = 'pkg'
157 pkg_long_name = '{0}.__init__'.format(pkg_name)
158 name = '{0}.mod'.format(pkg_name)
161 module = importlib.import_module(name, pkg_name)
Dtest_runpy.py117 pkg_name = "__runpy_pkg__"
124 sub_dir = os.path.join(sub_dir, pkg_name)
133 mod_name = (pkg_name+".")*depth + mod_base
186 pkg_name, _, _ = mod_name.rpartition(".")
189 if verbose: print "Running from source:", pkg_name
190 d1 = run_module(pkg_name) # Read from source
197 if verbose: print "Running from compiled:", pkg_name
198 d2 = run_module(pkg_name) # Read from bytecode
203 self._del_pkg(pkg_dir, depth, pkg_name)
209 pkg_name = "__runpy_pkg__"
[all …]
/external/python/setuptools/setuptools/command/
Dinstall_lib.py40 def _all_packages(pkg_name): argument
45 while pkg_name:
46 yield pkg_name
47 pkg_name, sep, child = pkg_name.rpartition('.')
/external/autotest/client/common_lib/
Dpackages.py416 pkg_name = self.get_tarball_name(name, pkg_type)
417 fetch_path = os.path.join(fetch_dir, pkg_name)
420 self.fetch_pkg(pkg_name, fetch_path, use_checksum=True)
447 def fetch_pkg(self, pkg_name, dest_path, repo_url=None, use_checksum=False): argument
491 fetcher.fetch_pkg_file(pkg_name, dest_path)
502 (pkg_name, repo_url_list))
634 def remove_pkg(self, pkg_name, remove_path=None, remove_checksum=False): argument
653 self.remove_checksum(pkg_name)
657 self.remove_pkg_file(pkg_name, path)
749 checksum_contents = '\n'.join(checksum + ' ' + pkg_name
[all …]
/external/python/parse_type/bin/
Dmake_localpi.py143 pkg_name = os.path.basename(pkg_filename)
144 if pkg_name == "index.html":
146 pkg_name = os.path.basename(os.path.dirname(pkg_filename))
148 pkg_name = package.splitext(pkg_name)
150 parts.append(item_template.format(pkg_name, pkg_relpath_to))
/external/skia/build/fuchsia/skqp/
DBUILD.gn10 pkg_name = "skqp_pkg"
12 fuchsia_package(pkg_name) {
14 name = pkg_name
42 base_pkg_manifest = "${pkg_dir}/base_${pkg_name}.manifest"
106 base_pkg_manifest = "${pkg_dir}/base_${pkg_name}.manifest"
107 pkg_manifest = "${pkg_dir}/${pkg_name}.manifest"
/external/python/cpython3/Lib/test/
Dtest_runpy.py229 pkg_name = "__runpy_pkg__"
239 sub_dir = os.path.join(sub_dir, pkg_name)
247 mod_name = (pkg_name+".")*depth + mod_base
335 pkg_name = mod_name.rpartition(".")[0]
342 "__package__": pkg_name,
352 return run_module(pkg_name, init_globals, alter_sys=alter_sys)
354 if verbose > 1: print("Running from source:", pkg_name)
362 if verbose > 1: print("Running from compiled:", pkg_name)
373 pkg_name = "__runpy_pkg__"
377 module_dir = os.path.join(module_dir, pkg_name)
[all …]
Dtest_doctest.py699 pkg_name = 'doctest_empty_pkg'
701 pkg_dir = os.path.join(parent_dir, pkg_name)
705 mod = importlib.import_module(pkg_name)
707 support.forget(pkg_name)
/external/skia/build/fuchsia/
Dgen_package35 pkg_name = args.pkg_name
46 subprocess.check_call(pm_command_base + ['-n'] + [pkg_name] + ['init'])
Dupdate_fuchsia_sdk45 def DownloadAndUnzip(pkg_name, version, cipd_cache_dir, output_dir): argument
46 pkg_suffix = pkg_name.replace('/', '-') + ".zip"
48 cipd_cmd = "cipd pkg-fetch " + pkg_name + " -version \"" + version + "\" -out " + \
/external/skqp/infra/bots/assets/
Dasset_utils.py89 def _search(self, pkg_name): argument
91 res = self._json_output(['search', pkg_name, '--tag', TAG_PROJECT_SKIA])
98 def _describe(self, pkg_name, instance_id): argument
100 return self._json_output(['describe', pkg_name, '--version', instance_id])
104 pkg_name = CIPD_PACKAGE_NAME_TMPL % name
106 for instance_id in self._search(pkg_name):
107 details = self._describe(pkg_name, instance_id)
138 pkg_name = CIPD_PACKAGE_NAME_TMPL % name
144 f.write('%s %s' % (pkg_name, version_tag))
/external/skia/infra/bots/assets/
Dasset_utils.py95 def _search(self, pkg_name): argument
97 res = self._json_output(['search', pkg_name, '--tag', TAG_PROJECT_SKIA])
104 def _describe(self, pkg_name, instance_id): argument
106 return self._json_output(['describe', pkg_name, '--version', instance_id])
110 pkg_name = CIPD_PACKAGE_NAME_TMPL % name
112 for instance_id in self._search(pkg_name):
113 details = self._describe(pkg_name, instance_id)
144 pkg_name = CIPD_PACKAGE_NAME_TMPL % name
150 f.write('%s %s' % (pkg_name, version_tag))
/external/python/cpython3/Lib/tkinter/test/
Druntktests.py36 pkg_name = dirpath[len(basepath) + len(os.sep):].replace('/', '.')
37 if packages and pkg_name not in packages:
47 ".%s.%s" % (pkg_name, name[:-len(py_ext)]),
/external/python/cpython2/Lib/lib-tk/test/
Druntktests.py38 pkg_name = dirpath[len(basepath) + len(os.sep):].replace('/', '.')
39 if packages and pkg_name not in packages:
49 ".%s" % name[:-len(py_ext)], pkg_name)
/external/python/cpython3/Lib/test/test_importlib/import_/
Dtest_meta_path.py85 pkg_name = 'pkg'
86 mod_name = pkg_name + '.module'
89 with self.mock_modules(pkg_name+'.__init__', mod_name) as importer:
90 importer.modules[pkg_name].__path__ = path
/external/clang/
Dupdate-prebuilts.py110 def download_file(host, build_number, pkg_name, download_dir): argument
118 url = '{}/{}/{}'.format(url_base, path, pkg_name)
121 out_file_path = os.path.join(download_dir, pkg_name)
/external/libaom/libaom/build/cmake/
Dpkg_config.cmake43 string(TOLOWER ${CMAKE_PROJECT_NAME} pkg_name)
49 file(APPEND "${pkgconfig_file}" "Name: ${pkg_name}\n")
56 file(APPEND "${pkgconfig_file}" "Libs: -L\${libdir} -l${pkg_name}\n")
/external/autotest/server/cros/bluetooth/
Dbluetooth_adapter_quick_tests.py205 self.pkg_name = None
552 def quick_test_package_start(self, pkg_name): argument
557 self.pkg_name = pkg_name
565 'Warn %d, NA %d', self.pkg_name, self.pkg_pass_count,
578 if self.pkg_name is None:
582 self.pkg_name, iteration)
/external/autotest/client/bin/
Dharness_autoserv.py85 def fetch_package(self, pkg_name, dest_path): argument
92 self._send_and_wait('AUTOTEST_FETCH_PACKAGE', pkg_name, dest_path)
/external/autotest/server/
Dautotest.py1357 pkg_name, dest_path, fifo_path = fetch_package_match.groups()
1360 if serve_packages and pkg_name == 'packages.checksum':
1363 self.job.pkgmgr.pkgmgr_dir, 'packages', pkg_name)
1398 pkg_name, dest_path, fifo_path = fetch_package_match.groups()
1401 if serve_packages and pkg_name.endswith(".tar.bz2"):
1403 self._send_tarball(pkg_name, dest_path)
1416 def _send_tarball(self, pkg_name, remote_dest): argument
1420 'packages', pkg_name)
1427 pkg_name)
1430 name, pkg_type = self.job.pkgmgr.parse_tarball_name(pkg_name)
[all …]

12