Home
last modified time | relevance | path

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

12

/external/python/cpython3/Lib/
Drunpy.py64 pkg_name=None, script_name=None): argument
76 if pkg_name is None:
77 pkg_name = mod_spec.parent
83 __package__ = pkg_name,
90 pkg_name=None, script_name=None): argument
96 mod_name, mod_spec, pkg_name, script_name)
105 pkg_name, _, _ = mod_name.rpartition(".")
106 if pkg_name:
109 __import__(pkg_name)
114 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/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 …]
Dscript_helper.py141 def make_zip_pkg(zip_dir, zip_basename, pkg_name, script_basename, argument
153 pkg_names = [os.sep.join([pkg_name]*i) for i in range(1, depth+1)]
Dtest_cmd_line_script.py46 def _make_test_zip_pkg(zip_dir, zip_basename, pkg_name, script_basename, argument
48 return make_zip_pkg(zip_dir, zip_basename, pkg_name, script_basename,
/external/python/cpython3/Lib/test/
Dtest_runpy.py226 pkg_name = "__runpy_pkg__"
236 sub_dir = os.path.join(sub_dir, pkg_name)
245 mod_name = (pkg_name+".")*depth + mod_base
333 pkg_name = mod_name.rpartition(".")[0]
340 "__package__": pkg_name,
350 return run_module(pkg_name, init_globals, alter_sys=alter_sys)
352 if verbose > 1: print("Running from source:", pkg_name)
360 if verbose > 1: print("Running from compiled:", pkg_name)
371 pkg_name = "__runpy_pkg__"
375 module_dir = os.path.join(module_dir, pkg_name)
[all …]
Dtest_multiprocessing_main_handling.py110 def _make_test_zip_pkg(zip_dir, zip_basename, pkg_name, script_basename, argument
112 to_return = make_zip_pkg(zip_dir, zip_basename, pkg_name, script_basename,
/external/autotest/client/common_lib/
Dpackages.py410 pkg_name = self.get_tarball_name(name, pkg_type)
411 fetch_path = os.path.join(fetch_dir, pkg_name)
414 self.fetch_pkg(pkg_name, fetch_path, use_checksum=True)
441 def fetch_pkg(self, pkg_name, dest_path, repo_url=None, use_checksum=False): argument
485 fetcher.fetch_pkg_file(pkg_name, dest_path)
496 (pkg_name, repo_url_list))
628 def remove_pkg(self, pkg_name, remove_path=None, remove_checksum=False): argument
647 self.remove_checksum(pkg_name)
651 self.remove_pkg_file(pkg_name, path)
743 checksum_contents = '\n'.join(checksum + ' ' + pkg_name
[all …]
/external/python/cpython3/Lib/test/test_importlib/
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/skia/infra/bots/assets/
Dasset_utils.py91 def _search(self, pkg_name): argument
92 res = self._json_output(['search', pkg_name, '--tag', TAG_PROJECT_SKIA])
95 def _describe(self, pkg_name, instance_id): argument
97 return self._json_output(['describe', pkg_name, '--version', instance_id])
101 pkg_name = CIPD_PACKAGE_NAME_TMPL % name
103 for instance_id in self._search(pkg_name):
104 details = self._describe(pkg_name, instance_id)
131 pkg_name = CIPD_PACKAGE_NAME_TMPL % name
137 f.write('%s %s' % (pkg_name, version_tag))
/external/skqp/infra/bots/assets/
Dasset_utils.py91 def _search(self, pkg_name): argument
92 res = self._json_output(['search', pkg_name, '--tag', TAG_PROJECT_SKIA])
95 def _describe(self, pkg_name, instance_id): argument
97 return self._json_output(['describe', pkg_name, '--version', instance_id])
101 pkg_name = CIPD_PACKAGE_NAME_TMPL % name
103 for instance_id in self._search(pkg_name):
104 details = self._describe(pkg_name, instance_id)
131 pkg_name = CIPD_PACKAGE_NAME_TMPL % name
137 f.write('%s %s' % (pkg_name, version_tag))
/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/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/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/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/autotest/server/
Dautotest.py1313 pkg_name, dest_path, fifo_path = fetch_package_match.groups()
1316 if serve_packages and pkg_name == 'packages.checksum':
1319 self.job.pkgmgr.pkgmgr_dir, 'packages', pkg_name)
1354 pkg_name, dest_path, fifo_path = fetch_package_match.groups()
1357 if serve_packages and pkg_name.endswith(".tar.bz2"):
1359 self._send_tarball(pkg_name, dest_path)
1372 def _send_tarball(self, pkg_name, remote_dest): argument
1376 'packages', pkg_name)
1383 pkg_name)
1386 name, pkg_type = self.job.pkgmgr.parse_tarball_name(pkg_name)
[all …]
/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/python/cpython2/Lib/distutils/tests/
Dsupport.py101 def create_dist(self, pkg_name='foo', **kw): argument
112 pkg_dir = os.path.join(tmp_dir, pkg_name)
/external/python/cpython3/Lib/distutils/tests/
Dsupport.py93 def create_dist(self, pkg_name='foo', **kw): argument
104 pkg_dir = os.path.join(tmp_dir, pkg_name)
/external/python/cpython3/Doc/library/
Dmodulefinder.rst19 .. function:: AddPackagePath(pkg_name, path)
21 Record that the package named *pkg_name* can be found in the specified *path*.
/external/python/cpython3/Lib/test/support/
Dscript_helper.py230 def make_zip_pkg(zip_dir, zip_basename, pkg_name, script_basename, argument
242 pkg_names = [os.sep.join([pkg_name]*i) for i in range(1, depth+1)]
/external/python/cpython2/Doc/library/
Dmodulefinder.rst21 .. function:: AddPackagePath(pkg_name, path)
23 Record that the package named *pkg_name* can be found in the specified *path*.
/external/python/cpython3/Lib/lib2to3/
Drefactor.py100 def get_fixers_from_package(pkg_name): argument
104 return [pkg_name + "." + fix_name
105 for fix_name in get_all_fix_names(pkg_name, False)]

12